Janne Grunau <[email protected]> writes: > Fix regression introduced in 2b53e69. > --- > libavcodec/ptx.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c > index 75b42d5..fd4933c 100644 > --- a/libavcodec/ptx.c > +++ b/libavcodec/ptx.c > @@ -84,7 +84,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void > *data, int *data_size, > ptr = p->data[0]; > stride = p->linesize[0]; > > - for (y = 0; y < h && buf_end - buf < w * bytes_per_pixel; y++) { > + for (y = 0; y < h && buf_end - buf >= w * bytes_per_pixel; y++) { > #if HAVE_BIGENDIAN > unsigned int x; > for (x=0; x<w*bytes_per_pixel; x+=bytes_per_pixel) > --
OK -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
