ffmpeg/tests/fate
Gyan Doshi be8a4f80b9 swr/swresample: avoid reapplication of firstpts
During a resampling operation where

1) user has specified first_pts
2) SWR_FLAG_RESAMPLE is not set initially (directly or otherwise)
3) first_pts has been fulfilled (always using hard compensation)

then upon first encountering a delay where a soft compensation is
required, swr_set_compensation will lead to another init of swr which
will reset outpts to the specified firstpts thus leading to an output
frame having its pts = firstpts. When the next input frame is received,
swr will see a large delay and inject silence from firstpts to the
current frame's pts. This can lead to severe desync and in worst case,
loss of audio playback.

Parameter firstpts initialized to AV_NOPTS_VALUE in swr_alloc and then
checked in swr_init to avoid resetting outpts, thus avoiding reapplication
of firstpts.

Fixes #4131.
2023-12-18 15:47:04 +05:30
..
aac.mak fate/aacenc: increase tolerance for ln-128k test 2022-11-24 15:58:22 +01:00
ac3.mak ac3: convert to lavu/tx 2022-11-06 14:39:27 +01:00
acodec.mak libswresample/swresample: avoid s16p internal transfer format 2023-09-25 21:41:35 +02:00
adpcm.mak
alac.mak
als.mak
amrnb.mak
amrwb.mak
api.mak
apng.mak
atrac.mak
audio.mak fate/audio: msnsiren test case 2022-11-07 16:08:35 +11:00
bmp.mak
build.mak
caf.mak
canopus.mak
cbs.mak fate/cbs: add more VVC tests 2023-07-07 11:56:37 -03:00
cdxl.mak
checkasm.mak checkasm: test for abs_pow34 2023-12-11 18:42:07 +02:00
concatdec.mak
cover-art.mak
dca.mak fate/dca: Fix test requirements 2022-06-01 14:56:50 +02:00
demux.mak Add FATE test for timed id3 demux. 2023-06-29 17:33:01 +02:00
dfa.mak
dnxhd.mak
dpcm.mak
dvvideo.mak lavc/dvdec: export bitrate 2023-07-07 12:12:52 +02:00
ea.mak
enc_external.mak tests/fate: add a simple test for libx264 2023-05-15 10:39:02 +02:00
exif.mak
ffmpeg.mak fate/h264: move mp4toannexb_ticket5927 test to fate-h264 2023-11-22 19:42:15 +08:00
ffprobe.mak
fifo-muxer.mak
filter-audio.mak tests/fate: add asegment filter tests 2023-12-05 14:50:40 +01:00
filter-video.mak tests/fate: add pixelize filter tests 2023-12-14 23:34:46 +01:00
fits.mak tests/fate: fix mismatches between requested and actually used pixel formats 2023-07-20 20:30:13 +02:00
flac.mak fate/flac: Add test of 32 bps encoding/decoding 2022-12-26 21:15:36 +01:00
flvenc.mak avcodec/av1dec: export pixel format even if no hardware decoder is present 2023-09-08 09:42:25 -03:00
gapless.mak
gif.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
h264.mak fate/h264: move mp4toannexb_ticket5927 test to fate-h264 2023-11-22 19:42:15 +08:00
hap.mak
hevc.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
hlsenc.mak tests: Correctly distinguish between SAMPLES and TARGET_SAMPLES for hls_fmp4_ac3.m3u8 2023-08-04 21:51:17 +03:00
hw.mak
id3v2.mak fate/id3v2: Add test for reading and writing UTF-16 BOM tags 2022-09-12 22:26:27 +02:00
image.mak fate/jpg: add RGB mjpeg fate tests 2023-05-17 12:37:42 +02:00
imf.mak fate/imfdec: remove imf experimental flag 2023-02-21 19:38:54 -08:00
indeo.mak
jpeg2000.mak fate/jpeg2000: add missing dependecy checks 2023-04-23 18:54:43 -03: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-*: Add missing dependency on pipe protocol 2022-09-21 15:43:52 +02:00
lavf-container.mak libswresample/swresample: avoid s16p internal transfer format 2023-09-25 21:41:35 +02:00
lavf-image.mak fate/lavf-*: Add missing dependency on pipe protocol 2022-09-21 15:43:52 +02:00
lavf-image2pipe.mak fate: add QOI/XBM/XWD image2pipe tests 2022-12-03 19:38:11 +01:00
lavf-video.mak tests/fate: fix mismatches between requested and actually used pixel formats 2023-07-20 20:30:13 +02:00
libavcodec.mak lavc/av1: Add unit test for level handling 2023-09-22 13:15:01 +08:00
libavdevice.mak
libavformat.mak
libavutil.mak avutil/tests/uuid: add uuid tests 2022-06-12 18:34:37 +10:00
libswresample.mak swr/swresample: avoid reapplication of firstpts 2023-12-18 15:47:04 +05:30
libswscale.mak
lossless-audio.mak fate: add OSQ test 2023-09-06 11:59:20 +02:00
lossless-video.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
matroska.mak fate/matroska: Add test for remuxing non-rotation displaymatrix 2023-09-07 00:28:27 +02:00
microsoft.mak fate/microsoft: add mss2 region test case 2022-11-07 16:08:35 +11:00
monkeysaudio.mak tests/fate: Add NoLegacy-cut.ape test 2023-08-28 01:10:14 +02:00
mov.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
mp3.mak
mpc.mak
mpeg4.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
mpegps.mak fate/mpegps: Fix argument order 2023-09-08 15:48:21 +02:00
mpegts.mak
mxf.mak fate/mxf: add JPEG 2000 test 2022-09-20 11:26:00 +02:00
oma.mak
opus.mak fate/opus: add silk LBRR test (refs #9890) 2022-10-04 11:54:57 +02:00
pcm.mak fate/pcm: Add pcm_dvd transcode tests 2022-07-10 16:58:58 +02:00
pixfmt.mak
pixlet.mak
probe.mak
prores.mak
qoa.mak fate: Add tests for QOA decoder 2023-12-04 23:14:38 +01:00
qt.mak
qtrle.mak
real.mak
screen.mak fate/screen: workaround test failure on mac M1 2023-10-18 23:01:51 +08:00
seek.mak
segafilm.mak fate/segafilm: Add tests for segafilm (de)muxer 2022-09-20 18:32:28 +02:00
segment.mak
source-check.sh fate-source: exclude Apache-2 licensed files 2023-05-29 00:41:59 +02:00
source.mak
spdif.mak lavf/spdifdec: support EAC3 2023-01-13 11:22:59 -06:00
speedhq.mak
subtitles.mak tests: do not override movflags defaults 2023-04-24 23:00:50 +02:00
truehd.mak tests/fate/truehd: Add test for shortened Ticket1726 testcase 2022-10-04 23:47:53 +02:00
utvideo.mak
vbn.mak
vcodec.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
video.mak fftools/ffmpeg: rework -enc_time_base handling 2023-07-15 11:02:11 +02:00
voice.mak
vorbis.mak
vpx.mak tests/fate: replace deprecated -vsync with -fps_mode 2023-11-14 18:18:26 +01:00
vqf.mak
wavpack.mak fate/wavpack: Test APE cuesheet tags 2022-05-31 12:45:41 +02:00
webm-dash-manifest.mak
wma.mak wmavoice: convert DCT-I/DST-I to lavu/tx 2023-09-01 23:59:11 +02:00
xvid.mak