aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/xbmdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-12-05 18:24:43 +0000
committerPaul B Mahol <onemda@gmail.com>2012-12-05 18:24:43 +0000
commit4012cd6c4f19f09cac86c9b8c9738f27bb691764 (patch)
tree605a9342eb74f30c32ce1a772880612e7066d930 /libavcodec/xbmdec.c
parent835fd779a46d14d6999618546a9833b3f2af2326 (diff)
downloadffmpeg-4012cd6c4f19f09cac86c9b8c9738f27bb691764.tar.gz
lavc: fix decode_frame() third parameter semantics for rest of video decoders
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/xbmdec.c')
-rw-r--r--libavcodec/xbmdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/xbmdec.c b/libavcodec/xbmdec.c
index 39ed50392f..2a41836492 100644
--- a/libavcodec/xbmdec.c
+++ b/libavcodec/xbmdec.c
@@ -45,7 +45,7 @@ static int convert(uint8_t x)
}
static int xbm_decode_frame(AVCodecContext *avctx, void *data,
- int *data_size, AVPacket *avpkt)
+ int *got_frame, AVPacket *avpkt)
{
AVFrame *p = avctx->coded_frame;
const uint8_t *end, *ptr = avpkt->data;
@@ -110,7 +110,7 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
p->key_frame = 1;
p->pict_type = AV_PICTURE_TYPE_I;
- *data_size = sizeof(AVFrame);
+ *got_frame = 1;
*(AVFrame *)data = *p;
return avpkt->size;