[FFmpeg-cvslog] yop: Fix return type

Michael Niedermayer git at videolan.org
Mon Mar 25 15:15:32 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 25 15:10:39 2013 +0100| [8097e5b21209b030d18e1f206227dc9c191eb265] | committer: Michael Niedermayer

yop: Fix return type

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8097e5b21209b030d18e1f206227dc9c191eb265
---

 libavcodec/yop.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/yop.c b/libavcodec/yop.c
index a282589..807e170 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)



More information about the ffmpeg-cvslog mailing list