From 9f3a5fc168ead871019a949bbb3fb763ce0038a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 11 Jan 2015 20:40:34 +0000 Subject: [PATCH] mpegdemux: minor optimisation when scanning for SCRs Bail out early when we're scanning for SCR, no need to parse stuff we're not going to use nor interested in. --- gst/mpegdemux/gstmpegdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index a337672d16..f3ea040ff6 100644 --- a/gst/mpegdemux/gstmpegdemux.c +++ b/gst/mpegdemux/gstmpegdemux.c @@ -2467,6 +2467,7 @@ gst_ps_demux_scan_ts (GstPsDemux * demux, const guint8 * data, if (mode == SCAN_SCR) { *rts = scr; ret = TRUE; + goto beach; } /* read the 4 bytes for the PES sync code */