mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec: free extended_data instead address of it
Fixes CID732173.
This commit is contained in:
parent
7bc433b36d
commit
3fbda309e5
@ -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…
Reference in New Issue
Block a user