OSDN Git Service

idcinvideo: correctly set AVFrame defaults
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 1 Aug 2012 19:46:08 +0000 (15:46 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 9 Jan 2013 19:49:06 +0000 (14:49 -0500)
libavcodec/idcinvideo.c

index 273eca6..05cd673 100644 (file)
@@ -168,7 +168,7 @@ static av_cold int idcin_decode_init(AVCodecContext *avctx)
         huff_build_tree(s, i);
     }
 
-    s->frame.data[0] = NULL;
+    avcodec_get_frame_defaults(&s->frame);
 
     return 0;
 }