diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-12 19:23:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-12 19:53:37 +0200 |
commit | bb015b519e29a125b794bf1a5e18c422bcb4090c (patch) | |
tree | 26195c9564b7b46800b2606e659b70e54fd11a92 /libavcodec/vmdav.c | |
parent | acf7c5b8ee63d4a3614dd93aa7bcc23d582c3ccd (diff) | |
parent | 0ab76ddf313eeab70d06619ae0376fd7dd40761b (diff) | |
download | ffmpeg-bb015b519e29a125b794bf1a5e18c422bcb4090c.tar.gz |
Merge commit '0ab76ddf313eeab70d06619ae0376fd7dd40761b' into release/0.10
* commit '0ab76ddf313eeab70d06619ae0376fd7dd40761b':
avcodec: Introduce ff_get_buffer
Conflicts:
libavcodec/8svx.c
libavcodec/dpcm.c
libavcodec/utils.c
libavcodec/vmdav.c
libavcodec/yop.c
See: 668494acd8b20f974c7722895d4a6a14c1005f1e
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vmdav.c')
-rw-r--r-- | libavcodec/vmdav.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c index ad46b5c1f1..1e5f2caab8 100644 --- a/libavcodec/vmdav.c +++ b/libavcodec/vmdav.c @@ -45,10 +45,11 @@ #include "libavutil/intreadwrite.h" #include "avcodec.h" +#include "internal.h" +#include "bytestream.h" #define VMD_HEADER_SIZE 0x330 #define PALETTE_COUNT 256 -#include "bytestream.h" /* * Video Decoder @@ -398,7 +399,7 @@ static int vmdvideo_decode_frame(AVCodecContext *avctx, return buf_size; s->frame.reference = 3; - if (avctx->get_buffer(avctx, &s->frame)) { + if (ff_get_buffer(avctx, &s->frame)) { av_log(s->avctx, AV_LOG_ERROR, "VMD Video: get_buffer() failed\n"); return -1; } @@ -571,7 +572,7 @@ static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data, /* get output buffer */ s->frame.nb_samples = ((silent_chunks + audio_chunks) * avctx->block_align) / avctx->channels; - if ((ret = avctx->get_buffer(avctx, &s->frame)) < 0) { + if ((ret = ff_get_buffer(avctx, &s->frame)) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return ret; } |