1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Do not use format string "%0.3f" for RTSP Range field.

The format string was locale-depending.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
Carl Eugen Hoyos 2011-03-22 22:38:44 +01:00 committed by Ronald S. Bultje
parent e6e9823488
commit 78e99e0f32

View File

@ -60,8 +60,9 @@ static int rtsp_read_play(AVFormatContext *s)
cmd[0] = 0;
} else {
snprintf(cmd, sizeof(cmd),
"Range: npt=%0.3f-\r\n",
(double)rt->seek_timestamp / AV_TIME_BASE);
"Range: npt=%"PRId64".%03"PRId64"-\r\n",
rt->seek_timestamp / AV_TIME_BASE,
rt->seek_timestamp / (AV_TIME_BASE / 1000) % 1000);
}
ff_rtsp_send_cmd(s, "PLAY", rt->control_uri, cmd, reply, NULL);
if (reply->status_code != RTSP_STATUS_OK) {