History

ffplay: use av_codec_get_pkt_timebase()

Michael Niedermayer committed 12 years ago

Commit 266b3d41 parent 170e2fd1 file · +1 −1Browse files

Unified · Split

ffplay.c+1−1
@@ -598,7 +598,7 @@ static int decoder_decode_frame(Decoder *d, void *fframe) { · 597 unmodified lines
598 if (frame->pts != AV_NOPTS_VALUE)598 if (frame->pts != AV_NOPTS_VALUE)
599 frame->pts = av_rescale_q(frame->pts, d->avctx->time_base, tb);599 frame->pts = av_rescale_q(frame->pts, d->avctx->time_base, tb);
600 else if (frame->pkt_pts != AV_NOPTS_VALUE)600 else if (frame->pkt_pts != AV_NOPTS_VALUE)
601 frame->pts = av_rescale_q(frame->pkt_pts, d->avctx->pkt_timebase, tb);601 frame->pts = av_rescale_q(frame->pkt_pts, av_codec_get_pkt_timebase(d->avctx), tb);
602 else if (d->next_pts != AV_NOPTS_VALUE)602 else if (d->next_pts != AV_NOPTS_VALUE)
603 frame->pts = av_rescale_q(d->next_pts, d->next_pts_tb, tb);603 frame->pts = av_rescale_q(d->next_pts, d->next_pts_tb, tb);
604 if (frame->pts != AV_NOPTS_VALUE) {604 if (frame->pts != AV_NOPTS_VALUE) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t