From 3b199d29cd597a3518136d78860e172060b9e83d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Feb 2013 08:50:04 +0100 Subject: lavc decoders: properly initialize AVFrame. --- libavcodec/flicvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/flicvideo.c') diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c index 2588619e15..3d43e5e827 100644 --- a/libavcodec/flicvideo.c +++ b/libavcodec/flicvideo.c @@ -123,7 +123,7 @@ static av_cold int flic_decode_init(AVCodecContext *avctx) return AVERROR_INVALIDDATA; } - s->frame.data[0] = NULL; + avcodec_get_frame_defaults(&s->frame); s->new_palette = 0; return 0; -- cgit v1.2.3