projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeb6278
)
Avoid segfault due to not set AVCodec.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 24 Sep 2008 17:46:23 +0000
(17:46 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 24 Sep 2008 17:46:23 +0000
(17:46 +0000)
Originally committed as revision 15400 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/wav.c
patch
|
blob
|
history
diff --git
a/libavformat/wav.c
b/libavformat/wav.c
index 75e05890e61162fc49659357940f3bc0ee4e4e4b..ba7315b360678375f33d01b691874ede13f6ba8c 100644
(file)
--- a/
libavformat/wav.c
+++ b/
libavformat/wav.c
@@
-45,7
+45,7
@@
static int wav_write_header(AVFormatContext *s)
fmt = start_tag(pb, "fmt ");
if (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
->name
);
+ s->streams[0]->codec->codec
? s->streams[0]->codec->codec->name : "NONE"
);
av_free(wav);
return -1;
}