diff options
author | rcombs <rcombs@rcombs.me> | 2022-04-16 02:50:58 -0500 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2022-06-01 19:38:50 -0500 |
commit | a465e2c39ed1aed0415403e74b37d23f227e2914 (patch) | |
tree | 5dcab35719895c4283f11a5286ef9ae2782cc47b /libavcodec | |
parent | 928b22edfe429d17ccfba572eff1f9f3e6892e00 (diff) | |
download | ffmpeg-a465e2c39ed1aed0415403e74b37d23f227e2914.tar.gz |
lavc/videotoolboxdec: fix writing too many 1 bits for the reserved fields
Signed-off-by: rcombs <rcombs@rcombs.me>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/videotoolbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c index c95c53fcf0..921fed9619 100644 --- a/libavcodec/videotoolbox.c +++ b/libavcodec/videotoolbox.c @@ -328,13 +328,13 @@ CFDataRef ff_videotoolbox_hvcc_extradata_create(AVCodecContext *avctx) * bit(5) reserved = ‘11111’b; * unsigned int(3) bitDepthLumaMinus8; */ - AV_W8(p + 17, (sps->bit_depth - 8) | 0xfc); + AV_W8(p + 17, (sps->bit_depth - 8) | 0xf8); /* * bit(5) reserved = ‘11111’b; * unsigned int(3) bitDepthChromaMinus8; */ - AV_W8(p + 18, (sps->bit_depth_chroma - 8) | 0xfc); + AV_W8(p + 18, (sps->bit_depth_chroma - 8) | 0xf8); /* bit(16) avgFrameRate; */ AV_WB16(p + 19, 0); |