changeset 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 fcdf61a4a6ce
children 28103c669f01
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
         }
     }