[FFmpeg-devel] [PATCH] avienc : Don't write invalid stream headers.

Jai Menon jmenon86
Wed Jun 16 10:11:15 CEST 2010


---
 libavformat/avienc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index b4a31ec..6c6291f 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -235,7 +235,7 @@ static int avi_write_header(AVFormatContext *s)
            stream->codec_id == CODEC_ID_XSUB)
             put_le32(pb, stream->codec_tag);
         else
-            put_le32(pb, 1);
+            return -1;
         put_le32(pb, 0); /* flags */
         put_le16(pb, 0); /* priority */
         put_le16(pb, 0); /* language */
-- 
1.7.1




More information about the ffmpeg-devel mailing list