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

benoit subversion
Wed May 2 11:18:41 CEST 2007


Author: benoit
Date: Wed May  2 11:18:41 2007
New Revision: 8867

Log:

return right format in set_codec_from_probe_data



Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Wed May  2 11:18:41 2007
@@ -1684,7 +1684,7 @@ static int set_codec_from_probe_data(AVS
         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 */




More information about the ffmpeg-cvslog mailing list