mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
fix the warning that signed variables cannot be used for bitwise operations
Signed-off-by: f350780235 <350780235@qq.com>
This commit is contained in:
parent
dac4507cdb
commit
40fcb15094
@ -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