mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Build: Fix build warnings (#3302)
1. Avoid default guess for expression. 2. Force to void* for memset.
This commit is contained in:
parent
72182865ef
commit
476a32d417
3 changed files with 10 additions and 10 deletions
|
|
@ -624,7 +624,7 @@ srs_error_t SrsGopCache::cache(SrsSharedPtrMessage* shared_msg)
|
|||
// Drop video when not h.264 or h.265.
|
||||
bool codec_ok = SrsFlvVideo::h264(msg->payload, msg->size);
|
||||
#ifdef SRS_H265
|
||||
codec_ok = codec_ok ? : SrsFlvVideo::hevc(msg->payload, msg->size);
|
||||
codec_ok = codec_ok ? true : SrsFlvVideo::hevc(msg->payload, msg->size);
|
||||
#endif
|
||||
if (!codec_ok) return err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue