Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2840:f51675f78402 | 2841:a41a1ec2213c |
---|---|
1601 } | 1601 } |
1602 ic->file_size = file_size; | 1602 ic->file_size = file_size; |
1603 | 1603 |
1604 if ((!strcmp(ic->iformat->name, "mpeg") || | 1604 if ((!strcmp(ic->iformat->name, "mpeg") || |
1605 !strcmp(ic->iformat->name, "mpegts")) && | 1605 !strcmp(ic->iformat->name, "mpegts")) && |
1606 file_size && !ic->pb->is_streamed) { | 1606 file_size && !url_is_streamed(ic->pb)) { |
1607 /* get accurate estimate from the PTSes */ | 1607 /* get accurate estimate from the PTSes */ |
1608 av_estimate_timings_from_pts(ic, old_offset); | 1608 av_estimate_timings_from_pts(ic, old_offset); |
1609 } else if (av_has_duration(ic)) { | 1609 } else if (av_has_duration(ic)) { |
1610 /* at least one components has timings - we use them for all | 1610 /* at least one components has timings - we use them for all |
1611 the components */ | 1611 the components */ |