aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hw_base_encode.h
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2025-04-25 01:08:36 +0800
committerZhao Zhili <zhilizhao@tencent.com>2025-04-29 15:25:08 +0800
commit25812d303398552a7768dac04f2992bcb09ea000 (patch)
treec372f589654b00e8d9bc7530c2d1c813e7471790 /libavcodec/hw_base_encode.h
parent26752368f04ab5582e20f279c8659e8ede719419 (diff)
downloadffmpeg-25812d303398552a7768dac04f2992bcb09ea000.tar.gz
avcodec/bsf/h264_mp4toannexb: Fix mixed bitstream format
This bsf converts AV_PKT_DATA_NEW_EXTRADATA side data in avcc format to in-band annexb format. However, the side data wasn't been removed and copied from input packet to output packet. So the output packet has mixed bitstream format. We don't support mixed bitstream format. For example, h264_metadata report error in the following case: ffmpeg -i foo.flv \ -bsf:v "h264_mp4toannexb,h264_metadata" \ -c copy -f null This patch removed NEW_EXTRADATA side data after process. This patch also add a check so only NEW_EXTRADATA in avcc format is processed. NEW_EXTRADATA in annexb format is copied to output as is. Reported-by: jiangjie <jiangjie618@gmail.com> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavcodec/hw_base_encode.h')
0 files changed, 0 insertions, 0 deletions