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

Michael Niedermayer michaelni
Sat Mar 27 02:05:19 CET 2010


On Sat, Mar 27, 2010 at 01:18:51AM +0530, Mohamed Naufal wrote:
> 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().

not pretty but i see this probably isnt easy to avoid

did you test the code with damaged files (tools/trasher)
it shouldnt crash or hang with it

except that its probably ok

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

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- 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/20100327/96af3ce7/attachment.pgp>



More information about the ffmpeg-devel mailing list