diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-10-27 20:41:00 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-10-30 22:22:27 +0000 |
commit | edcdf3512376b64d6add61fb5c21b418ebbba1e3 (patch) | |
tree | 83a77782f09f83110ffb754cd9393bb82f488207 /libavcodec/cbs_vp9_syntax_template.c | |
parent | ad5ca1fb72fc1e0d7cdeec85b279608f8195c96e (diff) |
cbs_vp9: Ensure that reserved zero bits are actually zero
Diffstat (limited to 'libavcodec/cbs_vp9_syntax_template.c')
-rw-r--r-- | libavcodec/cbs_vp9_syntax_template.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/cbs_vp9_syntax_template.c b/libavcodec/cbs_vp9_syntax_template.c index b4a7f65e85..5055aa38e1 100644 --- a/libavcodec/cbs_vp9_syntax_template.c +++ b/libavcodec/cbs_vp9_syntax_template.c @@ -55,7 +55,7 @@ static int FUNC(color_config)(CodedBitstreamContext *ctx, RWContext *rw, if (profile == 1 || profile == 3) { f(1, subsampling_x); f(1, subsampling_y); - f(1, color_config_reserved_zero); + fixed(1, reserved_zero, 0); } else { infer(subsampling_x, 1); infer(subsampling_y, 1); @@ -65,7 +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); + fixed(1, reserved_zero, 0); } } @@ -258,7 +258,7 @@ static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw, f(1, profile_high_bit); profile = (current->profile_high_bit << 1) + current->profile_low_bit; if (profile == 3) - f(1, profile_reserved_zero); + fixed(1, reserved_zero, 0); f(1, show_existing_frame); if (current->show_existing_frame) { |