OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6e9823
)
Do not use format string "%0.3f" for RTSP Range field.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Tue, 22 Mar 2011 21:38:44 +0000
(22:38 +0100)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 23 Mar 2011 01:30:35 +0000
(21:30 -0400)
The format string was locale-depending.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/rtspdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rtspdec.c
b/libavformat/rtspdec.c
index
ac1f220
..
571e76d
100644
(file)
--- 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) {