[FFmpeg-cvslog] Force one stream in caf muxer.
Carl Eugen Hoyos
git at videolan.org
Fri Dec 13 15:59:37 CET 2013
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Dec 13 11:57:39 2013 +0100| [fb5518cfb76af414a46366f74bffb5874bf3bfc4] | committer: Carl Eugen Hoyos
Force one stream in caf muxer.
Based on eeb975f5
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb5518cfb76af414a46366f74bffb5874bf3bfc4
---
libavformat/cafenc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c
index cd3a0be..ae36b85 100644
--- a/libavformat/cafenc.c
+++ b/libavformat/cafenc.c
@@ -108,6 +108,11 @@ static int caf_write_header(AVFormatContext *s)
unsigned int codec_tag = ff_codec_get_tag(ff_codec_caf_tags, enc->codec_id);
int64_t chunk_size = 0;
+ if (s->nb_streams != 1) {
+ av_log(s, AV_LOG_ERROR, "CAF files have exactly one stream\n");
+ return AVERROR(EINVAL);
+ }
+
switch (enc->codec_id) {
case AV_CODEC_ID_AAC:
case AV_CODEC_ID_AC3:
More information about the ffmpeg-cvslog
mailing list