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;