Commit ceeacce6 authored by Aurelien Jacobs's avatar Aurelien Jacobs

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
parent 8293fea5
......@@ -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
......
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment