Browse code

avrndec: silence warning about incompatible pointer types

Signed-off-by: Paul B Mahol <onemda@gmail.com>

Paul B Mahol authored on 2012/08/26 19:23:54
Showing 1 changed files
... ...
@@ -58,7 +58,7 @@ static av_cold int init(AVCodecContext *avctx)
58 58
     return 0;
59 59
 }
60 60
 
61
-static av_cold void end(AVCodecContext *avctx)
61
+static av_cold int end(AVCodecContext *avctx)
62 62
 {
63 63
     AVRnContext *a = avctx->priv_data;
64 64
     AVFrame *p = &a->frame;
... ...
@@ -68,6 +68,8 @@ static av_cold void end(AVCodecContext *avctx)
68 68
 
69 69
     if(a->is_mjpeg)
70 70
         ff_mjpeg_decode_end(avctx);
71
+
72
+    return 0;
71 73
 }
72 74
 
73 75
 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)