!308 【synchronous】fix the warning that signed variables cannot be used for bitwise operations

Merge pull request !308 from f350780235/OpenHarmony-5.0.1-Release
This commit is contained in:
openharmony_ci 2024-10-26 06:37:17 +00:00 committed by Gitee
commit 42e9fb1707
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -811,7 +811,8 @@ int av_get_key_frame_pos_from_stream(const AVStream *st, struct KeyFrameNode **k
return 1; return 1;
} }
for (int i = 0; i < sti->nb_index_entries; i++) { for (int i = 0; i < sti->nb_index_entries; i++) {
if (sti->index_entries[i].flags & AVINDEX_KEYFRAME) { uint32_t flags = (uint32_t)sti->index_entries[i].flags;
if (flags & AVINDEX_KEYFRAME != 0) {
cur = (struct KeyFrameNode *)malloc(sizeof(struct KeyFrameNode)); cur = (struct KeyFrameNode *)malloc(sizeof(struct KeyFrameNode));
if (cur == NULL) { if (cur == NULL) {
av_destory_key_frame_pos_list(head); av_destory_key_frame_pos_list(head);