ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Wed Sep 24 05:47:36 2014 +0200| [266b3d4fe48af53acff454ca59c507bc7d05885f] | committer: Michael Niedermayer
ffplay: use av_codec_get_pkt_timebase() Reviewed-by: Benoit Fouet <[email protected]> Reviewed-by: Marton Balint <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=266b3d4fe48af53acff454ca59c507bc7d05885f --- ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplay.c b/ffplay.c index 6eb5aef..7728452 100644 --- a/ffplay.c +++ b/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) { _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
