Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-09-07 02:20:01 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-07 02:21:12 +0300
commitb480f0e37a4297f19ab9e2244a232ba9d5baf499 (patch)
tree2eb31cb8cebd2e5cc83eec895264dac35a7a3a1f /libavformat/cafenc.c
parente855ed17a722ef9787c1ea5761a6a86215519ebc (diff)
avformat/cafenc: Move special casing of PCM codecs into ff_codec_caf_tags
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/cafenc.c')
-rw-r--r--libavformat/cafenc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c
index 1708275e11..544bc4a114 100644
--- a/libavformat/cafenc.c
+++ b/libavformat/cafenc.c
@@ -120,21 +120,6 @@ static int caf_write_header(AVFormatContext *s)
return AVERROR_PATCHWELCOME;
}
- switch (enc->codec_id) {
- case AV_CODEC_ID_PCM_S8:
- case AV_CODEC_ID_PCM_S16LE:
- case AV_CODEC_ID_PCM_S16BE:
- case AV_CODEC_ID_PCM_S24LE:
- case AV_CODEC_ID_PCM_S24BE:
- case AV_CODEC_ID_PCM_S32LE:
- case AV_CODEC_ID_PCM_S32BE:
- case AV_CODEC_ID_PCM_F32LE:
- case AV_CODEC_ID_PCM_F32BE:
- case AV_CODEC_ID_PCM_F64LE:
- case AV_CODEC_ID_PCM_F64BE:
- codec_tag = MKTAG('l','p','c','m');
- }
-
if (!codec_tag) {
av_log(s, AV_LOG_ERROR, "unsupported codec\n");
return AVERROR_INVALIDDATA;