# HG changeset patch # User michael # Date 1103424940 0 # Node ID d3baee10d526d7692031354b35f934ea973f93fa # Parent 7dbdbe073bcd0fcf1c6598e5682b9d89f1a9f10a broken avi / div by zero fix diff -r 7dbdbe073bcd -r d3baee10d526 avidec.c --- a/avidec.c Sun Dec 19 01:23:22 2004 +0000 +++ b/avidec.c Sun Dec 19 02:55:40 2004 +0000 @@ -252,6 +252,8 @@ 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 */