Mercurial > libavformat.hg
changeset 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 | a3e321e7ca38 |
children | 60f12d6e951c |
files | oggdec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;