Mercurial > libavformat.hg
changeset 2841:a41a1ec2213c libavformat
use proper url_is_streamed() API
instead of messing with ByteIOContext internal is_streamed field
author | aurel |
---|---|
date | Wed, 19 Dec 2007 23:26:18 +0000 |
parents | f51675f78402 |
children | bc317b8d7090 |
files | oggdec.c utils.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/oggdec.c Wed Dec 19 21:11:08 2007 +0000 +++ b/oggdec.c Wed Dec 19 23:26:18 2007 +0000 @@ -438,7 +438,7 @@ int idx = -1, i; offset_t size, end; - if(s->pb->is_streamed) + if(url_is_streamed(s->pb)) return 0; // already set
--- a/utils.c Wed Dec 19 21:11:08 2007 +0000 +++ b/utils.c Wed Dec 19 23:26:18 2007 +0000 @@ -1603,7 +1603,7 @@ if ((!strcmp(ic->iformat->name, "mpeg") || !strcmp(ic->iformat->name, "mpegts")) && - file_size && !ic->pb->is_streamed) { + file_size && !url_is_streamed(ic->pb)) { /* get accurate estimate from the PTSes */ av_estimate_timings_from_pts(ic, old_offset); } else if (av_has_duration(ic)) {