Mercurial > mplayer.hg
diff stream/stream_bd.c @ 35881:b5abdfe9bc61
Replace some uses of off_t by uint64_t.
This allows code that does not rely on lseek etc. to work
even on systems that do not support 64 bit off_t yet.
Signed-off-by: Reimar Dffinger <Reimar.Doeffinger@gmx.de>
author | reimar |
---|---|
date | Sat, 16 Mar 2013 10:09:12 +0000 |
parents | 26eddbd6353a |
children | 3389262720da |
line wrap: on
line diff
--- a/stream/stream_bd.c Sat Mar 16 09:20:51 2013 +0000 +++ b/stream/stream_bd.c Sat Mar 16 10:09:12 2013 +0000 @@ -101,7 +101,7 @@ stream_t *title_file; struct AVAES *aescbc; struct AVAES *aeseed; - off_t pos; + uint64_t pos; struct uks uks; int nr_lang_maps; struct lang_map *lang_maps; @@ -117,7 +117,7 @@ free(bd); } -static int bd_stream_seek(stream_t *s, off_t pos) +static int bd_stream_seek(stream_t *s, uint64_t pos) { struct bd_priv *bd = s->priv; @@ -275,7 +275,7 @@ } // NOTE: we assume buf is sufficiently aligned to 64 bit read/writes -static off_t bd_read(struct bd_priv *bd, uint8_t *buf, int len) +static uint64_t bd_read(struct bd_priv *bd, uint8_t *buf, int len) { int read_len; int unit_offset = bd->pos % BD_UNIT_SIZE;