Browse Source

yop: Fix return type

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
8097e5b212
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/yop.c

+ 3
- 1
libavcodec/yop.c View File

@@ -79,11 +79,13 @@ static const int8_t motion_vector[16][2] =
{ 4, -2}, {-2, 0}, { 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; YopDecContext *s = avctx->priv_data;


av_frame_free(&s->frame); av_frame_free(&s->frame);

return 0;
} }


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


Loading…
Cancel
Save