[FFmpeg-cvslog] r12697 - trunk/libavfilter/avfiltergraph.c

vitor subversion
Fri Apr 4 22:06:29 CEST 2008


Author: vitor
Date: Fri Apr  4 22:06:28 2008
New Revision: 12697

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

Commited in SoC by Bobby Bingham on 2007-08-08 04:25:08


Modified:
   trunk/libavfilter/avfiltergraph.c

Modified: trunk/libavfilter/avfiltergraph.c
==============================================================================
--- trunk/libavfilter/avfiltergraph.c	(original)
+++ trunk/libavfilter/avfiltergraph.c	Fri Apr  4 22:06:28 2008
@@ -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-cvslog mailing list