[FFmpeg-cvslog] r17538 - trunk/libavformat/utils.c

michael subversion
Mon Feb 23 03:38:45 CET 2009


Author: michael
Date: Mon Feb 23 03:38:45 2009
New Revision: 17538

Log:
Allow av_find_stream_info() to be aborted.
Based on a patch by netgem.

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Mon Feb 23 02:56:08 2009	(r17537)
+++ trunk/libavformat/utils.c	Mon Feb 23 03:38:45 2009	(r17538)
@@ -2020,6 +2020,11 @@ int av_find_stream_info(AVFormatContext 
     count = 0;
     read_size = 0;
     for(;;) {
+        if(url_interrupt_cb()){
+            ret= AVERROR(EINTR);
+            break;
+        }
+
         /* check if one codec still needs to be handled */
         for(i=0;i<ic->nb_streams;i++) {
             st = ic->streams[i];




More information about the ffmpeg-cvslog mailing list