You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vocenc: fix 10l regression
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ static int voc_write_header(AVFormatContext *s)
|
|||||||
|| s->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO)
|
|| s->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO)
|
||||||
return AVERROR_PATCHWELCOME;
|
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");
|
av_log(s, AV_LOG_ERROR, "unsupported codec\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user