aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-02-08 20:25:36 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-02-08 20:25:36 +0000
commitbe4a11326407746cd0efe31523eb8fbc3a4b5928 (patch)
tree17c8e9a4e6b25acfae2d3e5d30bb17d32b0b34d7
parent04a2b04b9841b8b9e3726c522829a8da38f4ad8d (diff)
downloadffmpeg-be4a11326407746cd0efe31523eb8fbc3a4b5928.tar.gz
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
-rw-r--r--libavformat/oggdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 3e1bf5d4de..306f46211a 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;