]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ac3dec.c
mpegvideo_parser: fix buffer access beyond end
[ffmpeg] / libavcodec / ac3dec.c
index 7fb380ca870540133a4c5dd46b93fc2210e7345a..66f8a4d5d94b08d65c2769cba061e06b3cadbd35 100644 (file)
@@ -1379,7 +1379,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
     /* get output buffer */
     avctx->channels = s->out_channels;
     s->frame.nb_samples = s->num_blocks * 256;
-    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;
     }