[FFmpeg-cvslog] smvjpeg: remove redundant frame init code

Hendrik Leppkes git at videolan.org
Fri Jun 21 23:38:59 CEST 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Jun 21 19:51:39 2013 +0200| [1a405c683e03681d5f55a896b056aab4ab63f8de] | committer: Michael Niedermayer

smvjpeg: remove redundant frame init code

avctx->coded_frame is not used for decoders anymore,
and av_frame_alloc does all the frame initialization required.

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

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

 libavcodec/smvjpegdec.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c
index 919b9a5..d815ef1 100644
--- a/libavcodec/smvjpegdec.c
+++ b/libavcodec/smvjpegdec.c
@@ -102,8 +102,6 @@ static av_cold int smvjpeg_decode_init(AVCodecContext *avctx)
         ret = -1;
     }
 
-    avcodec_get_frame_defaults(s->picture[1]);
-    avctx->coded_frame = s->picture[1];
     codec = avcodec_find_decoder(AV_CODEC_ID_MJPEG);
     if (!codec) {
         av_log(avctx, AV_LOG_ERROR, "MJPEG codec not found\n");



More information about the ffmpeg-cvslog mailing list