diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-06-21 19:51:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-21 21:53:34 +0200 |
commit | 1a405c683e03681d5f55a896b056aab4ab63f8de (patch) | |
tree | 3fdbf958b5c9055536348ecc96a096402eb7c232 /libavcodec/smvjpegdec.c | |
parent | 7cdf574c22b85e53ed42e64313700193f00e378f (diff) | |
download | ffmpeg-1a405c683e03681d5f55a896b056aab4ab63f8de.tar.gz |
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@gmx.at>
Diffstat (limited to 'libavcodec/smvjpegdec.c')
-rw-r--r-- | libavcodec/smvjpegdec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c index 919b9a5771..d815ef18ca 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"); |