summaryrefslogtreecommitdiff
path: root/libavformat/qcp.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-12-10 17:48:16 +0000
committerPaul B Mahol <onemda@gmail.com>2013-01-07 11:43:20 +0000
commit2a89081cadff62b8a62a54a49c375a633115d1a1 (patch)
tree3477e84d1ddc65e2af8c1cc3d0d7338c96c8f6b5 /libavformat/qcp.c
parent6cff56f0baba2f2afce5169208505349a788337e (diff)
Add EVRCA and SMV codec id
Demuxing files should be possible even if there are no decoding support in lavc (yet). Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/qcp.c')
-rw-r--r--libavformat/qcp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/qcp.c b/libavformat/qcp.c
index 3cb85fb00a..1ef86fe34d 100644
--- a/libavformat/qcp.c
+++ b/libavformat/qcp.c
@@ -102,11 +102,9 @@ static int qcp_read_header(AVFormatContext *s)
if (is_qcelp_13k_guid(buf)) {
st->codec->codec_id = AV_CODEC_ID_QCELP;
} else if (!memcmp(buf, guid_evrc, 16)) {
- av_log(s, AV_LOG_ERROR, "EVRC codec is not supported.\n");
- return AVERROR_PATCHWELCOME;
+ st->codec->codec_id = AV_CODEC_ID_EVRC;
} else if (!memcmp(buf, guid_smv, 16)) {
- av_log(s, AV_LOG_ERROR, "SMV codec is not supported.\n");
- return AVERROR_PATCHWELCOME;
+ st->codec->codec_id = AV_CODEC_ID_SMV;
} else {
av_log(s, AV_LOG_ERROR, "Unknown codec GUID.\n");
return AVERROR_INVALIDDATA;