Browse Source

oggdec: Safety check against stream counts being inconsistent in seek()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
c7c976c6d7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/oggdec.c

+ 2
- 0
libavformat/oggdec.c View File

@@ -29,6 +29,7 @@
*/

#include <stdio.h>
#include "libavutil/avassert.h"
#include "oggdec.h"
#include "avformat.h"
#include "internal.h"
@@ -690,6 +691,7 @@ static int ogg_read_seek(AVFormatContext *s, int stream_index,
struct ogg_stream *os = ogg->streams + stream_index;
int ret;

av_assert0(stream_index < ogg->nstreams);
// Ensure everything is reset even when seeking via
// the generated index.
ogg_reset(ogg);


Loading…
Cancel
Save