[FFmpeg-devel] [PATCH 4/4] oggdec: Leave treatment of serial changes to the decoder.
Michael Niedermayer
michaelni at gmx.at
Sun Jan 13 22:24:35 CET 2013
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 at gmx.at>
---
libavformat/oggdec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index eec4538..3e3be2f 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;
--
1.7.9.5
More information about the ffmpeg-devel
mailing list