Browse Source

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

libavcodec/vcr1.c:182: warning: initialization from incompatible pointer type
tags/n0.11
Diego Biurrun 13 years ago
parent
commit
a761e5951c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/vcr1.c

+ 3
- 1
libavcodec/vcr1.c View File

@@ -33,11 +33,13 @@ typedef struct VCR1Context {
int offset[4]; int offset[4];
} VCR1Context; } VCR1Context;


static av_cold void common_init(AVCodecContext *avctx)
static av_cold int common_init(AVCodecContext *avctx)
{ {
VCR1Context *const a = avctx->priv_data; VCR1Context *const a = avctx->priv_data;


avctx->coded_frame = &a->picture; avctx->coded_frame = &a->picture;

return 0;
} }


static av_cold int decode_init(AVCodecContext *avctx) static av_cold int decode_init(AVCodecContext *avctx)


Loading…
Cancel
Save