the "impossible" audio error is now really impossible

Originally committed to SVN as r2226.
This commit is contained in:
Karl Blomster 2008-07-03 23:27:06 +00:00
parent 0fbe0a001f
commit 910ff2e34e
1 changed files with 0 additions and 2 deletions

View File

@ -194,8 +194,6 @@ void LAVCAudioProvider::GetAudio(void *buf, int64_t start, int64_t count)
retval = avcodec_decode_audio2(codecContext, buffer, &temp_output_buffer_size, data, size);
if (retval <= 0)
throw _T("Failed to decode audio");
if (temp_output_buffer_size <= 0) /* sanity checking, shouldn't ever happen */
throw _T("Audio decoder lied about output size! This can't happen and you didn't see this error message. Move along.");
decoded_samples = temp_output_buffer_size / 2; /* 2 bytes per sample */
size -= retval;