From: Marton Balint <cus@passwd.hu> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH] avformat/mxfdec: only check index_edit_rate when calculating the index tables Date: Sat, 4 May 2024 03:49:05 +0200 (CEST) Message-ID: <4b73304e-fe66-4d8e-9054-435d608202b7@passwd.hu> (raw) In-Reply-To: <a8668ceca1fd8110a83ce7c42cfae1509e74e872.camel@haerdin.se> On Fri, 3 May 2024, Tomas Härdin wrote: > tor 2024-05-02 klockan 23:01 +0200 skrev Marton Balint: >> >> >> On Mon, 29 Apr 2024, Tomas Härdin wrote: >> >> > mån 2024-04-15 klockan 21:34 +0200 skrev Marton Balint: >> > > Commit ed49391961999f028e0bc55767d0eef6eeb15e49 started rejecting >> > > negative >> > > index segment edit rates to avoid negative av_rescale parameters. >> > > There are two >> > > problems with this: >> > > >> > > 1) there is already a validation for zero (uninitialized) rates >> > > later >> > > on >> > > 2) it rejects files with 0/0 index edit rates which do exist and >> > > we >> > > should >> > > continue to support those >> > >> > There are no such files in FATE last time I checked. At the very >> > least >> > we need to know which vendor is producing such broken files. >> > >> > Without tests covering the workflows we want to support, we have no >> > confidence in refactoriing. This leads to cargo culting. And to be >> > sure, every workflow we support means a non-trivial amount of work, >> > especially when it comes to MXF. >> >> I can add a comment to the code or the commit message, we did this >> plenty >> of times in the past. The broken software is Marquise Technologies MT >> Mediabase 4.7.2 by the way. I can also rework the patch to keep >> rejecting >> negative values and only allow zero, as that is the only thing I >> *know* to >> exist. > > We could also tell Marquise Technologies to fix their software. MXF is > a living ecosystem > >> If we add a new FATE file for every fixed file or workflow, the >> amount of >> FATE samples (and the time fate will run) will increase >> significantly, I >> am not sure that is intended. > > "Support any old workflow but don't add tests for them" is a ridiculous > position. It also prevents refactoring. There are real costs to > supporting workflows that no one uses. Hence why I mention SLAs. The > only people interested in MXF are professionals. And what if a home user gets a file from a professional user? Crippling professional use cases from ffmpeg, or make professional features a payable option - via SLA or otherwise - is something I cannot support. > >> In this case, I could only craft an MXF >> file, because I don't have access to the software. > > Yes we can craft arbitrarily broken files. That doesn't help anyone. > It's just cargo culting. Cargo culting would be fixing files which do not exists in the wild. Files with 0/0 index edit rate do exist. So this patch clearly helps anybody who is trying to play those. I can create a fate test for supporting 0/0 index edit rates if that is indeed preferred. Regards, Marton _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-05-04 1:49 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-15 19:34 Marton Balint 2024-04-29 20:46 ` Tomas Härdin 2024-05-02 21:01 ` Marton Balint 2024-05-02 23:37 ` Michael Niedermayer 2024-05-03 14:50 ` Tomas Härdin 2024-05-04 1:49 ` Marton Balint [this message] 2024-05-06 11:23 ` Tomas Härdin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4b73304e-fe66-4d8e-9054-435d608202b7@passwd.hu \ --to=cus@passwd.hu \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git