diff mbox

[FFmpeg-devel] lavc/hevcdec: Align transform syntax with the SPEC

Message ID 1577436476-25036-1-git-send-email-linjie.fu@intel.com
State New
Headers show

Commit Message

Fu, Linjie Dec. 27, 2019, 8:47 a.m. UTC
Doesn't change the logic, modify to keep it consistent with
7.3.8.8 in spec to avoid some misunderstandings.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
---
 libavcodec/hevcdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 8f1c162..fb2ee72 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -1300,7 +1300,7 @@  static int hls_transform_tree(HEVCContext *s, int x0, int y0,
                                inter_split;
     }
 
-    if (s->ps.sps->chroma_format_idc && (log2_trafo_size > 2 || s->ps.sps->chroma_format_idc == 3)) {
+    if ((s->ps.sps->chroma_format_idc && log2_trafo_size > 2) || s->ps.sps->chroma_format_idc == 3) {
         if (trafo_depth == 0 || cbf_cb[0]) {
             cbf_cb[0] = ff_hevc_cbf_cb_cr_decode(s, trafo_depth);
             if (s->ps.sps->chroma_format_idc == 2 && (!split_transform_flag || log2_trafo_size == 3)) {