OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35477a
)
Explicitely fail for unsupported codecs when muxing caf.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Sun, 31 Jul 2011 22:28:04 +0000
(
00:28
+0200)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Sun, 31 Jul 2011 22:58:49 +0000
(
00:58
+0200)
libavformat/cafenc.c
patch
|
blob
|
history
diff --git
a/libavformat/cafenc.c
b/libavformat/cafenc.c
index
2d64bec
..
29b1d56
100644
(file)
--- a/
libavformat/cafenc.c
+++ b/
libavformat/cafenc.c
@@
-101,6
+101,17
@@
static int caf_write_header(AVFormatContext *s)
unsigned int codec_tag = ff_codec_get_tag(ff_codec_caf_tags, enc->codec_id);
switch (enc->codec_id) {
+ case CODEC_ID_AAC:
+ case CODEC_ID_AC3:
+ case CODEC_ID_ALAC:
+ case CODEC_ID_AMR_NB:
+ case CODEC_ID_QCELP:
+ case CODEC_ID_QDM2:
+ av_log(s, AV_LOG_ERROR, "muxing codec currently unsupported\n");
+ return AVERROR_PATCHWELCOME;
+ }
+
+ switch (enc->codec_id) {
case CODEC_ID_PCM_S8:
case CODEC_ID_PCM_S16LE:
case CODEC_ID_PCM_S16BE: