diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-11-13 19:35:22 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-12-04 21:45:36 +0100 |
commit | df9b9567518f2840d79a4a96b447ebe1aa326408 (patch) | |
tree | 7f247e6d290e56536306d6ce157e76f6025fee66 /libavcodec/libopenjpegdec.c | |
parent | 387bef95d28019c13c6805cfa4079e59948284e5 (diff) | |
download | ffmpeg-df9b9567518f2840d79a4a96b447ebe1aa326408.tar.gz |
lavc: fix decode_frame() third parameter semantics for video decoders
It's got_frame, not data size
Diffstat (limited to 'libavcodec/libopenjpegdec.c')
-rw-r--r-- | libavcodec/libopenjpegdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c index f9cf7e724a..8f956f473f 100644 --- a/libavcodec/libopenjpegdec.c +++ b/libavcodec/libopenjpegdec.c @@ -253,7 +253,7 @@ static av_cold int libopenjpeg_decode_init_thread_copy(AVCodecContext *avctx) } static int libopenjpeg_decode_frame(AVCodecContext *avctx, - void *data, int *data_size, + void *data, int *got_frame, AVPacket *avpkt) { uint8_t *buf = avpkt->data; @@ -269,7 +269,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx, int ispacked = 0; int i; - *data_size = 0; + *got_frame = 0; // Check if input is a raw jpeg2k codestream or in jp2 wrapping if ((AV_RB32(buf) == 12) && @@ -412,7 +412,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx, } *output = ctx->image; - *data_size = sizeof(AVPicture); + *got_frame = 1; ret = buf_size; done: |