Skip to content

Commit

Permalink
test: Flush buffer between decode and deinterlace
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Nov 27, 2021
1 parent b23ff8e commit 043c637
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,15 @@ void CDVDVideoCodecDRMPRIME::FilterClose()

CDVDVideoCodec::VCReturn CDVDVideoCodecDRMPRIME::ProcessFilterIn()
{
if (m_pFrame->format == AV_PIX_FMT_DRM_PRIME)
{
}
else if (m_pFrame->opaque)
{
CVideoBufferDMA* buffer = static_cast<CVideoBufferDMA*>(m_pFrame->opaque);
buffer->SyncEnd();
}

int ret = av_buffersrc_add_frame(m_pFilterIn, m_pFrame);
if (ret < 0)
{
Expand Down

0 comments on commit 043c637

Please sign in to comment.