Mercurial > libavformat.hg
diff utils.c @ 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 | b51319dd86e5 |
children | bc317b8d7090 |
line wrap: on
line diff
--- 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)) {