]> git.sesse.net Git - ffmpeg/blobdiff - ffmpeg_filter.c
x86/me_cmp: combine sad functions into a single macro
[ffmpeg] / ffmpeg_filter.c
index 93af8cef1865490fd624ad08b80f4e24b22bbcf1..d52b1f7d76ed12e55469dd0c9c6dfb747854ccc9 100644 (file)
@@ -928,6 +928,16 @@ int configure_filtergraph(FilterGraph *fg)
     }
 
     fg->reconfiguration = 1;
+
+    for (i = 0; i < fg->nb_outputs; i++) {
+        OutputStream *ost = fg->outputs[i]->ost;
+        if (ost &&
+            ost->enc->type == AVMEDIA_TYPE_AUDIO &&
+            !(ost->enc->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE))
+            av_buffersink_set_frame_size(ost->filter->filter,
+                                         ost->enc_ctx->frame_size);
+    }
+
     return 0;
 }