Commit 0b1be1f3 authored by michael's avatar michael

broken avi / div by zero fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3761 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8120cf05
......@@ -252,6 +252,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_le32(pb); /* initial frame */
ast->scale = get_le32(pb); /* scale */
ast->rate = get_le32(pb);
if(!ast->rate)
ast->rate= 1; //wrong but better then 1/0
av_set_pts_info(st, 64, ast->scale, ast->rate);
ast->start= get_le32(pb); /* start */
length = get_le32(pb); /* length, in samples or bytes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment