Commit 3fbda309 authored by Janne Grunau's avatar Janne Grunau

avcodec: free extended_data instead address of it

Fixes CID732173.
parent 7bc433b3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment