diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-20 01:22:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-20 01:26:57 +0200 |
commit | 724deeb7a8dc512f2bd3c685e5ce35fd34ef91f8 (patch) | |
tree | c28b65dde38c35933a0d7c3e71d7e48c00bcd47a | |
parent | 62899d79a380aadd95793beb096e74eb9c8b8776 (diff) | |
parent | 4310ba273d3bcb7f19a4e40b55b9e832568e56e5 (diff) | |
download | ffmpeg-724deeb7a8dc512f2bd3c685e5ce35fd34ef91f8.tar.gz |
Merge commit '4310ba273d3bcb7f19a4e40b55b9e832568e56e5' into release/1.1
* commit '4310ba273d3bcb7f19a4e40b55b9e832568e56e5':
sgidec: fix an incorrect backport
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/sgidec.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c index f83edf1144..4665c92ff6 100644 --- a/libavcodec/sgidec.c +++ b/libavcodec/sgidec.c @@ -249,6 +249,8 @@ static int decode_frame(AVCodecContext *avctx, static av_cold int sgi_init(AVCodecContext *avctx){ SgiState *s = avctx->priv_data; + s->avctx = avctx; + avcodec_get_frame_defaults(&s->picture); avctx->coded_frame = &s->picture; @@ -265,15 +267,6 @@ static av_cold int sgi_end(AVCodecContext *avctx) return 0; } -static av_cold int sgi_decode_init(AVCodecContext *avctx) -{ - SgiState *s = avctx->priv_data; - - s->avctx = avctx; - - return 0; -} - AVCodec ff_sgi_decoder = { .name = "sgi", .type = AVMEDIA_TYPE_VIDEO, @@ -283,6 +276,5 @@ AVCodec ff_sgi_decoder = { .close = sgi_end, .decode = decode_frame, .long_name = NULL_IF_CONFIG_SMALL("SGI image"), - .init = sgi_decode_init, .capabilities = CODEC_CAP_DR1, }; |