提交 1279792c 编写于 作者: Z Zhang Rui

ff_ffplay: merge 266b3d4fe48af53acff454ca59c507bc7d05885f

ffplay: use av_codec_get_pkt_timebase()
上级 f638c4a2
......@@ -364,7 +364,7 @@ static int decoder_decode_frame(FFPlayer *ffp, Decoder *d, void *fframe) {
if (frame->pts != AV_NOPTS_VALUE)
frame->pts = av_rescale_q(frame->pts, d->avctx->time_base, tb);
else if (frame->pkt_pts != AV_NOPTS_VALUE)
frame->pts = av_rescale_q(frame->pkt_pts, d->avctx->pkt_timebase, tb);
frame->pts = av_rescale_q(frame->pkt_pts, av_codec_get_pkt_timebase(d->avctx), tb);
else if (d->next_pts != AV_NOPTS_VALUE)
frame->pts = av_rescale_q(d->next_pts, d->next_pts_tb, tb);
if (frame->pts != AV_NOPTS_VALUE) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册