summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_vp9_syntax_template.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-10-26 16:32:56 -0300
committerJames Almer <jamrial@gmail.com>2018-10-27 16:06:36 -0300
commita5d98da4d6f3d0cd89d61af43e6377a9c9dd4cb2 (patch)
tree394772e3ae7c7f1fec64867782edd672f02a659f /libavcodec/cbs_vp9_syntax_template.c
parent99ef8b8afd993fec3160c633f5fe87cceb7fe392 (diff)
downloadffmpeg-a5d98da4d6f3d0cd89d61af43e6377a9c9dd4cb2.tar.gz
avcodec/cbs_vp9: fix parsing sRGB samples
Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_vp9_syntax_template.c')
-rw-r--r--libavcodec/cbs_vp9_syntax_template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cbs_vp9_syntax_template.c b/libavcodec/cbs_vp9_syntax_template.c
index 0db0f52a6d..b4a7f65e85 100644
--- a/libavcodec/cbs_vp9_syntax_template.c
+++ b/libavcodec/cbs_vp9_syntax_template.c
@@ -65,6 +65,7 @@ static int FUNC(color_config)(CodedBitstreamContext *ctx, RWContext *rw,
if (profile == 1 || profile == 3) {
infer(subsampling_x, 0);
infer(subsampling_y, 0);
+ f(1, color_config_reserved_zero);
}
}