[FFmpeg-cvslog] hls: check that the streams have been initialized before checking their discard flags .
Michael Niedermayer
git at videolan.org
Mon Aug 13 22:54:35 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Aug 13 20:37:04 2012 +0200| [cc913f749088db3a5a15ae0d0d18df3a413fe3ba] | committer: Michael Niedermayer
hls: check that the streams have been initialized before checking their discard flags.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc913f749088db3a5a15ae0d0d18df3a413fe3ba
---
libavformat/hls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hls.c b/libavformat/hls.c
index b56b691..98d4151 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -427,7 +427,7 @@ reload:
c->end_of_segment = 1;
c->cur_seq_no = v->cur_seq_no;
- if (v->ctx && v->ctx->nb_streams) {
+ if (v->ctx && v->ctx->nb_streams && v->parent->nb_streams >= v->stream_offset + v->ctx->nb_streams) {
v->needed = 0;
for (i = v->stream_offset; i < v->stream_offset + v->ctx->nb_streams;
i++) {
More information about the ffmpeg-cvslog
mailing list