|
|
|
@@ -675,6 +675,8 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter, |
|
|
|
av_strlcatf(args, sizeof(args), "async=%d", audio_sync_method); |
|
|
|
if (audio_drift_threshold != 0.1) |
|
|
|
av_strlcatf(args, sizeof(args), ":min_hard_comp=%f", audio_drift_threshold); |
|
|
|
if (!fg->reconfiguration) |
|
|
|
av_strlcatf(args, sizeof(args), ":first_pts=0"); |
|
|
|
AUTO_INSERT_FILTER_INPUT("-async", "aresample", args); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -796,6 +798,7 @@ int configure_filtergraph(FilterGraph *fg) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
fg->reconfiguration = 1; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
|