OSDN Git Service

Vorbis-in-Ogg: Do not set timebase to invalid values
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 28 Jan 2011 23:52:50 +0000 (23:52 +0000)
committerMans Rullgard <mans@mansr.com>
Sat, 29 Jan 2011 13:48:13 +0000 (13:48 +0000)
commitce20edb7bd6c1768ef5f4d181d7ba27a0e7945bd
tree88e9b5b2245fa9fbbc6d360d62f4b00b9bfc17b2
parent0745116c10e5650952c39ea543c66b12fba854e6
Vorbis-in-Ogg: Do not set timebase to invalid values

Avoids an assert when the sample rate is invalid and the timebase
is thus set to e.g. 1/0.
Sample file is http://samples.mplayerhq.hu/ogg/fuzzed-srate-crash.ogg

This is a quick fix for a crash, not a final solution.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/oggparsevorbis.c