aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/wav.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-04-03 22:45:16 +0200
committerAnton Khirnov <anton@khirnov.net>2011-06-13 20:47:06 +0200
commit8d0786ec6d066f892f29da6593e99e73a7dfd014 (patch)
tree5888d358192a1d39fcd27118763a70d08797e0ba /libavformat/wav.c
parenta8fd2f4e0238d6ddde0db28c5bb4b39d2f98d4ed (diff)
downloadffmpeg-8d0786ec6d066f892f29da6593e99e73a7dfd014.tar.gz
wav: remove an invalid free().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r--libavformat/wav.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 21374e8b93..92c9bfcbc4 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -52,7 +52,6 @@ static int wav_write_header(AVFormatContext *s)
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",
s->streams[0]->codec->codec ? s->streams[0]->codec->codec->name : "NONE");
- av_free(wav);
return -1;
}
ff_end_tag(pb, fmt);