[vlc-devel] [PATCH] Allow the image separator to be specified on the command line

David R Robison drrobison at openroadsconsulting.com
Fri Aug 23 23:03:50 CEST 2013


OK, here is the revised patch. How does this look?


---
  modules/demux/mjpeg.c |   14 +++++++++-----
  1 file changed, 9 insertions(+), 5 deletions(-)
  mode change 100644 => 100755 modules/demux/mjpeg.c

diff --git a/modules/demux/mjpeg.c b/modules/demux/mjpeg.c
old mode 100644
new mode 100755
index 8def7f8..b673e6f
--- a/modules/demux/mjpeg.c
+++ b/modules/demux/mjpeg.c
@@ -508,8 +508,12 @@ static int MimeDemux( demux_t *p_demux )
              }
          }

-        if( !strncmp( p_sys->psz_separator, (char *)(p_sys->p_peek + i 
+ 2),
-                      strlen( p_sys->psz_separator ) ) )
+        if( !strncmp( p_sys->psz_separator, (char *)(p_sys->p_peek + i 
+ 2),
+                      strlen( p_sys->psz_separator ) )
+                      || (!strncmp(p_sys->psz_separator, "--", 2)
+                      && (strlen( p_sys->psz_separator ) > 4)
+                      && !strncmp( p_sys->psz_separator, (char 
*)(p_sys->p_peek + i),
+                      strlen( p_sys->psz_separator ) ) ) )
          {
              break;
          }
-- 
1.7.9.5



This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.




More information about the vlc-devel mailing list