mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02:00
lavc/videotoolboxdec: fix writing too many 1 bits for the reserved fields
Signed-off-by: rcombs <rcombs@rcombs.me>
This commit is contained in:
parent
928b22edfe
commit
a465e2c39e
@ -328,13 +328,13 @@ CFDataRef ff_videotoolbox_hvcc_extradata_create(AVCodecContext *avctx)
|
|||||||
* bit(5) reserved = ‘11111’b;
|
* bit(5) reserved = ‘11111’b;
|
||||||
* unsigned int(3) bitDepthLumaMinus8;
|
* 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;
|
* bit(5) reserved = ‘11111’b;
|
||||||
* unsigned int(3) bitDepthChromaMinus8;
|
* 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; */
|
/* bit(16) avgFrameRate; */
|
||||||
AV_WB16(p + 19, 0);
|
AV_WB16(p + 19, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user