]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ivi.c
avformat/argo_asf: fix enforcement of chunk count
[ffmpeg] / libavcodec / ivi.c
index c5c50fb5c12d1fbad60723658fb8eb1b10e1c865..c10984e83ed8036cc411aba8125f7626aa156678 100644 (file)
@@ -442,8 +442,10 @@ av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes,
 
             av_freep(&band->tiles);
             band->tiles = av_mallocz_array(band->num_tiles, sizeof(IVITile));
-            if (!band->tiles)
+            if (!band->tiles) {
+                band->num_tiles = 0;
                 return AVERROR(ENOMEM);
+            }
 
             /* use the first luma band as reference for motion vectors
              * and quant */