1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Ignore coverage for codec sps-pps parsing.

This commit is contained in:
winlin 2019-12-24 15:35:19 +08:00
parent 7eccc9da26
commit aa4a27b9fa

View file

@ -708,6 +708,9 @@ srs_error_t SrsFormat::video_avc_demux(SrsBuffer* stream, int64_t timestamp)
return err; return err;
} }
// For media server, we don't care the codec, so we just try to parse sps-pps, and we could ignore any error if fail.
// LCOV_EXCL_START
srs_error_t SrsFormat::avc_demux_sps_pps(SrsBuffer* stream) srs_error_t SrsFormat::avc_demux_sps_pps(SrsBuffer* stream)
{ {
// AVCDecoderConfigurationRecord // AVCDecoderConfigurationRecord
@ -1016,6 +1019,8 @@ srs_error_t SrsFormat::avc_demux_sps_rbsp(char* rbsp, int nb_rbsp)
return err; return err;
} }
// LCOV_EXCL_STOP
srs_error_t SrsFormat::video_nalu_demux(SrsBuffer* stream) srs_error_t SrsFormat::video_nalu_demux(SrsBuffer* stream)
{ {
srs_error_t err = srs_success; srs_error_t err = srs_success;