diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index dae2c979f01d429df9744337a6dce41150828bb0..abd41aa44f77702210290e8319e88ec0a8d22682 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -240,6 +240,7 @@ static int graph_in_config_props(AVFilterLink *link)
     /* copy link properties over to the dummy internal link */
     link2->w = link->w;
     link2->h = link->h;
+    link2->format = link->format;
 
     if(!(config_props = link2->dst->input_pads[link2->dstpad].config_props))
         return 0;   /* FIXME? */