aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-13 21:32:34 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-01-15 21:12:03 +0100
commit1c373456f6388f8817d20c49471d00dc9e7e755d (patch)
treefa6a144475c1f31f37c2094497973ddee8b9682d
parent9636266cbdab29ef41c38d3368e014752ca49fd9 (diff)
downloadffmpeg-1c373456f6388f8817d20c49471d00dc9e7e755d.tar.gz
oggdec: Leave treatment of serial changes to the decoder.
Attempting to re-parse the headers at demuxer level is a pandora box the way its done currently. This allows full reconfiguration of vorbis streams Fixes Ticket2117 Fixes Ticket2121 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit c994bb2fb7727f5c20ef71cc6727fb219fd49d60)
-rw-r--r--libavformat/oggdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 6195747358..c0a9508af3 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -185,6 +185,9 @@ static int ogg_replace_stream(AVFormatContext *s, uint32_t serial)
os = &ogg->streams[0];
+ os->serial = serial;
+ return 0;
+
buf = os->buf;
bufsize = os->bufsize;
codec = os->codec;