Mercurial > mplayer.hg
comparison stream/stream_ffmpeg.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 | 97b5fb86090e |
children | b5abdfe9bc61 |
comparison
equal
deleted
inserted
replaced
35265:54a706166f5d | 35266:ceb148e1fe31 |
---|---|
59 double pts; | 59 double pts; |
60 switch(cmd) { | 60 switch(cmd) { |
61 case STREAM_CTRL_GET_SIZE: | 61 case STREAM_CTRL_GET_SIZE: |
62 size = avio_size(s->priv); | 62 size = avio_size(s->priv); |
63 if(size >= 0) { | 63 if(size >= 0) { |
64 *(off_t *)arg = size; | 64 *(uint64_t *)arg = size; |
65 return 1; | 65 return 1; |
66 } | 66 } |
67 break; | 67 break; |
68 case STREAM_CTRL_SEEK_TO_TIME: | 68 case STREAM_CTRL_SEEK_TO_TIME: |
69 pts = *(double *)arg; | 69 pts = *(double *)arg; |