# HG changeset patch # User aurel # Date 1239128687 0 # Node ID 2983bd7deaf5fe34e0c54504293d7ee8b4247662 # Parent 54bc8a2727b0aec4ae1736961710745e7c0f149e fix vp5/vp6 decoding by using new prototype for decode function diff -r 54bc8a2727b0 -r 2983bd7deaf5 vp56.c --- a/vp56.c Tue Apr 07 15:59:50 2009 +0000 +++ b/vp56.c Tue Apr 07 18:24:47 2009 +0000 @@ -495,11 +495,12 @@ } 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 @@ *(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) diff -r 54bc8a2727b0 -r 2983bd7deaf5 vp56.h --- a/vp56.h Tue Apr 07 15:59:50 2009 +0000 +++ b/vp56.h Tue Apr 07 18:24:47 2009 +0000 @@ -172,7 +172,7 @@ int vp56_free(AVCodecContext *avctx); void vp56_init_dequant(VP56Context *s, int quantizer); int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - const uint8_t *buf, int buf_size); + AVPacket *avpkt); /**