Skip to content

Commit

Permalink
revert changes specific to NVR
Browse files Browse the repository at this point in the history
  • Loading branch information
kushaljain-apra committed Oct 1, 2024
1 parent dbbf637 commit af79ad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions base/src/H264Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,10 @@ bool H264Decoder::shouldTriggerSOS()

bool H264Decoder::processEOS(string& pinId)
{
//THIS HAS BEEN COMMENTED IN NVR - BECAUSE EOS IS SENT FROM MP4READER WHICH COMES TO DECODER AND THE FOLLOWING PROCESS IS NOT REQUIRED IN NVR.

// auto frame = frame_sp(new EmptyFrame());
// mDetail->compute(frame->data(), frame->size(), frame->timestamp);
// LOG_ERROR << "processes sos " ;
// mShouldTriggerSOS = true;
auto frame = frame_sp(new EmptyFrame());
mDetail->compute(frame->data(), frame->size(), frame->timestamp);
LOG_ERROR << "processes sos " ;
mShouldTriggerSOS = true;
return true;
}

Expand Down
1 change: 0 additions & 1 deletion base/src/NvTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ void NvTransform::setMetadata(framemetadata_sp &metadata)

bool NvTransform::processEOS(string &pinId)
{
//THE FOLLOWING LINE IS COMMENTED FOR SPECIFIC USE IN NVR - MP4READER PASSING EOS WAS COMING HERE AND CAUSING EOS WHICH IS NOT REQUIRED FOR NVR
mDetail->outputMetadata.reset();
return true;
}

0 comments on commit af79ad0

Please sign in to comment.