aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vda_h264_dec.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/vda_h264_dec.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/vda_h264_dec.c')
-rw-r--r--libavcodec/vda_h264_dec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/vda_h264_dec.c b/libavcodec/vda_h264_dec.c
index 3cb13e38fb..d6c8f379bd 100644
--- a/libavcodec/vda_h264_dec.c
+++ b/libavcodec/vda_h264_dec.c
@@ -84,14 +84,14 @@ static void release_buffer(AVCodecContext *avctx, AVFrame *pic)
}
static int vdadec_decode(AVCodecContext *avctx,
- void *data, int *data_size, AVPacket *avpkt)
+ void *data, int *got_frame, AVPacket *avpkt)
{
VDADecoderContext *ctx = avctx->priv_data;
AVFrame *pic = data;
int ret;
- ret = ff_h264_decoder.decode(avctx, data, data_size, avpkt);
- if (*data_size) {
+ ret = ff_h264_decoder.decode(avctx, data, got_frame, avpkt);
+ if (*got_frame) {
CVPixelBufferRef cv_buffer = (CVPixelBufferRef)pic->data[3];
CVPixelBufferLockBaseAddress(cv_buffer, 0);
pic->format = ctx->pix_fmt;