Skip to content

Commit

Permalink
solve utest in srs_kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
shiwei committed Oct 14, 2021
1 parent 0eb1e58 commit 4fa6e6c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions trunk/src/kernel/srs_kernel_codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,6 @@ srs_error_t SrsVideoFrame::add_sample(char* bytes, int size)
return srs_error_wrap(err, "add frame");
}

#ifdef SRS_H265
if (vcodec()->id == SrsVideoCodecIdAVC) {
// for video, parse the nalu type, set the IDR flag.
SrsAvcNaluType nal_unit_type = (SrsAvcNaluType)(bytes[0] & 0x1f);
Expand All @@ -581,7 +580,6 @@ srs_error_t SrsVideoFrame::add_sample(char* bytes, int size)
first_nalu_type = nal_unit_type;
}
}
#endif

return err;
}
Expand Down

0 comments on commit 4fa6e6c

Please sign in to comment.