]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h261dec.c
Simplify RGB32 png encoding.
[ffmpeg] / libavcodec / h261dec.c
index 9b34690e1771d2074301c0d4db08a5c3da08179f..ff3d05c5147399ea751470aa649e154cd0778a5c 100644 (file)
@@ -572,6 +572,8 @@ retry:
     //we need to set current_picture_ptr before reading the header, otherwise we cannot store anyting im there
     if (s->current_picture_ptr == NULL || s->current_picture_ptr->f.data[0]) {
         int i= ff_find_unused_picture(s, 0);
+        if (i < 0)
+            return i;
         s->current_picture_ptr= &s->picture[i];
     }