diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c
index 87b39b0527989e15099160238a51d5d32da8282a..4f32631ca0b3a82b85002cbd5c124657893d3732 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)