Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-02-13 11:50:04 +0400
committerAnton Khirnov <anton@khirnov.net>2013-03-08 10:39:37 +0400
commit3b199d29cd597a3518136d78860e172060b9e83d (patch)
treedc28aebc7ea0629fb24103931c8bf7a97cfc54ef /libavcodec/avs.c
parent759001c534287a96dc96d1e274665feb7059145d (diff)
lavc decoders: properly initialize AVFrame.
Diffstat (limited to 'libavcodec/avs.c')
-rw-r--r--libavcodec/avs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index 45cb4484d6..da27e0013f 100644
--- a/libavcodec/avs.c
+++ b/libavcodec/avs.c
@@ -158,8 +158,10 @@ avs_decode_frame(AVCodecContext * avctx,
static av_cold int avs_decode_init(AVCodecContext * avctx)
{
+ AvsContext *s = avctx->priv_data;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
avcodec_set_dimensions(avctx, 318, 198);
+ avcodec_get_frame_defaults(&s->picture);
return 0;
}