mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Don't use m_pFrame->pkt_duration directly.
Docs say you're supposed to call this func instead.
This commit is contained in:
parent
6f9a879aad
commit
36eb90293e
1 changed files with 1 additions and 3 deletions
|
@ -367,8 +367,6 @@ bool MediaEngine::stepVideo(int videoPixelMode) {
|
|||
|
||||
AVFormatContext *pFormatCtx = (AVFormatContext*)m_pFormatCtx;
|
||||
AVCodecContext *pCodecCtx = (AVCodecContext*)m_pCodecCtx;
|
||||
AVFrame *pFrame = (AVFrame*)m_pFrame;
|
||||
AVFrame *pFrameRGB = (AVFrame*)m_pFrameRGB;
|
||||
if ((!m_pFrame)||(!m_pFrameRGB))
|
||||
return false;
|
||||
AVPacket packet;
|
||||
|
@ -390,7 +388,7 @@ bool MediaEngine::stepVideo(int videoPixelMode) {
|
|||
pCodecCtx->height, m_pFrameRGB->data, m_pFrameRGB->linesize);
|
||||
|
||||
int firstTimeStamp = bswap32(*(int*)(m_pdata + 86));
|
||||
m_videopts = pFrame->pkt_dts + pFrame->pkt_duration - firstTimeStamp;
|
||||
m_videopts = m_pFrame->pkt_dts + av_frame_get_pkt_duration(m_pFrame) - firstTimeStamp;
|
||||
bGetFrame = true;
|
||||
}
|
||||
if (result <= 0 && dataEnd) {
|
||||
|
|
Loading…
Add table
Reference in a new issue