Many movie editor apps just hide the trimmed parts outside the GOP. Maybe this explains your issue?
For example, trimming a movie with QuickTime Player on a spot that is not an I frame preserves the BP frames before and after that spot but many apps like QuickTime Player just start displaying the movie from the I frame and ignore any BP frames before that.
On the other hand apps like Avidemux obediently display all frames of the trimmed movie, even before that trim spot. Avidemux neatly displays those IBP frames, and I often use it to trim movies so I can put the trims on I frames so there are no hidden frames left behind. Sometimes the GOP or distance between I frames might as be long as 7 seconds or so.
Some apps can edit to the frame instead to the GOP (i.e. I frame) but they must then re-encode the BP frames so the result is lossy regarding those few frames.