[rtmpdump] r509 - trunk/rtmpsrv.c
hyc
subversion at mplayerhq.hu
Sun Jun 6 09:17:30 CEST 2010
Author: hyc
Date: Sun Jun 6 09:17:29 2010
New Revision: 509
Log:
Always use .flv extension for output
Modified:
trunk/rtmpsrv.c
Modified: trunk/rtmpsrv.c
==============================================================================
--- trunk/rtmpsrv.c Thu Jun 3 19:03:37 2010 (r508)
+++ trunk/rtmpsrv.c Sun Jun 6 09:17:29 2010 (r509)
@@ -687,9 +687,13 @@ ServeInvoke(STREAMING_SERVER *server, RT
/* Add extension if none present */
if (file[av.av_len - 4] != '.')
{
- strcpy(file+av.av_len, ".flv");
av.av_len += 4;
}
+ /* Always use flv extension, regardless of original */
+ if (strcmp(file+av.av_len-4, ".flv"))
+ {
+ strcpy(file+av.av_len-4, ".flv");
+ }
argv[argc].av_val = ptr + 1;
argv[argc++].av_len = 2;
argv[argc].av_val = file;
More information about the rtmpdump
mailing list