Commit 266b3d4f authored by Michael Niedermayer's avatar Michael Niedermayer

ffplay: use av_codec_get_pkt_timebase()

Reviewed-by: 's avatarBenoit Fouet <benoit.fouet@free.fr>
Reviewed-by: 's avatarMarton Balint <cus@passwd.hu>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 170e2fd7
......@@ -598,7 +598,7 @@ static int decoder_decode_frame(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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment