[FFmpeg-devel] [PATCH] Psygnosis YOP demuxer

Thomas Higdon thomas.p.higdon
Mon Aug 10 02:57:16 CEST 2009


On Sun, Aug 9, 2009 at 8:47 PM, Michael Niedermayer<michaelni at gmx.at> wrote:
> 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

Fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yop-demux.diff
Type: text/x-patch
Size: 8252 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090809/18def740/attachment.bin>



More information about the ffmpeg-devel mailing list