diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-11-13 22:35:22 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-12-05 00:45:36 +0400 |
commit | df9b9567518f2840d79a4a96b447ebe1aa326408 (patch) | |
tree | 7f247e6d290e56536306d6ce157e76f6025fee66 /libavcodec/bink.c | |
parent | 387bef95d28019c13c6805cfa4079e59948284e5 (diff) |
lavc: fix decode_frame() third parameter semantics for video decoders
It's got_frame, not data size
Diffstat (limited to 'libavcodec/bink.c')
-rw-r--r-- | libavcodec/bink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/bink.c b/libavcodec/bink.c index 733b5bdbd7..059601debf 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -1161,7 +1161,7 @@ static int bink_decode_plane(BinkContext *c, GetBitContext *gb, int plane_idx, return 0; } -static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *pkt) +static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { BinkContext * const c = avctx->priv_data; GetBitContext gb; @@ -1208,7 +1208,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac } emms_c(); - *data_size = sizeof(AVFrame); + *got_frame = 1; *(AVFrame*)data = c->pic; if (c->version > 'b') |