mpegdemux: Fix backward timestamp scan on small files.
authorJan Schmidt <jan@centricular.com>
Sun, 15 May 2016 09:04:20 +0000 (19:04 +1000)
committerJan Schmidt <jan@centricular.com>
Sun, 15 May 2016 09:30:55 +0000 (19:30 +1000)
commite3b554f0e63bac97bb57a7b81bc8c5ae3810cb3f
treef867d1eb3f8c77c19e3a8d0abd467c50222c2497
parentd520e25db314f2a29c140b3344021079051d2d57
mpegdemux: Fix backward timestamp scan on small files.

When the file size is smaller than the configured 4MB scan
limit for timestamps, don't underflow the guard variable
when checking if it's time to stop.

Limit the backward SCR scan to the same 4MB as the PTS scan.

Add some comments.
gst/mpegdemux/gstmpegdemux.c