[FFmpeg-devel] [PATCH] ffplay: use av_codec_get_pkt_timebase()
Michael Niedermayer
michaelni at gmx.at
Wed Sep 24 13:51:29 CEST 2014
On Wed, Sep 24, 2014 at 05:56:00AM +0200, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> 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) {
applied
thanks to all
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140924/2dc5d84b/attachment.asc>
More information about the ffmpeg-devel
mailing list