Mercurial > mplayer.hg
comparison libmpdemux/muxer_lavf.c @ 35266:ceb148e1fe31
Change STREAM_CTRL_GET_SIZE argument type from off_t to
uint64_t.
Also fix the incorrect type of the uint64_res variable.
author | reimar |
---|---|
date | Tue, 06 Nov 2012 17:31:23 +0000 |
parents | 2b07cfa69882 |
children | 3e6a575bd47b |
comparison
equal
deleted
inserted
replaced
35265:54a706166f5d | 35266:ceb148e1fe31 |
---|---|
94 return -1; | 94 return -1; |
95 pos += cur; | 95 pos += cur; |
96 } | 96 } |
97 else if(whence == SEEK_END) | 97 else if(whence == SEEK_END) |
98 { | 98 { |
99 off_t size=0; | 99 uint64_t size=0; |
100 if(stream_control(muxer->stream, STREAM_CTRL_GET_SIZE, &size) == STREAM_UNSUPPORTED || size < pos) | 100 if(stream_control(muxer->stream, STREAM_CTRL_GET_SIZE, &size) == STREAM_UNSUPPORTED || size < pos) |
101 return -1; | 101 return -1; |
102 pos = size - pos; | 102 pos = size - pos; |
103 } | 103 } |
104 mp_msg(MSGT_MUXER, MSGL_DBG2, "SEEK %"PRIu64"\n", (int64_t)pos); | 104 mp_msg(MSGT_MUXER, MSGL_DBG2, "SEEK %"PRIu64"\n", (int64_t)pos); |