[FFmpeg-devel] [PATCH] lavc/hevcdec: Align transform syntax with the SPEC
Linjie Fu
linjie.fu at intel.com
Fri Dec 27 10:47:56 EET 2019
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 at intel.com>
---
libavcodec/hevcdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)) {
--
2.7.4
More information about the ffmpeg-devel
mailing list