]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/nuv.c
Merge commit 'f1d8763a02b5fce9a7d9789e049d74a45b15e1e8'
[ffmpeg] / libavcodec / nuv.c
index 67c9c0f9fb16ab593bfb183e0c105c6da5983a04..ff11d007c493ccaa89a862d69b841eb497171d93 100644 (file)
@@ -262,7 +262,8 @@ retry:
             av_log(avctx, AV_LOG_ERROR, "uncompressed frame too short\n");
             height = buf_size / c->width / 3 * 2;
         }
-        copy_frame(&c->pic, buf, c->width, height);
+        if(height > 0)
+            copy_frame(&c->pic, buf, c->width, height);
         break;
     }
     case NUV_RTJPEG_IN_LZO: