26 Mar
2010
26 Mar
'10
10:48 p.m.
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