This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 7c5df8d34d48395fe1aea8b9e1a1e0ad824b53e4 Author: James Almer <[email protected]> AuthorDate: Thu May 7 15:01:15 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Sat May 16 13:55:22 2026 -0300 avformat/matroskaenc: use frame_size to write audio DefaultDuration Signed-off-by: James Almer <[email protected]> --- libavformat/matroskaenc.c | 2 ++ tests/ref/fate/aac-autobsf-adtstoasc | 4 ++-- tests/ref/fate/matroska-dovi-write-config8 | 4 ++-- tests/ref/fate/matroska-flac-extradata-update | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 67f39023ce..ff85722120 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -2097,6 +2097,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, put_ebml_uint(pb, MATROSKA_ID_TRACKTYPE, MATROSKA_TRACK_TYPE_AUDIO); audio_frame_samples = av_get_audio_frame_duration2(par, 0); + if (!audio_frame_samples) + audio_frame_samples = par->frame_size; if (audio_frame_samples) mkv_write_default_duration(track, pb, (AVRational){ audio_frame_samples, par->sample_rate }); diff --git a/tests/ref/fate/aac-autobsf-adtstoasc b/tests/ref/fate/aac-autobsf-adtstoasc index 616f875ab3..1d7fe46536 100644 --- a/tests/ref/fate/aac-autobsf-adtstoasc +++ b/tests/ref/fate/aac-autobsf-adtstoasc @@ -1,5 +1,5 @@ -b8594ae7884fcad4acfc5b997d012857 *tests/data/fate/aac-autobsf-adtstoasc.matroska -6645 tests/data/fate/aac-autobsf-adtstoasc.matroska +e76eb6a17a975e0f12b6868082bfaf0d *tests/data/fate/aac-autobsf-adtstoasc.matroska +6653 tests/data/fate/aac-autobsf-adtstoasc.matroska #extradata 0: 2, 0x0030001c #tb 0: 1/1000 #media_type 0: audio diff --git a/tests/ref/fate/matroska-dovi-write-config8 b/tests/ref/fate/matroska-dovi-write-config8 index ca21892686..43a703bb25 100644 --- a/tests/ref/fate/matroska-dovi-write-config8 +++ b/tests/ref/fate/matroska-dovi-write-config8 @@ -1,5 +1,5 @@ -2f28699111ea95a7d2937a23e92dfd77 *tests/data/fate/matroska-dovi-write-config8.matroska -3600617 tests/data/fate/matroska-dovi-write-config8.matroska +6562aa21af7d0e8ef44c9bca106731cb *tests/data/fate/matroska-dovi-write-config8.matroska +3600625 tests/data/fate/matroska-dovi-write-config8.matroska #extradata 0: 551, 0xb1ddcd66 #extradata 1: 2, 0x00340022 #tb 0: 1/1000 diff --git a/tests/ref/fate/matroska-flac-extradata-update b/tests/ref/fate/matroska-flac-extradata-update index a4f8bf2dac..7bd2080f08 100644 --- a/tests/ref/fate/matroska-flac-extradata-update +++ b/tests/ref/fate/matroska-flac-extradata-update @@ -1,5 +1,5 @@ -f0b0a6a8a0fc975aef9048023faf7c92 *tests/data/fate/matroska-flac-extradata-update.matroska -1804 tests/data/fate/matroska-flac-extradata-update.matroska +099e0feb5990575e2b46ed9abafc998a *tests/data/fate/matroska-flac-extradata-update.matroska +1828 tests/data/fate/matroska-flac-extradata-update.matroska #extradata 0: 34, 0x93650c81 #extradata 1: 34, 0x93650c81 #extradata 2: 34, 0x93650c81 _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
