stupidest coder on earth

Originally committed to SVN as r337.
This commit is contained in:
David Lamparter 2006-04-14 23:19:20 +00:00
parent 1f27325394
commit ef40189a2b
1 changed files with 1 additions and 1 deletions

View File

@ -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;