diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-03-22 22:38:44 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-22 21:30:35 -0400 |
commit | 78e99e0f32b610a3cf302b2b35e500f4e9eaff07 (patch) | |
tree | efffd79efda0e6abd9432ecb92153d12a80e6516 /libavformat/rtspdec.c | |
parent | e6e9823488b4cf42778411f1239592f0787e121e (diff) | |
download | ffmpeg-78e99e0f32b610a3cf302b2b35e500f4e9eaff07.tar.gz |
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>
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r-- | libavformat/rtspdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index ac1f22043f..571e76dfa9 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -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) { |