OSDN Git Service

ffv1: set internal frame defaults
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 8 May 2011 17:26:22 +0000 (19:26 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 8 May 2011 17:27:57 +0000 (19:27 +0200)
Another fix missed before the vsrc_buffer changes.

libavcodec/ffv1.c

index 814b087..16a9d5d 100644 (file)
@@ -725,6 +725,8 @@ static av_cold int common_init(AVCodecContext *avctx){
     s->avctx= avctx;
     s->flags= avctx->flags;
 
+    avcodec_get_frame_defaults(&s->picture);
+
     dsputil_init(&s->dsp, avctx);
 
     s->width = avctx->width;