Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed latency issue with VideoDecode implementation for H264 and H265 decoders #181

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions media/gpu/h264_decoder.cc
Expand Up @@ -1476,6 +1476,7 @@ H264Decoder::DecodeResult H264Decoder::Decode() {
par_res = parser_.AdvanceToNextNALU(curr_nalu_.get());
if (par_res == H264Parser::kEOStream) {
CHECK_ACCELERATOR_RESULT(FinishPrevFrameIfPresent());
OutputAllRemainingPics();
return kRanOutOfStreamData;
} else if (par_res != H264Parser::kOk) {
SET_ERROR_AND_RETURN();
Expand Down
1 change: 1 addition & 0 deletions media/gpu/h265_decoder.cc
Expand Up @@ -205,6 +205,7 @@ H265Decoder::DecodeResult H265Decoder::Decode() {
curr_nalu_.reset();
// We receive one frame per buffer, so we can output the frame now.
CHECK_ACCELERATOR_RESULT(FinishPrevFrameIfPresent());
OutputAllRemainingPics();
return kRanOutOfStreamData;
}
if (par_res != H265Parser::kOk) {
Expand Down