mirror of https://github.com/odrling/Aegisub
parent
10ae56ff7f
commit
64bb2bbb76
|
@ -38,6 +38,12 @@
|
|||
// Headers
|
||||
#ifdef HAVE_ASA
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
#include <wx/image.h>
|
||||
#include "subtitle_provider.h"
|
||||
#include "video_provider.h"
|
||||
#include "ass_file.h"
|
||||
|
||||
#ifdef HAVE_ASA_ASA_H
|
||||
# include <asa/asa.h>
|
||||
#else
|
||||
|
@ -46,12 +52,6 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
#include <wx/image.h>
|
||||
#include "subtitle_provider.h"
|
||||
#include "video_provider.h"
|
||||
#include "ass_file.h"
|
||||
|
||||
|
||||
class SubtitleProviderASA : public SubtitleProvider, SubtitleProvider::Overlay {
|
||||
private:
|
||||
|
|
|
@ -297,7 +297,7 @@ wxBitmap LAVCVideoProvider::AVFrameToWX(AVFrame *source, int n) {
|
|||
memcpy(data, frameRGB->data[0], w * h * 3);
|
||||
img.SetData(data);
|
||||
if (overlay)
|
||||
overlay->Render(img, n);
|
||||
overlay->Render(img, VFR_Input.GetTimeAtFrame(n));
|
||||
|
||||
wxBitmap bmp(img);
|
||||
|
||||
|
|
Loading…
Reference in New Issue