mirror of https://github.com/odrling/Aegisub
parent
366a248a7e
commit
4655ae8122
|
@ -44,9 +44,9 @@
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
|
|
||||||
LAVCAudioProvider::LAVCAudioProvider(wxString _filename, VideoProvider *vpro)
|
LAVCAudioProvider::LAVCAudioProvider(wxString _filename, VideoProvider *vpro)
|
||||||
try
|
|
||||||
: lavcfile(NULL), codecContext(NULL), rsct(NULL), buffer(NULL)
|
: lavcfile(NULL), codecContext(NULL), rsct(NULL), buffer(NULL)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
#if 0
|
#if 0
|
||||||
/* since seeking currently is likely to be horribly broken with two
|
/* since seeking currently is likely to be horribly broken with two
|
||||||
* providers accessing the same stream, this is disabled for now.
|
* providers accessing the same stream, this is disabled for now.
|
||||||
|
@ -96,10 +96,12 @@ try
|
||||||
buffer = (int16_t *)malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
|
buffer = (int16_t *)malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
throw _T("Out of memory");
|
throw _T("Out of memory");
|
||||||
|
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
Destroy();
|
Destroy();
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
LAVCAudioProvider::~LAVCAudioProvider()
|
LAVCAudioProvider::~LAVCAudioProvider()
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
|
|
||||||
#ifdef USE_LAVC
|
#ifdef USE_LAVC
|
||||||
|
|
||||||
|
#define EMULATE_INTTYPES
|
||||||
#include "audio_provider.h"
|
#include "audio_provider.h"
|
||||||
#include "lavc_file.h"
|
#include "lavc_file.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue