diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-24 05:47:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-24 13:44:56 +0200 |
commit | 266b3d4fe48af53acff454ca59c507bc7d05885f (patch) | |
tree | 9db147a9e360b097137825ef1db1eafb87500b8a | |
parent | 170e2fd7c39c430b334ea80a1e4dfb10c6fd1e95 (diff) | |
download | ffmpeg-266b3d4fe48af53acff454ca59c507bc7d05885f.tar.gz |
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>
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |