changeset 2066:3fb09f11d6db libavformat

return right format in set_codec_from_probe_data
author benoit
date Wed, 02 May 2007 09:18:41 +0000
parents 64bd1b09cef2
children 669e0f355f0c
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Wed May 02 09:13:47 2007 +0000
+++ b/utils.c	Wed May 02 09:18:41 2007 +0000
@@ -1684,7 +1684,7 @@
         else if (strncmp(fmt->name, "ac3", 3) == 0)
             st->codec->codec_id = CODEC_ID_AC3;
     }
-    return fmt;
+    return !!fmt;
 }
 
 /* absolute maximum size we read until we abort */