[FFmpeg-devel] a small patch to work around some very corrupted VOB?files
Michael Niedermayer
michaelni
Mon Oct 27 17:25:47 CET 2008
On Mon, Oct 27, 2008 at 01:23:48PM +0200, Avner Shapiro wrote:
> On Monday 27 October 2008 12:48:04 Benjamin Larsson wrote:
> > Avner Shapiro wrote:
> > > Hello ffmpeg-devel list.
> > >
> > > [...]
> > > My suggestion is, to add an (mpeg-only) option "--corrupt_file_factor" to multiply MAX_SYNC_SIZE at mpegps_read_pes_header() before calling find_next_start_code().
> > > That way the user may perform what I did without recompiling the code.
> > >
> >
> > Patch missing.
[...]
>
> Sorry. Here it is attached.
> Thank you.
i think the correct solution is to return AVERROR(EAGAIN) instead of
EIO when MAX_SYNC_SIZE is reached instead of changing MAX_SYNC_SIZE.
a patch doing this is welcome provided it works.
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081027/2e8dd250/attachment.pgp>
More information about the ffmpeg-devel
mailing list