OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e56d1a1
)
lavf/wavenc: check for a single stream.
author
Nicolas George
<george@nsup.org>
Sat, 2 Nov 2013 15:23:26 +0000
(16:23 +0100)
committer
Nicolas George
<george@nsup.org>
Sun, 3 Nov 2013 09:29:27 +0000
(10:29 +0100)
Fix trac ticket #3110.
libavformat/wavenc.c
patch
|
blob
|
history
diff --git
a/libavformat/wavenc.c
b/libavformat/wavenc.c
index
fea38cf
..
0067dfe
100644
(file)
--- a/
libavformat/wavenc.c
+++ b/
libavformat/wavenc.c
@@
-116,6
+116,11
@@
static int wav_write_header(AVFormatContext *s)
AVIOContext *pb = s->pb;
int64_t fmt;
+ if (s->nb_streams != 1) {
+ av_log(s, AV_LOG_ERROR, "WAVE files have exactly one stream\n");
+ return AVERROR(EINVAL);
+ }
+
if (wav->rf64 == RF64_ALWAYS) {
ffio_wfourcc(pb, "RF64");
avio_wl32(pb, -1); /* RF64 chunk size: use size in ds64 */