[FFmpeg-soc] [soc]: r622 - libavfilter/avfiltergraph.c

koorogi subversion at mplayerhq.hu
Wed Aug 8 06:25:09 CEST 2007


Author: koorogi
Date: Wed Aug  8 06:25:08 2007
New Revision: 622

Log:
Fix behavior when exporting output pad with default query_formats()


Modified:
   libavfilter/avfiltergraph.c

Modified: libavfilter/avfiltergraph.c
==============================================================================
--- libavfilter/avfiltergraph.c	(original)
+++ libavfilter/avfiltergraph.c	Wed Aug  8 06:25:08 2007
@@ -257,8 +257,10 @@ static int *graph_out_query_formats(AVFi
 {
     AVFilterLink *link2 = get_intern_output_link(link);
 
-    if(!link2 || !link2->src->output_pads[link2->srcpad].query_formats)
+    if(!link2)
         return avfilter_make_format_list(0);
+    if(!link2->src->output_pads[link2->srcpad].query_formats)
+        return avfilter_default_query_output_formats(link2);
     return link2->src->output_pads[link2->srcpad].query_formats(link2);
 }
 



More information about the FFmpeg-soc mailing list