View | Details | Raw Unified | Return to bug 214659
Collapse All | Expand All

(-)b/multimedia/mpeg4ip/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	mpeg4ip
4
PORTNAME=	mpeg4ip
5
PORTVERSION=	1.6.1
5
PORTVERSION=	1.6.1
6
PORTREVISION=	34
6
PORTREVISION=	35
7
CATEGORIES=	multimedia audio ipv6 net
7
CATEGORIES=	multimedia audio ipv6 net
8
MASTER_SITES=	LOCAL/ahze
8
MASTER_SITES=	LOCAL/ahze
9
# http://sourceforge.net/forum/forum.php?thread_id=1839453&forum_id=59136
9
# http://sourceforge.net/forum/forum.php?thread_id=1839453&forum_id=59136
(-)b/multimedia/mpeg4ip/files/patch-player_src_media__utils.cpp (+27 lines)
Added Link Here
1
--- player/src/media_utils.cpp.orig	2007-03-29 18:52:19 UTC
2
+++ player/src/media_utils.cpp
3
@@ -605,12 +605,12 @@ static int create_media_for_iptv (CPlaye
4
 				  int have_audio_driver,
5
 				  control_callback_vft_t *cc_vft)
6
 {
7
-  char *slash, *cm;
8
+  char *cm;
9
   uint64_t prog;
10
   session_desc_t *sdp;
11
 
12
   name += strlen("iptv://");
13
-  slash = strchr(name, '/');
14
+  const char *slash = strchr(name, '/');
15
   if (slash == NULL || slash == name) {
16
     psptr->set_message("Invalid iptv content manager");
17
     return -1;
18
@@ -618,8 +618,7 @@ static int create_media_for_iptv (CPlaye
19
   cm = (char *)malloc(slash - name + 1);
20
   memcpy(cm, name, slash - name);
21
   cm[slash - name] = '\0';
22
-  slash++;
23
-  if (sscanf(slash, U64, &prog) != 1) {
24
+  if (sscanf(slash + 1, U64, &prog) != 1) {
25
     psptr->set_message("Invalid iptv program");
26
     return -1;
27
   }

Return to bug 214659