The function has a nal_unit_type parameter but unused before.
Unified · Split
| @@ -4476,7 +4476,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st) · 4475 unmodified lines | ||
| 4476 | 4476 | static uint32_t get_sgpd_sync_index(const MOVStreamContext *sc, int nal_unit_type) |
| 4477 | 4477 | { |
| 4478 | 4478 | 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) | |
| 4480 | 4480 | return i + 1; |
| 4481 | 4481 | return 0; |
| 4482 | 4482 | } |