summaryrefslogtreecommitdiff
path: root/libavcodec/c93.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-02-13 08:50:04 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-08 07:39:37 +0100
commit3b199d29cd597a3518136d78860e172060b9e83d (patch)
treedc28aebc7ea0629fb24103931c8bf7a97cfc54ef /libavcodec/c93.c
parent759001c534287a96dc96d1e274665feb7059145d (diff)
lavc decoders: properly initialize AVFrame.
Diffstat (limited to 'libavcodec/c93.c')
-rw-r--r--libavcodec/c93.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/c93.c b/libavcodec/c93.c
index 750941e021..b534669ca2 100644
--- a/libavcodec/c93.c
+++ b/libavcodec/c93.c
@@ -48,7 +48,10 @@ typedef enum {
static av_cold int decode_init(AVCodecContext *avctx)
{
+ C93DecoderContext *s = avctx->priv_data;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
+ avcodec_get_frame_defaults(&s->pictures[0]);
+ avcodec_get_frame_defaults(&s->pictures[1]);
return 0;
}