diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 69279339f4..8e901379e5 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -438,7 +438,7 @@ ogg_get_length (AVFormatContext * s) int idx = -1, i; offset_t size, end; - if(s->pb->is_streamed) + if(url_is_streamed(s->pb)) return 0; // already set diff --git a/libavformat/utils.c b/libavformat/utils.c index e5e04bf745..1f105d4058 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1603,7 +1603,7 @@ static void av_estimate_timings(AVFormatContext *ic, offset_t old_offset) 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)) {