diff utils.c @ 5950:f80cd2cf07e4 libavformat

Do not probe when the format is known. Patch by Jean-Daniel Dupas devlists shadowlab org
author benoit
date Tue, 13 Apr 2010 07:25:50 +0000
parents 88cce1b69115
children 178de7695c6c
line wrap: on
line diff
--- a/utils.c	Tue Apr 13 01:19:59 2010 +0000
+++ b/utils.c	Tue Apr 13 07:25:50 2010 +0000
@@ -559,7 +559,7 @@
         if (buf_size > 0) {
             url_setbufsize(pb, buf_size);
         }
-        if ((err = ff_probe_input_buffer(&pb, &fmt, filename, logctx, 0, logctx ? (*ic_ptr)->probesize : 0)) < 0) {
+        if (!fmt && (err = ff_probe_input_buffer(&pb, &fmt, filename, logctx, 0, logctx ? (*ic_ptr)->probesize : 0)) < 0) {
             goto fail;
         }
     }