summaryrefslogtreecommitdiff
path: root/libavcodec/yop.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-25 15:10:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-25 15:14:20 +0100
commit8097e5b21209b030d18e1f206227dc9c191eb265 (patch)
treed2f94c2af09d10e7318ac8568c5093828d80623c /libavcodec/yop.c
parentafdfff485b6527fe439351ce40fa7d3f97661dc4 (diff)
downloadffmpeg-8097e5b21209b030d18e1f206227dc9c191eb265.tar.gz
yop: Fix return type
Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/yop.c')
-rw-r--r--libavcodec/yop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/yop.c b/libavcodec/yop.c
index a282589aee..807e1706af 100644
--- a/libavcodec/yop.c
+++ b/libavcodec/yop.c
@@ -79,11 +79,13 @@ static const int8_t motion_vector[16][2] =
{ 4, -2}, {-2, 0},
};
-static av_cold void yop_decode_close(AVCodecContext *avctx)
+static av_cold int yop_decode_close(AVCodecContext *avctx)
{
YopDecContext *s = avctx->priv_data;
av_frame_free(&s->frame);
+
+ return 0;
}
static av_cold int yop_decode_init(AVCodecContext *avctx)