diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-09 16:15:45 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-09 17:56:07 +0200 |
commit | 132adf73af31a1a5a8c7c0798b09f7012d73bd4c (patch) | |
tree | 2e56398d0e0b9a0d835308ef22d1b65cee0a6b73 | |
parent | 4d48add89b2c5124d660b5672f5d2c549cd65bc6 (diff) | |
download | ffmpeg-132adf73af31a1a5a8c7c0798b09f7012d73bd4c.tar.gz |
avcodec/cuvid: use pkt_timebase instead of time_base
-rw-r--r-- | libavcodec/cuvid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cuvid.c b/libavcodec/cuvid.c index 7cc133107f..120b045945 100644 --- a/libavcodec/cuvid.c +++ b/libavcodec/cuvid.c @@ -258,7 +258,7 @@ static int cuvid_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, if (avpkt->pts != AV_NOPTS_VALUE) { cupkt.flags = CUVID_PKT_TIMESTAMP; - cupkt.timestamp = av_rescale_q(avpkt->pts, avctx->time_base, (AVRational){1, 10000000}); + cupkt.timestamp = av_rescale_q(avpkt->pts, avctx->pkt_timebase, (AVRational){1, 10000000}); } } else { cupkt.flags = CUVID_PKT_ENDOFSTREAM; @@ -363,7 +363,7 @@ static int cuvid_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, frame->width = avctx->width; frame->height = avctx->height; - frame->pts = av_rescale_q(dispinfo.timestamp, (AVRational){1, 10000000}, avctx->time_base); + frame->pts = av_rescale_q(dispinfo.timestamp, (AVRational){1, 10000000}, avctx->pkt_timebase); /* CUVIDs opaque reordering breaks the internal pkt logic. * So set pkt_pts and clear all the other pkt_ fields. |