mirror of https://github.com/odrling/Aegisub
the "impossible" audio error is now really impossible
Originally committed to SVN as r2226.
This commit is contained in:
parent
0fbe0a001f
commit
910ff2e34e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue