Commit 394b00f1 authored by aurel's avatar aurel

use proper url_is_streamed() API

instead of messing with ByteIOContext internal is_streamed field


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11276 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5f82acd6
......@@ -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