[FFmpeg-devel] Fwd: [PATCH] Psygnosis YOP demuxer

Mohamed Naufal naufal11
Fri Mar 26 00:50:29 CET 2010


On 24 March 2010 07:51, Michael Niedermayer <michaelni at gmx.at> wrote:


[...]

> you could put a 0 or 1 in AVPacket.data[0]
> but this is ugly, so lets just keep the ugly marking of half of them as
> keyframes.
>
>

The demuxer now marks pkt.data[0] as odd/even and all pkt.flags as key-frames.
Doing this so that seeking using

frame_pos = timestamp * frame_size + pos_min;
seek(frame_pos);

wouldn't be wrong.
The first 4 B of pkt.data is unused anyway.

Also modified the decoder to output in PAL8.

Naufal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yop.patch
Type: text/x-patch
Size: 18738 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100326/cd887184/attachment.bin>



More information about the ffmpeg-devel mailing list