Unified · Split
| @@ -1801,7 +1801,7 @@ static int mov_write_tmcd_tag(AVIOContext *pb, MOVTrack *track) · 1800 unmodified lines | ||
| 1801 | 1801 | int64_t pos = avio_tell(pb); |
| 1802 | 1802 | #if 1 |
| 1803 | 1803 | int frame_duration = av_rescale(track->timescale, track->enc->time_base.num, track->enc->time_base.den); |
| 1804 | − int nb_frames = 1.0/av_q2d(track->enc->time_base) + 0.5; | |
| 1804 | + int nb_frames = ROUNDED_DIV(track->enc->time_base.den, track->enc->time_base.num); | |
| 1805 | 1805 | AVDictionaryEntry *t = NULL; |
| 1806 | 1806 | |
| 1807 | 1807 | if (nb_frames > 255) { |