aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-20 01:32:25 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-20 01:32:33 +0200
commitc1ac5896ef9a37fb2e198b7de36e477a9f1a69e9 (patch)
treeb922181f3232df248f6dadbba80d56593b10c59d
parentda97174dcb1457b2b47b07b5205610409469039e (diff)
parent9c7321e2b8981ec867294309e9cf3833055df78f (diff)
downloadffmpeg-c1ac5896ef9a37fb2e198b7de36e477a9f1a69e9.tar.gz
Merge commit '9c7321e2b8981ec867294309e9cf3833055df78f' into release/0.10
* commit '9c7321e2b8981ec867294309e9cf3833055df78f': sgidec: fix an incorrect backport Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/sgidec.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index b6b66bf182..d6f9949744 100644
--- a/libavcodec/sgidec.c
+++ b/libavcodec/sgidec.c
@@ -247,6 +247,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;
@@ -263,15 +265,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,
@@ -280,7 +273,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"),
};