rtsp: Don't use a locale dependent format string
authorMartin Storsjö <martin@martin.st>
Wed, 23 Mar 2011 08:26:22 +0000 (10:26 +0200)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 23 Mar 2011 11:30:16 +0000 (07:30 -0400)
In this particular case, we aren't ever printing anything else than
0.000 anyway.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/rtspenc.c

index c163f4c..1f1fd32 100644 (file)
@@ -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;