mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-30 06:30:59 +00:00
!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:
commit
42e9fb1707
@ -811,7 +811,8 @@ int av_get_key_frame_pos_from_stream(const AVStream *st, struct KeyFrameNode **k
|
||||
return 1;
|
||||
}
|
||||
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));
|
||||
if (cur == NULL) {
|
||||
av_destory_key_frame_pos_list(head);
|
||||
|
Loading…
Reference in New Issue
Block a user