mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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.
This commit is contained in:
parent
9aaf12aae0
commit
9f3a5fc168
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue