[FFmpeg-cvslog] mss1: set frame defaults

Michael Niedermayer git at videolan.org
Tue Mar 12 12:22:55 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Mar 12 12:11:50 2013 +0100| [64d11cb615a9d6591836bf87e76f8ee543467ded] | committer: Michael Niedermayer

mss1: set frame defaults

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=64d11cb615a9d6591836bf87e76f8ee543467ded
---

 libavcodec/mss1.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/mss1.c b/libavcodec/mss1.c
index b6cd425..195f242 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);
 



More information about the ffmpeg-cvslog mailing list