mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
7cdf574c22
commit
1a405c683e
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user