Merge remote-tracking branch 'qatar/master'
[ffmpeg.git] / libavcodec / h263dec.c
index 9bad8e6..0d741d8 100644 (file)
@@ -410,6 +410,8 @@ retry:
      * otherwise we cannot store anyting in 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];
     }