]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv10.c
Remove hackish support for the non-free fixed-point AMR-NB reference code.
[ffmpeg] / libavcodec / rv10.c
index af438a34b739203df34c305cb5a28438266efeb4..e1e8287d5752753f54aecc34558777cee972af9f 100644 (file)
@@ -454,6 +454,8 @@ static int rv20_decode_picture_header(MpegEncContext *s)
         }
         if(new_w != s->width || new_h != s->height){
             av_log(s->avctx, AV_LOG_DEBUG, "attempting to change resolution to %dx%d\n", new_w, new_h);
+            if (avcodec_check_dimensions(s->avctx, new_h, new_w) < 0)
+                return -1;
             MPV_common_end(s);
             s->width  = s->avctx->width = new_w;
             s->height = s->avctx->height= new_h;