projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aaf12a
)
mpegdemux: minor optimisation when scanning for SCRs
author
Tim-Philipp Müller
<tim@centricular.com>
Sun, 11 Jan 2015 20:40:34 +0000
(20:40 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 11 Jan 2015 20:42:13 +0000
(20:42 +0000)
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
patch
|
blob
|
history
diff --git
a/gst/mpegdemux/gstmpegdemux.c
b/gst/mpegdemux/gstmpegdemux.c
index a337672d16dbf5e5e67c361c6453f5df7860e781..f3ea040ff66f3fedd7acef26908c1ddfe76bc38f 100644
(file)
--- 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 */