Skip to content

Commit

Permalink
changed function name
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedzakikochargi committed Jun 28, 2023
1 parent 5ff94b8 commit 5293fa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/src/Mp4WriterSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class DetailH264 : public DetailAbs
{
}
bool write(frame_container& frames);
uint8_t* prependSizeBeforeNaluSeparatorIFrame(short naluType, frame_sp frame, size_t& frameSize);
uint8_t* AppendSizeInNaluSeprator(short naluType, frame_sp frame, size_t& frameSize);


bool set_video_decoder_config()
Expand Down Expand Up @@ -368,7 +368,7 @@ bool DetailJpeg::write(frame_container& frames)
return true;
}

uint8_t* DetailH264::prependSizeBeforeNaluSeparatorIFrame(short naluType, frame_sp inH264ImageFrame, size_t& frameSize)
uint8_t* DetailH264::AppendSizeInNaluSeprator(short naluType, frame_sp inH264ImageFrame, size_t& frameSize)
{
char NaluSeprator[3] = { 00 ,00, 00 };
char nalusepratorIframe[2] = { 00, 00 };
Expand Down Expand Up @@ -460,7 +460,7 @@ bool DetailH264::write(frame_container& frames)
initNewMp4File(mNextFrameFileName);
if (naluType == H264Utils::H264_NAL_TYPE_IDR_SLICE)
{
auto newBuffer = prependSizeBeforeNaluSeparatorIFrame(naluType, inH264ImageFrame, frameSize);
auto newBuffer = AppendSizeInNaluSeprator(naluType, inH264ImageFrame, frameSize);
mux_sample.buffer = newBuffer;
mux_sample.len = frameSize;
}
Expand All @@ -469,7 +469,7 @@ bool DetailH264::write(frame_container& frames)
if (naluType == H264Utils::H264_NAL_TYPE_SEQ_PARAM)
{

auto newBuffer = prependSizeBeforeNaluSeparatorIFrame(naluType, inH264ImageFrame, frameSize);
auto newBuffer = AppendSizeInNaluSeprator(naluType, inH264ImageFrame, frameSize);
mux_sample.buffer = newBuffer;
mux_sample.len = frameSize;
}
Expand Down

0 comments on commit 5293fa6

Please sign in to comment.