diff oggdec.c @ 5639:829780403fc6 libavformat

Make sure the header value used to avoid repeating headers on seeking to the start and to avoid initializing codecs with missing headers is set for all streams. Fixes issue 1723.
author reimar
date Mon, 08 Feb 2010 20:25:36 +0000
parents 37e2c3e635b3
children 9145ca829bce
line wrap: on
line diff
--- a/oggdec.c	Mon Feb 08 18:48:12 2010 +0000
+++ b/oggdec.c	Mon Feb 08 20:25:36 2010 +0000
@@ -370,10 +370,10 @@
     ogg->curidx = idx;
     os->incomplete = 0;
 
-    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;