[libav-commits] vcr1: Fix return type of common_init to match the function pointer signature.

Diego Biurrun git at libav.org
Mon May 14 16:31:48 CEST 2012


Module: libav
Branch: master
Commit: a761e5951cc571baf36658eb0e98b148e5fb963f

Author:    Diego Biurrun <diego at biurrun.de>
Committer: Diego Biurrun <diego at biurrun.de>
Date:      Mon May 14 12:33:04 2012 +0200

vcr1: Fix return type of common_init to match the function pointer signature.

libavcodec/vcr1.c:182: warning: initialization from incompatible pointer type

---

 libavcodec/vcr1.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c
index 87b39b0..4f32631 100644
--- a/libavcodec/vcr1.c
+++ b/libavcodec/vcr1.c
@@ -33,11 +33,13 @@ typedef struct VCR1Context {
     int offset[4];
 } VCR1Context;
 
-static av_cold void common_init(AVCodecContext *avctx)
+static av_cold int common_init(AVCodecContext *avctx)
 {
     VCR1Context *const a = avctx->priv_data;
 
     avctx->coded_frame = &a->picture;
+
+    return 0;
 }
 
 static av_cold int decode_init(AVCodecContext *avctx)



More information about the libav-commits mailing list