[FFmpeg-devel] [PATCH] set "header" value correctly for all ogg streams

Reimar Döffinger Reimar.Doeffinger
Sat Feb 6 10:27:10 CET 2010


Hello,
currently the "header" value used for things like repeating the headers again
when seeking to the start of the file is only set for one stream.
Below patch fixes it, thus fixing http://roundup.ffmpeg.org/roundup/ffmpeg/issue1723
Index: libavformat/oggdec.c
===================================================================
--- libavformat/oggdec.c	(revision 21597)
+++ libavformat/oggdec.c	(working copy)
@@ -367,10 +367,10 @@
 
     ogg->curidx = idx;
 
-    if (os->header < 0){
+    if (!ogg->headers){
         int hdr = os->codec->header (s, idx);
+        os->header = os->seq;
         if (!hdr){
-            os->header = os->seq;
             os->segp = segp;
             os->psize = psize;
             ogg->headers = 1;




More information about the ffmpeg-devel mailing list