diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 7eb6e607d14dbc97eacc405bf823020bfdbd6779..69dbd1b25d52f9c6b5434829a30a0cce15b0e27f 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -659,6 +659,7 @@ static int svq1_decode_frame(AVCodecContext *avctx,
     av_dlog(s->avctx, "Error in svq1_decode_frame_header %i\n",result);
     return result;
   }
+  avcodec_set_dimensions(avctx, s->width, s->height);
 
   //FIXME this avoids some confusion for "B frames" without 2 references
   //this should be removed after libavcodec can handle more flexible picture types & ordering