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

Mohamed Naufal naufal11
Fri Mar 26 20:48:51 CET 2010


On 26 March 2010 21:06, Michael Niedermayer <michaelni at gmx.at> wrote:


[...]

>> + * Take s->dstptr to the next macroblock in sequence.
>> + */
>> +static void yop_next_macroblock(YopDecContext *s)
>> +{
>> + ? ?// If we are advancing to the next row of macroblocks
>> + ? ?if (s->row_pos == s->frame.linesize[0] - 2) {
>> + ? ? ? ?s->dstptr ?+= s->frame.linesize[0];
>
> this looks like it assumes width == linesize
> this is not guranteed by get_buffer()
>


But width is assigned to linesize after get_buffer().
Doing this so that width is available in paint_block() and
copy_block() implicitly.

[...]

Fixed other issues.

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



More information about the ffmpeg-devel mailing list