From 8f9941b1608ccdfc24394ee0d5b01c5f7618a134 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 26 Aug 2012 10:23:54 +0000 Subject: avrndec: silence warning about incompatible pointer types Signed-off-by: Paul B Mahol --- libavcodec/avrndec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/avrndec.c') diff --git a/libavcodec/avrndec.c b/libavcodec/avrndec.c index 8305028d06..cda360de1a 100644 --- a/libavcodec/avrndec.c +++ b/libavcodec/avrndec.c @@ -58,7 +58,7 @@ static av_cold int init(AVCodecContext *avctx) return 0; } -static av_cold void end(AVCodecContext *avctx) +static av_cold int end(AVCodecContext *avctx) { AVRnContext *a = avctx->priv_data; AVFrame *p = &a->frame; @@ -68,6 +68,8 @@ static av_cold void end(AVCodecContext *avctx) if(a->is_mjpeg) ff_mjpeg_decode_end(avctx); + + return 0; } static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) -- cgit v1.2.3