use proper url_is_streamed() API

instead of messing with ByteIOContext internal is_streamed field

Originally committed as revision 11276 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2007-12-19 23:26:18 +00:00
parent 8293fea57e
commit ceeacce68b
2 changed files with 2 additions and 2 deletions

View File

@ -438,7 +438,7 @@ ogg_get_length (AVFormatContext * s)
int idx = -1, i; int idx = -1, i;
offset_t size, end; offset_t size, end;
if(s->pb->is_streamed) if(url_is_streamed(s->pb))
return 0; return 0;
// already set // already set

View File

@ -1603,7 +1603,7 @@ static void av_estimate_timings(AVFormatContext *ic, offset_t old_offset)
if ((!strcmp(ic->iformat->name, "mpeg") || if ((!strcmp(ic->iformat->name, "mpeg") ||
!strcmp(ic->iformat->name, "mpegts")) && !strcmp(ic->iformat->name, "mpegts")) &&
file_size && !ic->pb->is_streamed) { file_size && !url_is_streamed(ic->pb)) {
/* get accurate estimate from the PTSes */ /* get accurate estimate from the PTSes */
av_estimate_timings_from_pts(ic, old_offset); av_estimate_timings_from_pts(ic, old_offset);
} else if (av_has_duration(ic)) { } else if (av_has_duration(ic)) {