aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-04 04:46:10 +0000
committerPaul B Mahol <onemda@gmail.com>2012-11-04 04:46:10 +0000
commit50d3a1a962d5ea6a2d4cb7a82bb13cf0e00c649e (patch)
tree125233c00796137fa7934bd77e598e0d54204e6a
parent1c5b56eec7bb6c8554d33f50adae4359d243e390 (diff)
downloadffmpeg-50d3a1a962d5ea6a2d4cb7a82bb13cf0e00c649e.tar.gz
vocenc: fix 10l regression
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavformat/vocenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/vocenc.c b/libavformat/vocenc.c
index 27ed16f7fa..29e9363492 100644
--- a/libavformat/vocenc.c
+++ b/libavformat/vocenc.c
@@ -38,7 +38,7 @@ static int voc_write_header(AVFormatContext *s)
|| s->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO)
return AVERROR_PATCHWELCOME;
- if (!enc->codec_tag || enc->codec_tag > 0xffff) {
+ if (!enc->codec_tag && enc->codec_id != AV_CODEC_ID_PCM_U8) {
av_log(s, AV_LOG_ERROR, "unsupported codec\n");
return AVERROR(EINVAL);
}