History

avformat/mov: generalize sgpd_sync index lookup

The function has a nal_unit_type parameter but unused before.

Zhao Zhili committed 1 year ago

Commit 1731eba1 parent c6214b01 file · +1 −1Browse files

Unified · Split

libavformat/mov.c+1−1
@@ -4476,7 +4476,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st) · 4475 unmodified lines
44764476 static uint32_t get_sgpd_sync_index(const MOVStreamContext *sc, int nal_unit_type)
44774477 {
44784478 for (uint32_t i = 0; i < sc->sgpd_sync_count; i++)
4479− if (sc->sgpd_sync[i] == HEVC_NAL_CRA_NUT)
4479+ if (sc->sgpd_sync[i] == nal_unit_type)
44804480 return i + 1;
44814481 return 0;
44824482 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t