diff options
author | Sean McGovern <gseanmcg@gmail.com> | 2014-06-02 18:35:25 -0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-06-17 21:50:20 +0200 |
commit | 9c7321e2b8981ec867294309e9cf3833055df78f (patch) | |
tree | 8c51800f49bf87cd7983246459fe481fd9fa0156 | |
parent | 9552b37e2604552d5ff210175d6baf28ccc2bb80 (diff) | |
download | ffmpeg-9c7321e2b8981ec867294309e9cf3833055df78f.tar.gz |
sgidec: fix an incorrect backport
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-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 13f505a559..6aaa5145e1 100644 --- a/libavcodec/sgidec.c +++ b/libavcodec/sgidec.c @@ -246,6 +246,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; @@ -262,15 +264,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, @@ -279,7 +272,6 @@ AVCodec ff_sgi_decoder = { .init = sgi_init, .close = sgi_end, .decode = decode_frame, - .init = sgi_decode_init, .long_name = NULL_IF_CONFIG_SMALL("SGI image"), }; |