Skip to content

Commit

Permalink
mlu decode input.flags add end of frame, avoid decoder waiting for on…
Browse files Browse the repository at this point in the history
…e buf and blocking the others (#75)

Co-authored-by: zhupengdong <[email protected]>
  • Loading branch information
Lefttyre and zhupengdong authored Aug 6, 2020
1 parent 7a1ac89 commit 39130ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/source/src/ffmpeg_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ bool MluDecoder::Process(ESPacket *pkt) {
input.streamLength = pkt->size;
input.pts = pkt->pts;
input.flags |= CNVIDEODEC_FLAG_TIMESTAMP;
input.flags |= CNVIDEODEC_FLAG_END_OF_FRAME;
if (pkt->flags & ESPacket::FLAG_EOS) {
input.flags |= CNVIDEODEC_FLAG_EOS;
eos_sent_.store(1);
Expand Down

0 comments on commit 39130ad

Please sign in to comment.