GNOME Bugzilla – Bug 755102
qtdemux: segfault when running reverse playback validate scenario for a particular file
Last modified: 2018-11-03 15:04:06 UTC
I get a segfault when i run reverse playback scenario with a particular mp4 file. This is the stack trace. gst_qtdemux_seek_to_previous_keyframe (qtdemux=<optimized out>) at qtdemux.c:3983 3983 seg_media_start_mov = seg->trak_media_start; (gdb) bt
+ Trace 235458
The crash is because, segment_index is -1. For this particular sample, in gst_qtdemux_advance_sample /* see if we are past the segment */ if (G_UNLIKELY (QTSAMPLE_DTS (stream, sample) >= segment->media_stop)) goto next_segment; This condition gets satisfied and in next_segment label, segment_index is set to -1. I was able to solve the crash .. but not sure if it is really correct.. While checking if we are past the segment, >= is being checked, so even though qtsample time is same as media_stop, we are skipping to next_segment. Changing the check to '>' fixes the issue. We are really past the segment only when is greater than media_stop. Not sure if >= is really needed..
Hi, does this issue still happen with current gstreamer ? I have this feeling this was fixed within the past year or two.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/220.