mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Originally committed to SVN as r162.
This commit is contained in:
parent
01d0916b2a
commit
6313d8eafd
@ -294,12 +294,12 @@ wxBitmap LAVCVideoProvider::GetFrame(int n) {
|
|||||||
|
|
||||||
// Seek to keyframe
|
// Seek to keyframe
|
||||||
int result = av_seek_frame(formatContext,vidStream,finalPos,0);
|
int result = av_seek_frame(formatContext,vidStream,finalPos,0);
|
||||||
|
avcodec_flush_buffers(codecContext);
|
||||||
|
|
||||||
// Seek until final frame
|
// Seek until final frame
|
||||||
GetNextFrame();
|
do {
|
||||||
while (lastDecodeTime < n) {
|
|
||||||
GetNextFrame();
|
GetNextFrame();
|
||||||
}
|
} while (lastDecodeTime < n);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bitmap
|
// Bitmap
|
||||||
|
Loading…
x
Reference in New Issue
Block a user