[FFmpeg-cvslog] r11276 - in trunk/libavformat: oggdec.c utils.c

aurel subversion
Thu Dec 20 00:26:18 CET 2007


Author: aurel
Date: Thu Dec 20 00:26:18 2007
New Revision: 11276

Log:
use proper url_is_streamed() API
instead of messing with ByteIOContext internal is_streamed field


Modified:
   trunk/libavformat/oggdec.c
   trunk/libavformat/utils.c

Modified: trunk/libavformat/oggdec.c
==============================================================================
--- trunk/libavformat/oggdec.c	(original)
+++ trunk/libavformat/oggdec.c	Thu Dec 20 00:26:18 2007
@@ -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

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Thu Dec 20 00:26:18 2007
@@ -1603,7 +1603,7 @@ static void av_estimate_timings(AVFormat
 
     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)) {




More information about the ffmpeg-cvslog mailing list