1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avcodec: free extended_data instead address of it

Fixes CID732173.
This commit is contained in:
Janne Grunau
2012-10-09 14:04:46 +02:00
parent 7bc433b36d
commit 3fbda309e5

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) { if (buf->extended_data[0] && buf_size > buf->audio_data_size) {
av_free(buf->extended_data[0]); av_free(buf->extended_data[0]);
if (buf->extended_data != buf->data) if (buf->extended_data != buf->data)
av_free(&buf->extended_data); av_free(buf->extended_data);
buf->extended_data = NULL; buf->extended_data = NULL;
buf->data[0] = NULL; buf->data[0] = NULL;
} }