diff options
-rw-r--r-- | libavformat/rpl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rpl.c b/libavformat/rpl.c index c79419d558..b98488c7b1 100644 --- a/libavformat/rpl.c +++ b/libavformat/rpl.c @@ -253,6 +253,9 @@ static int rpl_read_header(AVFormatContext *s) error |= read_line(pb, line, sizeof(line)); } + if (s->nb_streams == 0) + return AVERROR_INVALIDDATA; + rpl->frames_per_chunk = read_line_and_int(pb, &error); // video frames per chunk if (vst && rpl->frames_per_chunk > 1 && vst->codecpar->codec_tag != 124) av_log(s, AV_LOG_WARNING, |