mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
hardcode SYNC flag, so no problems could rise if first frame is skipped
frame skipping is still done by passing NULL buffer to the decoder patch by Shachar Raindel <shacharr at gmail.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15920 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e4065d6e02
commit
7a7b157a2d
@ -330,7 +330,7 @@ int DMO_VideoDecoder_DecodeInternal(DMO_VideoDecoder *this, const void* src, int
|
||||
bufferin = CMediaBufferCreate(size, (void*)src, size, 0);
|
||||
result = this->m_pDMO_Filter->m_pMedia->vt->ProcessInput(this->m_pDMO_Filter->m_pMedia, 0,
|
||||
(IMediaBuffer*)bufferin,
|
||||
(is_keyframe) ? DMO_INPUT_DATA_BUFFERF_SYNCPOINT : 0,
|
||||
DMO_INPUT_DATA_BUFFERF_SYNCPOINT,
|
||||
0, 0);
|
||||
((IMediaBuffer*)bufferin)->vt->Release((IUnknown*)bufferin);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user