1
0
Fork 0
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:
Winlin 2022-12-13 21:03:27 +08:00 committed by GitHub
parent 72182865ef
commit 476a32d417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -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;