summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-13 21:32:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-15 20:19:30 +0100
commitc994bb2fb7727f5c20ef71cc6727fb219fd49d60 (patch)
tree801f518c273b33ca561d976c2fe7c5a209df8784 /libavformat/oggdec.c
parente9ffee23f372390684d6d94bf8abf51350fc66a3 (diff)
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>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r--libavformat/oggdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index eec45380bb..3e3be2fb38 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -184,6 +184,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;