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
This commit is contained in:
Reimar Döffinger 2010-02-08 20:25:36 +00:00
parent 04a2b04b98
commit be4a113264
1 changed files with 2 additions and 2 deletions

View File

@ -370,10 +370,10 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize)
ogg->curidx = idx; ogg->curidx = idx;
os->incomplete = 0; os->incomplete = 0;
if (os->header < 0){ if (!ogg->headers){
int hdr = os->codec->header (s, idx); int hdr = os->codec->header (s, idx);
if (!hdr){
os->header = os->seq; os->header = os->seq;
if (!hdr){
os->segp = segp; os->segp = segp;
os->psize = psize; os->psize = psize;
ogg->headers = 1; ogg->headers = 1;