]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ptx.c
vp8: Add ifdef guards around the sse2 loopfilter in the sse2slow branch too
[ffmpeg] / libavcodec / ptx.c
index 75b42d50732d06ecd1ab9b5d5ac1cf1cc55288c0..2782706e82910ac36540f655f42bcf10c83df558 100644 (file)
@@ -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)
@@ -125,5 +125,5 @@ AVCodec ff_ptx_decoder = {
     .close          = ptx_end,
     .decode         = ptx_decode_frame,
     .capabilities   = CODEC_CAP_DR1,
-    .long_name = NULL_IF_CONFIG_SMALL("V.Flash PTX image"),
+    .long_name      = NULL_IF_CONFIG_SMALL("V.Flash PTX image"),
 };