X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libavformat%2Favr.c;h=dce977b6ac16e5409ee7cf682a692b3ba9c48098;hb=2b01b7918beebe7b392ebf255f887e396a59e4c6;hp=1cc4d56bfbd5d259b53deba72b22a2911c9491bd;hpb=55e5af3c03898ffbac352fe4af83208fa4129c71;p=platform%2Fupstream%2Fffmpeg.git diff --git a/libavformat/avr.c b/libavformat/avr.c index 1cc4d56..dce977b 100644 --- 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);