1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/snowdec: Use ff_snow_common_init() directly

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-09-12 23:40:02 +02:00
parent 60e7021064
commit 82b6f4b556

View File

@ -422,17 +422,6 @@ static int decode_header(SnowContext *s){
return 0; 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){ static int decode_blocks(SnowContext *s){
int x, y; int x, y;
int w= s->b_width; int w= s->b_width;
@ -665,7 +654,7 @@ AVCodec ff_snow_decoder = {
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_SNOW, .id = AV_CODEC_ID_SNOW,
.priv_data_size = sizeof(SnowContext), .priv_data_size = sizeof(SnowContext),
.init = decode_init, .init = ff_snow_common_init,
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/, .capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/,