Browse Source

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
tags/v0.6
Reimar Döffinger 16 years ago
parent
commit
be4a113264
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/oggdec.c

+ 2
- 2
libavformat/oggdec.c View File

@@ -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;


Loading…
Cancel
Save