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
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 }

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