FFmpeg/tests
Zhao Zhili 94784d0918 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>
(cherry picked from commit 25812d3033)
2025-05-12 11:58:56 +08:00
..
api api/api-band-test: Query codec capabilities to decide admissibility 2024-06-12 14:29:30 +02:00
checkasm checkasm: aacencdsp: Actually test nonzero values in quant_bands 2025-02-11 10:39:24 +02:00
fate avcodec/bsf/h264_mp4toannexb: Fix mixed bitstream format 2025-05-12 11:58:56 +08:00
filtergraphs tests/fate/filter-audio: add a test for handling more than 64 channels 2024-09-09 17:26:17 +02:00
maps fate: Add fsync filter tests 2024-01-05 09:29:05 +01:00
ref avformat/spdifdec: parse headers for audio codecs 2024-12-01 12:53:33 -03:00
streamgroups fate/mov: add an IAMF+video muxing test 2024-08-04 12:09:40 -03:00
.gitignore
audiogen.c tests/audiogen: Fix total RIFF chunk size 2024-03-28 11:54:41 +01:00
audiomatch.c
base64.c
copycooker.sh
extended.ffconcat
fate-run.sh tests/fate: force MPEG range for rawvideo tests 2024-09-12 19:13:21 +02:00
fate-valgrind.supp
fate.sh fate: allow https for git URLs 2024-04-27 23:24:58 +02:00
Makefile fate/ffprobe: Fix test requirements 2024-04-03 19:10:24 +02:00
md5.sh
refcmp-metadata.awk
reference.pnm
rotozoom.c
simple1.ffconcat
simple2.ffconcat tests/concat-demuxer: add stream_meta test 2021-09-16 10:17:59 +02:00
test.ffmeta
tiny_psnr.c
tiny_ssim.c
utils.c
videogen.c