diff --git a/AVQt/filter/DecoderVAAPI.cpp b/AVQt/filter/DecoderVAAPI.cpp index efa79f82230ef360302b49f60a96ae87ac95fd6e..17af46265d0a9a8d8edf4613a1e3c3355d1fdba4 100644 --- a/AVQt/filter/DecoderVAAPI.cpp +++ b/AVQt/filter/DecoderVAAPI.cpp @@ -286,7 +286,7 @@ namespace AVQt { AVFrame *cbFrame = av_frame_clone(frame); cbFrame->pts = av_rescale_q(frame->pts, d->m_timebase, av_make_q(1, 1000000)); // Rescale pts to microseconds for easier processing - qDebug("Calling video frame callback for PTS: %ld, Timebase: %d/%d", cbFrame->pts, d->m_timebase.num, + qDebug("Calling video frame callback for PTS: %lld, Timebase: %d/%d", cbFrame->pts, d->m_timebase.num, d->m_timebase.den); QTime time = QTime::currentTime(); cb->onFrame(this, cbFrame, static_cast<int64_t>(av_q2d(av_inv_q(d->m_framerate)) * 1000.0)); @@ -318,4 +318,4 @@ namespace AVQt { } } } -} \ No newline at end of file +} diff --git a/AVQt/filter/EncoderVAAPI.cpp b/AVQt/filter/EncoderVAAPI.cpp index e63cea48490ea6dca26098a6c11b1eb52a24e5f9..12feadb94b5e6b05f65b52b9284aec08eb3133fe 100644 --- a/AVQt/filter/EncoderVAAPI.cpp +++ b/AVQt/filter/EncoderVAAPI.cpp @@ -339,7 +339,7 @@ namespace AVQt { AVPacket *packet = av_packet_alloc(); while (true) { ret = avcodec_receive_packet(d->m_pCodecCtx, packet); - qDebug("[AVQt::EncoderVAAPI] Got packet from encoder with PTS: %ld, timebase: %d/%d", packet->pts, + qDebug("[AVQt::EncoderVAAPI] Got packet from encoder with PTS: %lld, timebase: %d/%d", packet->pts, d->m_pCodecCtx->time_base.num, d->m_pCodecCtx->time_base.den); if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN)) { break; @@ -370,4 +370,4 @@ namespace AVQt { return *this; } -} \ No newline at end of file +}