diff options
-rw-r--r-- | libavformat/rsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rsd.c b/libavformat/rsd.c index ee0b9557de..9785a55726 100644 --- a/libavformat/rsd.c +++ b/libavformat/rsd.c @@ -131,6 +131,8 @@ static int rsd_read_header(AVFormatContext *s) return ret; for (i = 0; i < par->channels; i++) { + if (avio_feof(pb)) + return AVERROR_EOF; avio_read(s->pb, st->codecpar->extradata + 32 * i, 32); avio_skip(s->pb, 8); } |