1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
Originally committed as revision 3856 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2005-01-21 23:38:09 +00:00
parent 8b8e1c5580
commit 0fbc6961eb

View File

@ -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 */