Commit 8d0786ec authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos Committed by Anton Khirnov

wav: remove an invalid free().

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent a8fd2f4e
...@@ -52,7 +52,6 @@ static int wav_write_header(AVFormatContext *s) ...@@ -52,7 +52,6 @@ static int wav_write_header(AVFormatContext *s)
if (ff_put_wav_header(pb, s->streams[0]->codec) < 0) { if (ff_put_wav_header(pb, s->streams[0]->codec) < 0) {
av_log(s, AV_LOG_ERROR, "%s codec not supported in WAVE format\n", av_log(s, AV_LOG_ERROR, "%s codec not supported in WAVE format\n",
s->streams[0]->codec->codec ? s->streams[0]->codec->codec->name : "NONE"); s->streams[0]->codec->codec ? s->streams[0]->codec->codec->name : "NONE");
av_free(wav);
return -1; return -1;
} }
ff_end_tag(pb, fmt); ff_end_tag(pb, fmt);
......
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