aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp56.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-04-07 18:24:47 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-04-07 18:24:47 +0000
commit012f930855ec647b1723cd845c6e5fa80936a0fb (patch)
treef714e7caa37146107a12e5d1ae6d9232a5ad683e /libavcodec/vp56.c
parent7a00bbad2100367481240e62876b941b5c4befdc (diff)
downloadffmpeg-012f930855ec647b1723cd845c6e5fa80936a0fb.tar.gz
fix vp5/vp6 decoding by using new prototype for decode function
Originally committed as revision 18352 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp56.c')
-rw-r--r--libavcodec/vp56.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c
index ad11b5289a..a5d6308813 100644
--- a/libavcodec/vp56.c
+++ b/libavcodec/vp56.c
@@ -495,11 +495,12 @@ static int vp56_size_changed(AVCodecContext *avctx)
}
int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
- const uint8_t *buf, int buf_size)
+ AVPacket *avpkt)
{
+ const uint8_t *buf = avpkt->data;
VP56Context *s = avctx->priv_data;
AVFrame *const p = s->framep[VP56_FRAME_CURRENT];
- int remaining_buf_size = buf_size;
+ int remaining_buf_size = avpkt->size;
int is_alpha, av_uninit(alpha_offset);
if (s->has_alpha) {
@@ -641,7 +642,7 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
*(AVFrame*)data = *p;
*data_size = sizeof(AVFrame);
- return buf_size;
+ return avpkt->size;
}
av_cold void vp56_init(AVCodecContext *avctx, int flip, int has_alpha)