Oh yes, of course. I updated the commit-message in the attached new patch.
Am 13.03.21 um 11:41 schrieb Michael Niedermayer:
The commit message should mention "Fixes Ticket8333" if that is a bugfix for that ticket also maybe some of the other details you write in your mail could be moved into the commit message Thanks [...]
>From 8bcbd3ff98c63a96c5191244de25fc83f1c2fd5b Mon Sep 17 00:00:00 2001 From: Mark Plomer <not-implemen...@mark-plomer.de> Date: Sat, 16 Jan 2021 14:04:44 +0100 Subject: [PATCH] avcodec/dv_profile: dv files with wrong dsf flag - detect via buf_size Some old DV AVI files have the DSF-Flag of frames set to 0, although it is PAL (maybe rendered with an old Ulead Media Studio Pro) ... this causes ffmpeg/VLC-player to produce/play corrupted video (other players/editors like VirtualDub work fine). Fixes ticket #8333 --- libavcodec/dv_profile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/dv_profile.c b/libavcodec/dv_profile.c index 66505c886b..8f9a358032 100644 --- a/libavcodec/dv_profile.c +++ b/libavcodec/dv_profile.c @@ -281,6 +281,10 @@ const AVDVProfile* ff_dv_frame_profile(AVCodecContext* codec, const AVDVProfile && codec->coded_height==576) return &dv_profiles[1]; + /* hack for trac issue #8333, dv files with wrong dsf flag - detect via buf_size */ + if (dsf == 0 && stype == dv_profiles[1].video_stype && buf_size == dv_profiles[1].frame_size) + return &dv_profiles[1]; + for (i = 0; i < FF_ARRAY_ELEMS(dv_profiles); i++) if (dsf == dv_profiles[i].dsf && stype == dv_profiles[i].video_stype) return &dv_profiles[i]; -- 2.25.1
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".