]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vima.c
mpegvideo_parser: fix buffer access beyond end
[ffmpeg] / libavcodec / vima.c
index 648ae5501652953de43d691310dd3146b0842ec7..f823cb37e7abe4cf823982b7002c8abb4218fc84 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "libavutil/audioconvert.h"
+#include "libavutil/channel_layout.h"
 #include "avcodec.h"
 #include "get_bits.h"
+#include "internal.h"
 #include "adpcm_data.h"
 
 typedef struct {
@@ -170,7 +171,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
     }
 
     vima->frame.nb_samples = samples;
-    if ((ret = avctx->get_buffer(avctx, &vima->frame)) < 0) {
+    if ((ret = ff_get_buffer(avctx, &vima->frame)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return ret;
     }