Originally committed as revision 17622 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -3768,6 +3768,9 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ · 3767 unmodified lines | |||
| 3768 | s->avctx->time_base.den *= 2; | 3768 | s->avctx->time_base.den *= 2; |
| 3769 | av_reduce(&s->avctx->time_base.num, &s->avctx->time_base.den, | 3769 | av_reduce(&s->avctx->time_base.num, &s->avctx->time_base.den, |
| 3770 | s->avctx->time_base.num, s->avctx->time_base.den, 1<<30); | 3770 | s->avctx->time_base.num, s->avctx->time_base.den, 1<<30); |
| 3771 | }else if(!h->sps.time_scale && !s->avctx->frame_number){ | ||
| 3772 | s->avctx->time_base.den *=2; | ||
| 3773 | h->sps.time_scale= s->avctx->time_base.den; | ||
| 3771 | } | 3774 | } |
| 3772 | } | 3775 | } |
| 3773 | 3776 | ||