On Thu, Nov 24, 2011 at 11:26:30AM +0100, Anton Khirnov wrote: > From: Michael Niedermayer <[email protected]> > > Signed-off-by: Anton Khirnov <[email protected]> > --- > libavcodec/fraps.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c > index ed33c3e..12c4d9c 100644 > --- a/libavcodec/fraps.c > +++ b/libavcodec/fraps.c > @@ -111,6 +111,10 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t > *dst, int stride, int w, > */ > if(j) dst[i] += dst[i - stride]; > else if(Uoff) dst[i] += 0x80; > + if (get_bits_left(&gb) < 0) { > + free_vlc(&vlc); > + return -1; > + } > } > dst += stride; > } > --
looks OK _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
