[FFmpeg-cvslog] rtsp: Don't use a locale dependent format string
Martin Storsjö
git at videolan.org
Thu Mar 24 03:43:42 CET 2011
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Mar 23 10:26:22 2011 +0200| [28e9c42afbf0088aa1f4280a95d304dca4b675a0] | committer: Ronald S. Bultje
rtsp: Don't use a locale dependent format string
In this particular case, we aren't ever printing anything else than
0.000 anyway.
Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=28e9c42afbf0088aa1f4280a95d304dca4b675a0
---
libavformat/rtspenc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c
index c163f4c..1f1fd32 100644
--- a/libavformat/rtspenc.c
+++ b/libavformat/rtspenc.c
@@ -103,8 +103,7 @@ static int rtsp_write_record(AVFormatContext *s)
char cmd[1024];
snprintf(cmd, sizeof(cmd),
- "Range: npt=%0.3f-\r\n",
- (double) 0);
+ "Range: npt=0.000-\r\n");
ff_rtsp_send_cmd(s, "RECORD", rt->control_uri, cmd, reply, NULL);
if (reply->status_code != RTSP_STATUS_OK)
return -1;
More information about the ffmpeg-cvslog
mailing list