Commit b3f0f1db authored by michael's avatar michael

1/0 fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3856 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 15791086
...@@ -254,6 +254,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -254,6 +254,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
ast->rate = get_le32(pb); ast->rate = get_le32(pb);
if(!ast->rate) if(!ast->rate)
ast->rate= 1; //wrong but better then 1/0 ast->rate= 1; //wrong but better then 1/0
if(!ast->scale)
ast->scale= 1; //wrong but better then 1/0
av_set_pts_info(st, 64, ast->scale, ast->rate); av_set_pts_info(st, 64, ast->scale, ast->rate);
ast->start= get_le32(pb); /* start */ ast->start= get_le32(pb); /* start */
length = get_le32(pb); /* length, in samples or bytes */ 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