comparison stream/stream.h @ 34144:beafae9de2be

Employ correct off_t printf conversion specifiers; this time without typos. This fixes a handful of warnings like libmpcodecs/ve_vfw.c:150:7: warning: format '%d' expects type 'int', but argument 4 has type '__off64_t'
author diego
date Fri, 21 Oct 2011 15:44:58 +0000
parents a08f68ee111e
children 206264c532f5
comparison
equal deleted inserted replaced
34143:3f73c0da20c7 34144:beafae9de2be
292 return s->pos+s->buf_pos-s->buf_len; 292 return s->pos+s->buf_pos-s->buf_len;
293 } 293 }
294 294
295 inline static int stream_seek(stream_t *s,off_t pos){ 295 inline static int stream_seek(stream_t *s,off_t pos){
296 296
297 mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%llX\n", (long long)pos); 297 mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%"PRIX64"\n", pos);
298 298
299 if (pos < 0) { 299 if (pos < 0) {
300 mp_msg(MSGT_DEMUX, MSGL_ERR, "Invalid seek to negative position %llx!\n", 300 mp_msg(MSGT_DEMUX, MSGL_ERR,
301 (long long)pos); 301 "Invalid seek to negative position %"PRIx64"!\n", pos);
302 pos = 0; 302 pos = 0;
303 } 303 }
304 if(pos<s->pos){ 304 if(pos<s->pos){
305 off_t x=pos-(s->pos-s->buf_len); 305 off_t x=pos-(s->pos-s->buf_len);
306 if(x>=0){ 306 if(x>=0){