Mercurial > libavformat.hg
diff utils.c @ 626:4a35651e6cc8 libavformat
1/0l fix
| author | michael |
|---|---|
| date | Wed, 22 Dec 2004 01:33:04 +0000 |
| parents | 4add6a5abe3e |
| children | aff6e233426a |
line wrap: on
line diff
--- a/utils.c Tue Dec 21 02:27:40 2004 +0000 +++ b/utils.c Wed Dec 22 01:33:04 2004 +0000 @@ -1854,7 +1854,7 @@ int_fps= av_rescale(st->r_frame_rate, 1, st->r_frame_rate_base); - if(av_rescale(st->r_frame_rate, 1, int_fps) == st->r_frame_rate_base){ + if(int_fps>0 && av_rescale(st->r_frame_rate, 1, int_fps) == st->r_frame_rate_base){ st->r_frame_rate= int_fps; st->r_frame_rate_base= 1; }
