summaryrefslogtreecommitdiff
path: root/libavcodec/truemotion2.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/truemotion2.c
parent759001c534287a96dc96d1e274665feb7059145d (diff)
lavc decoders: properly initialize AVFrame.
Diffstat (limited to 'libavcodec/truemotion2.c')
-rw-r--r--libavcodec/truemotion2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c
index 2ecfb93161..342cb05e15 100644
--- a/libavcodec/truemotion2.c
+++ b/libavcodec/truemotion2.c
@@ -900,7 +900,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
l->avctx = avctx;
- l->pic.data[0] = NULL;
+ avcodec_get_frame_defaults(&l->pic);
avctx->pix_fmt = AV_PIX_FMT_BGR24;
ff_dsputil_init(&l->dsp, avctx);