[FFmpeg-cvslog] vocenc: fix 10l regression

Paul B Mahol git at videolan.org
Sun Nov 4 05:47:53 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Nov  4 04:46:10 2012 +0000| [50d3a1a962d5ea6a2d4cb7a82bb13cf0e00c649e] | committer: Paul B Mahol

vocenc: fix 10l regression

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50d3a1a962d5ea6a2d4cb7a82bb13cf0e00c649e
---

 libavformat/vocenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/vocenc.c b/libavformat/vocenc.c
index 27ed16f..29e9363 100644
--- a/libavformat/vocenc.c
+++ b/libavformat/vocenc.c
@@ -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);
     }



More information about the ffmpeg-cvslog mailing list