]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h261dec.c
vmdvideo: use the AVFrame API properly.
[ffmpeg] / libavcodec / h261dec.c
index 479da779581cd4484da95f326882537f6785270f..4842fa0dd35f6d97969afd48d50c1903b3aeacb4 100644 (file)
@@ -29,6 +29,7 @@
 #include "mpegvideo.h"
 #include "h263.h"
 #include "h261.h"
+#include "internal.h"
 
 #define H261_MBA_VLC_BITS 9
 #define H261_MTYPE_VLC_BITS 6
@@ -607,7 +608,9 @@ retry:
         s->parse_context = pc;
     }
     if (!s->context_initialized) {
-        avcodec_set_dimensions(avctx, s->width, s->height);
+        ret = ff_set_dimensions(avctx, s->width, s->height);
+        if (ret < 0)
+            return ret;
 
         goto retry;
     }