Browse Source

avcodec: free extended_data instead address of it

Fixes CID732173.
tags/n1.1
Janne Grunau 13 years ago
parent
commit
3fbda309e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/utils.c

+ 1
- 1
libavcodec/utils.c View File

@@ -322,7 +322,7 @@ static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame)
if (buf->extended_data[0] && buf_size > buf->audio_data_size) {
av_free(buf->extended_data[0]);
if (buf->extended_data != buf->data)
av_free(&buf->extended_data);
av_free(buf->extended_data);
buf->extended_data = NULL;
buf->data[0] = NULL;
}


Loading…
Cancel
Save