summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/mss1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mss1.c b/libavcodec/mss1.c
index b6cd42555c..195f242525 100644
--- a/libavcodec/mss1.c
+++ b/libavcodec/mss1.c
@@ -193,7 +193,8 @@ static av_cold int mss1_decode_init(AVCodecContext *avctx)
int ret;
c->ctx.avctx = avctx;
- avctx->coded_frame = &c->pic;
+
+ avcodec_get_frame_defaults(&c->pic);
ret = ff_mss12_decode_init(&c->ctx, 0, &c->sc, NULL);