History

vocenc: fix 10l regression

Paul B Mahol committed 14 years ago

Commit 50d3a1a1 parent 1c5b56e1 file · +1 −1Browse files

Unified · Split

libavformat/vocenc.c+1−1
@@ -38,7 +38,7 @@ static int voc_write_header(AVFormatContext *s) · 37 unmodified lines
3838 || s->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO)
3939 return AVERROR_PATCHWELCOME;
4040
41− if (!enc->codec_tag || enc->codec_tag > 0xffff) {
41+ if (!enc->codec_tag && enc->codec_id != AV_CODEC_ID_PCM_U8) {
4242 av_log(s, AV_LOG_ERROR, "unsupported codec\n");
4343 return AVERROR(EINVAL);
4444 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t