Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
avformat: add VIDEO_DECODE_BUFFER_FLAG_FRAME_END for every frame
Browse files Browse the repository at this point in the history
In two cases decoder will start decode current frame
1. get VIDEO_DECODE_BUFFER_FLAG_FRAME_END
2. detected frame boundary

detect frame boundary has drawback, it will delay the decode process.
  • Loading branch information
xuguangxin committed May 15, 2018
1 parent 258e2d5 commit 33374e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/decodeinputavformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ bool DecodeInputAvFormat::getNextDecodeUnit(VideoDecodeBuffer &inputBuffer)
inputBuffer.data = m_packet.data;
inputBuffer.size = m_packet.size;
inputBuffer.timeStamp = m_packet.dts;
inputBuffer.flag = VIDEO_DECODE_BUFFER_FLAG_FRAME_END;
return true;
}
}
Expand Down

0 comments on commit 33374e9

Please sign in to comment.