From a761e5951cc571baf36658eb0e98b148e5fb963f Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Mon, 14 May 2012 12:33:04 +0200 Subject: [PATCH] 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 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c index 87b39b0527..4f32631ca0 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)