projects
/
platform
/
upstream
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 6.1
[platform/upstream/ffmpeg.git]
/
libavformat
/
avr.c
diff --git
a/libavformat/avr.c
b/libavformat/avr.c
index
1cc4d56
..
dce977b
100644
(file)
--- a/
libavformat/avr.c
+++ b/
libavformat/avr.c
@@
-70,6
+70,9
@@
static int avr_read_header(AVFormatContext *s)
avio_skip(s->pb, 1); // replay speed
st->codecpar->sample_rate = avio_rb24(s->pb);
+ if (st->codecpar->sample_rate == 0)
+ return AVERROR_INVALIDDATA;
+
avio_skip(s->pb, 4 * 3);
avio_skip(s->pb, 2 * 3);
avio_skip(s->pb, 20);