Unified · Split
| @@ -38,7 +38,7 @@ static int voc_write_header(AVFormatContext *s) · 37 unmodified lines | |||
| 38 | || s->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO) | 38 | || s->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO) |
| 39 | return AVERROR_PATCHWELCOME; | 39 | return AVERROR_PATCHWELCOME; |
| 40 | 40 | ||
| 41 | if (!enc->codec_tag || enc->codec_tag > 0xffff) { | 41 | if (!enc->codec_tag && enc->codec_id != AV_CODEC_ID_PCM_U8) { |
| 42 | av_log(s, AV_LOG_ERROR, "unsupported codec\n"); | 42 | av_log(s, AV_LOG_ERROR, "unsupported codec\n"); |
| 43 | return AVERROR(EINVAL); | 43 | return AVERROR(EINVAL); |
| 44 | } | 44 | } |