Commit 50d3a1a9 authored by Paul B Mahol's avatar Paul B Mahol

vocenc: fix 10l regression

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1c5b56ee
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment