You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffplay: use av_codec_get_pkt_timebase()
Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
2
ffplay.c
2
ffplay.c
@@ -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) {
|
||||
|
Reference in New Issue
Block a user