FFmpeg/tests/fate
Zhao Zhili 25812d3033 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>
2025-04-29 15:25:08 +08:00
..
aac.mak aacenc: remove support for AAC Main profile 2025-02-26 17:12:04 +01:00
ac3.mak fate/ac3: add missing aresample filter dependency 2024-03-15 12:03:36 -03:00
acodec.mak libswresample/swresample: avoid s16p internal transfer format 2023-09-25 21:41:35 +02:00
adpcm.mak fate/adpcm: add missing aresample filter dependency 2024-03-15 12:03:36 -03:00
alac.mak fate/alac: add missing aresample filter dependency 2024-03-15 12:04:31 -03:00
als.mak fate/als: Add test for conformance file with 512 channels. 2019-08-24 09:33:44 +02:00
amrnb.mak fate/amrnb: add missing aresample filter dependency 2024-03-15 12:05:14 -03:00
amrwb.mak fate/amrwb: add missing aresample filter dependency 2024-03-15 12:05:18 -03:00
api.mak fate/api: Fix requirements of fate-api-seek 2024-04-03 19:10:24 +02:00
apng.mak fate: add a more extensive test for APNG_DISPOSE_OP_BACKGROUND 2021-05-14 11:15:13 +02:00
atrac.mak fate/atrac: Add atrac->aea, atrac->matroska remux tests 2024-03-19 03:17:12 +01:00
audio.mak fate: Add a dependency on ffprobe for fate-flcl1905 2024-12-13 09:48:17 +02:00
bmp.mak fate/bmp: Fix test requirements 2022-04-28 02:39:37 +02:00
build.mak Merge commit 'db869f4ea4' 2017-10-11 19:02:04 -03:00
caf.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
canopus.mak fate/canopus: Fix test requirements 2022-05-03 04:18:05 +02:00
cbs.mak tests/fate/cbs: make cbs-vvc test depends prerequisites correct 2024-09-16 10:12:45 +08:00
cdxl.mak fate/cdxl: Fix test requirements 2022-04-28 02:39:37 +02:00
checkasm.mak lavc/apv: AVX2 transquant for x86-64 2025-04-27 15:52:30 +01:00
concatdec.mak tests/fate-run: Remove temporary fate-lavf files if possible 2022-05-06 05:39:25 +02:00
cover-art.mak Revert "tests/fate: disable compression for zlib-based codecs" 2024-10-16 17:38:57 -03:00
dca.mak tests/dca: remove usage of deprecated request_channel_layout option 2023-12-28 15:31:50 -03:00
demux.mak fate/demux: add a test for Theora in OGG 2025-02-23 00:13:35 -03:00
dfa.mak fate/dfa: Fix test requirements 2022-04-28 02:39:37 +02:00
dnxhd.mak fate/dnxhd: Fix test requirements 2022-05-03 04:18:05 +02:00
dpcm.mak
dvvideo.mak lavc/dvdec: export bitrate 2023-07-07 12:12:52 +02:00
ea.mak fate/ea: Fix test requirements 2022-05-03 04:18:05 +02:00
enc_external.mak tests: Remove fate-libx265-hdr10 2024-03-27 20:04:40 +08:00
exif.mak
ffmpeg.mak fate: revert previous frequency adjustments of the sine filter 2024-11-29 21:16:22 +01:00
ffprobe.mak fate/ffprobe: Fix test requirements 2024-04-03 19:10:24 +02:00
fifo-muxer.mak tests/fate/fifo-muxer: update fifo-muxer dependencies 2017-05-08 08:42:00 +02:00
filter-audio.mak tests/fate/filter-audio: add aloop test 2024-11-29 21:59:56 +01:00
filter-video.mak tests/filter-video: add rgbtestsrc tests for gbrap 2025-04-02 09:32:08 -03:00
fits.mak fate/fits: Fix tests on BE 2024-04-02 00:21:59 +02:00
flac.mak fate/flac: Add test of 32 bps encoding/decoding 2022-12-26 21:15:36 +01:00
flvenc.mak tests: Add enhanced-flv-hevc-hdr10 for demux and mux HDR color info 2025-03-12 16:01:20 +08:00
gapless.mak fate/gapless: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
gif.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
h264.mak avcodec/bsf/h264_mp4toannexb: Fix mixed bitstream format 2025-04-29 15:25:08 +08:00
hap.mak fate/hap: Fix test requirements 2022-05-03 04:18:06 +02:00
hevc.mak tests: Add fate-hevc-alpha 2025-02-25 11:40:33 +08:00
hlsenc.mak fate/hlsenc: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
hw.mak tests: Add EXESUF to program calls. 2019-04-19 01:11:39 +02:00
iamf.mak fate/iamf: add a test for expanded layouts 2024-12-13 16:36:10 -03:00
id3v2.mak fate/id3v2: Add test for reading and writing UTF-16 BOM tags 2022-09-12 22:26:27 +02:00
image.mak Revert "tests/fate: disable compression for zlib-based codecs" 2024-10-16 17:38:57 -03:00
imf.mak fate/imfdec: remove imf experimental flag 2023-02-21 19:38:54 -08:00
indeo.mak
jpeg2000.mak fate/jpeg2000dec: add support for p0_10.j2k 2024-06-24 08:50:59 -07:00
jxl.mak fate/jpegxl: add multiframe permuted TOC image parser test 2023-12-15 11:52:43 -05:00
lavf-audio.mak fate/lavf-audio: Test writing AIFF-native tags 2024-03-17 16:08:13 +01:00
lavf-container.mak tests/fate/lavf-container: fix dependencies for lavf_container_fate tests 2025-01-12 11:13:35 -03:00
lavf-image.mak Revert "tests/fate: disable compression for zlib-based codecs" 2024-10-16 17:38:57 -03:00
lavf-image2pipe.mak fate: add QOI/XBM/XWD image2pipe tests 2022-12-03 19:38:11 +01:00
lavf-video.mak Revert "tests/fate: disable compression for zlib-based codecs" 2024-10-16 17:38:57 -03:00
libavcodec.mak tests/fate/libavcodec: add mjpeg encoder depend for fate-libavcodec-huffman 2024-09-16 10:11:28 +08:00
libavdevice.mak
libavformat.mak avformat/tests: add test for ff_rescale_interval() 2022-03-19 21:34:04 +10:00
libavutil.mak avutil/frame: add helper for adding side data to array 2024-03-20 19:14:02 +02:00
libpostproc.mak fate: add stripetest 2025-04-27 05:04:34 +02:00
libswresample.mak fate/libswresample: add a test downmixing with a custom order layout 2025-02-06 13:51:23 -03:00
libswscale.mak fate/libswscale: Disable ffmpeg-dependent tests without ffmpeg 2024-04-03 19:10:23 +02:00
lossless-audio.mak fate/lossless-audio: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
lossless-video.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
matroska.mak tests/fate/matroska: check the demuxer and decoder allyes before fate-matroska-side-data-pref-codec 2024-09-16 10:12:00 +08:00
microsoft.mak fate/microsoft: add mss2 region test case 2022-11-07 16:08:35 +11:00
monkeysaudio.mak fate/monkeysaudio: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
mov.mak avfilter/setpts: add option strip_fps to decide framerate handling 2025-01-27 15:40:09 +05:30
mp3.mak fate/mp3: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
mpc.mak fate/mpc: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
mpeg4.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
mpegps.mak fate/flvenc: force the av1 decoder in all steps for fate-enhanced-flv-av1 2024-03-08 10:38:55 -03:00
mpegts.mak tests/Makefile: Make DEMDEC etc. auxiliary functions more flexible 2022-04-28 02:39:37 +02:00
mxf.mak fftools/ffprobe: Make pix_fmt output bitexact 2025-03-30 08:24:39 +02:00
oma.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
opus.mak fate/opus: add silk LBRR test (refs #9890) 2022-10-04 11:54:57 +02:00
pcm.mak fate/pcm: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
pixfmt.mak tests/fate/pixfmt: add conversion tests with semi planar YUV formats 2025-03-13 15:00:10 -03:00
pixlet.mak fate/pixlet: Fix test requirements 2022-05-03 04:18:06 +02:00
probe.mak
prores.mak fate/prores: Fix test requirements 2022-05-03 04:18:06 +02:00
qoa.mak fate: Add tests for QOA decoder 2023-12-04 23:14:38 +01:00
qt.mak fate/qt: Fix test requirements 2022-05-03 04:18:05 +02:00
qtrle.mak fate/qtrle: Fix test requirements 2022-05-03 04:18:06 +02:00
real.mak fate/real: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
screen.mak fate/screen: workaround test failure on mac M1 2023-10-18 23:01:51 +08:00
seek.mak tests/fate/seek: check seek opertation with mov demuxer and file protocol 2024-09-16 10:12:17 +08:00
segafilm.mak fate/segafilm: Add tests for segafilm (de)muxer 2022-09-20 18:32:28 +02:00
segment.mak FATE: always pass -nostdin to ffmpeg 2021-12-22 18:38:40 -06:00
source-check.sh tests/fate/source-check: Relax BSD licence check 2024-05-27 19:04:09 +02:00
source.mak
spdif.mak lavf/spdifdec: support EAC3 2023-01-13 11:22:59 -06:00
speedhq.mak fate/speedhq: Fix test requirements 2022-04-28 02:39:37 +02:00
subtitles.mak fate/subtitles: Ignore line endings for sub-scc test 2024-02-13 18:26:48 +01:00
truehd.mak tests/truehd: remove usage of deprecated request_channel_layout option 2023-12-28 15:31:36 -03:00
utvideo.mak fate/utvideo: Fix test requirements 2022-04-28 02:39:37 +02:00
vbn.mak fate/vbn, tests/fate-run: Delete intermediate VBN-files after tests 2022-05-03 04:18:05 +02:00
vcodec.mak fate/vcodec: Add MagicYUV tests 2025-04-20 22:04:36 +02:00
video.mak fate/rv60: add test 2024-11-03 10:53:15 +11:00
voice.mak fate/voice: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
vorbis.mak fate/vorbis: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
vpx.mak fate/vp60-interlace: add test 2024-10-31 17:49:48 +11:00
vqf.mak fate/vqf: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
vvc.mak fate/vvc: Add vvc-wpp-single-slice-pic 2025-04-16 13:42:25 -03:00
wavpack.mak fate/wavpack: Add test for DSD 2024-04-04 23:58:57 +02:00
webm-dash-manifest.mak fate/vpx: Move webm-dash-manifest tests to a new file 2022-05-03 04:18:06 +02:00
wma.mak fate/wmavoice: add missing aresample filter dependency 2024-03-15 12:44:59 -03:00
xvid.mak