Message ID | e8d7ade24026d827541cf8ae55cf3d92e289ad10.1652120184.git.ffmpegagent@gmail.com |
---|---|
State | Accepted |
Commit | a465e2c39ed1aed0415403e74b37d23f227e2914 |
Headers | show |
Series | lavc/videotoolboxdec: improve HEVC stream compatibility | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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);