aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/snowdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-12 23:40:02 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-14 15:11:02 +0200
commit82b6f4b5563fccfbe21ea1b4e14109ce1f57ef2d (patch)
treedb884d9c6f851bdc8353baaffb5c4c04b094a86c /libavcodec/snowdec.c
parent60e7021064ea9e99854c585d452e89f38635480e (diff)
downloadffmpeg-82b6f4b5563fccfbe21ea1b4e14109ce1f57ef2d.tar.gz
avcodec/snowdec: Use ff_snow_common_init() directly
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/snowdec.c')
-rw-r--r--libavcodec/snowdec.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c
index 5e69f39022..68afe0df26 100644
--- a/libavcodec/snowdec.c
+++ b/libavcodec/snowdec.c
@@ -422,17 +422,6 @@ static int decode_header(SnowContext *s){
return 0;
}
-static av_cold int decode_init(AVCodecContext *avctx)
-{
- int ret;
-
- if ((ret = ff_snow_common_init(avctx)) < 0) {
- return ret;
- }
-
- return 0;
-}
-
static int decode_blocks(SnowContext *s){
int x, y;
int w= s->b_width;
@@ -665,7 +654,7 @@ AVCodec ff_snow_decoder = {
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_SNOW,
.priv_data_size = sizeof(SnowContext),
- .init = decode_init,
+ .init = ff_snow_common_init,
.close = decode_end,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/,