From: Reimar Döffinger Date: Mon, 8 Feb 2010 20:25:36 +0000 (+0000) Subject: Make sure the header value used to avoid repeating headers on seeking to the X-Git-Tag: v0.6~1406 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be4a11326407746cd0efe31523eb8fbc3a4b5928;p=platform%2Fupstream%2Flibav.git 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. Originally committed as revision 21693 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 3e1bf5d..306f462 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -370,10 +370,10 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize) 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;