Skip to content
Snippets Groups Projects
Commit 8d61eef9 authored by Janne Grunau's avatar Janne Grunau
Browse files

ptx: fix inverted check for sufficient data

Fix regression introduced in 2b53e696.
parent 28101f6c
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, ...@@ -84,7 +84,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
ptr = p->data[0]; ptr = p->data[0];
stride = p->linesize[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 #if HAVE_BIGENDIAN
unsigned int x; unsigned int x;
for (x=0; x<w*bytes_per_pixel; x+=bytes_per_pixel) for (x=0; x<w*bytes_per_pixel; x+=bytes_per_pixel)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment