[FFmpeg-devel] [PATCH] Psygnosis YOP demuxer

Michael Niedermayer michaelni
Mon Aug 10 02:47:19 CEST 2009


On Sun, Aug 09, 2009 at 03:10:36AM -0400, Thomas Higdon wrote:
> On Sat, Aug 8, 2009 at 11:21 PM, Mike Melanson<mike at multimedia.cx> wrote:
> > Thomas Higdon wrote:
> >>
> >> On Sat, Aug 8, 2009 at 7:10 PM, Thomas Higdon<thomas.p.higdon at gmail.com>
> >> wrote:
> >>>
> >>> Also, I believe there still may be problems with this demuxer. When
> >>> the stream ends, the video freezes, and A-V sync continues into the
> >>> negative indefinitely. Any ideas on what might be causing this?
> >>
> >> Further investigation reveals that this happens with some other clips
> >> I tried, so perhaps it's just a bug in ffplay.
> >
> > Does FFmpeg work? (E.g., 'ffmpeg -i file.yop %04d.png' should decode the
> > frames to a series of PNG files and exit cleanly.)
> 
> As a matter of fact, it didn't (it continued decoding frames
> indefinitely). I've fixed it by returning AVERROR(EIO) in the event
> that an av_get_packet() returns with a size less than I asked for in
> yop_read_packet().

probabl should be AVERROR_EOF

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- 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/20090810/ebedf0f1/attachment.pgp>



More information about the ffmpeg-devel mailing list