mirror of https://github.com/odrling/Aegisub
stupidest coder on earth
Originally committed to SVN as r337.
This commit is contained in:
parent
1f27325394
commit
ef40189a2b
|
@ -80,8 +80,8 @@ LAVCAudioProvider::LAVCAudioProvider(wxString _filename, VideoProvider *vpro)
|
||||||
throw _T("Failed to open audio decoder");
|
throw _T("Failed to open audio decoder");
|
||||||
|
|
||||||
int setsample = Options.AsInt(_T("Audio Sample Rate"));
|
int setsample = Options.AsInt(_T("Audio Sample Rate"));
|
||||||
num_samples = stream->duration / bytes_per_sample;
|
|
||||||
bytes_per_sample = 2;
|
bytes_per_sample = 2;
|
||||||
|
num_samples = stream->duration / bytes_per_sample;
|
||||||
if (setsample) {
|
if (setsample) {
|
||||||
rsct = audio_resample_init(1, codecContext->channels, setsample, codecContext->sample_rate);
|
rsct = audio_resample_init(1, codecContext->channels, setsample, codecContext->sample_rate);
|
||||||
sample_rate = setsample;
|
sample_rate = setsample;
|
||||||
|
|
Loading…
Reference in New Issue