Mercurial > libavformat.hg
diff dv.c @ 764:cdb845a57ae4 libavformat
drop most url_fileno() calls (allows to use ByteIOContext directly in caller apps instead of URLProtocol)
| author | aurel |
|---|---|
| date | Thu, 19 May 2005 00:06:27 +0000 |
| parents | af4e24d6310c |
| children | feca73904e67 |
line wrap: on
line diff
--- a/dv.c Tue May 17 22:47:34 2005 +0000 +++ b/dv.c Thu May 19 00:06:27 2005 +0000 @@ -815,7 +815,7 @@ // FIXME: sys may be wrong if last dv_read_packet() failed (buffer is junk) const DVprofile* sys = dv_codec_profile(&c->vst->codec); int64_t offset; - int64_t size = url_filesize(url_fileno(&s->pb)); + int64_t size = url_fsize(&s->pb); int64_t max_offset = ((size-1) / sys->frame_size) * sys->frame_size; offset = sys->frame_size * timestamp;
