Commit 8042b236 authored by michael's avatar michael

If either of num or den is 0 make both 0 in av_set_pts_info().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19326 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e320c220
......@@ -3313,4 +3313,7 @@ void av_set_pts_info(AVStream *s, int pts_wrap_bits,
av_log(NULL, AV_LOG_DEBUG, "st:%d removing common factor %d from timebase\n", s->index, pts_num/s->time_base.num);
}else
av_log(NULL, AV_LOG_WARNING, "st:%d has too large timebase, reducing\n", s->index);
if(!s->time_base.num || !s->time_base.den)
s->time_base.num= s->time_base.den= 0;
}
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