Skip to content

Commit

Permalink
Added missing return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedzakikochargi committed Jun 28, 2024
1 parent 5eebdf4 commit a2d9cb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions base/src/H264EncoderV4L2Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ H264EncoderV4L2Helper::enableMotionVectorReporting()
control.value = 1;

setExtControlsMV(ctrls);
return 1;
}

void H264EncoderV4L2Helper::initEncoderParams(uint32_t bitrate, uint32_t fps)
Expand Down Expand Up @@ -265,6 +266,8 @@ H264EncoderV4L2Helper::getMotionVectors(uint32_t buffer_index,
control.string = (char *)&metadata;

getExtControls(ctrls);

return 1;
}

void H264EncoderV4L2Helper::serializeMotionVectors(v4l2_ctrl_videoenc_outputbuf_metadata_MV enc_mv_metadata, frame_container &frames)
Expand Down Expand Up @@ -347,6 +350,8 @@ bool H264EncoderV4L2Helper::process(frame_sp& frame)

mConverter->process(frame, buffer);
mOutputPlane->qBuffer(buffer->getIndex());

return true;
}

bool H264EncoderV4L2Helper::processEOS()
Expand All @@ -361,4 +366,6 @@ bool H264EncoderV4L2Helper::processEOS()
mOutputPlane->qBuffer(buffer->getIndex());

mCapturePlane->waitForDQThread(2000); // blocking call - waits for 2 secs for thread to exit

return true;
}

0 comments on commit a2d9cb7

Please sign in to comment.