Skip to content

Commit

Permalink
Windows: Fix dxva2 following VAAPI commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Jun 22, 2011
1 parent ca453e7 commit 1147a23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/libs/libmythtv/avformatdecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,9 @@ int get_avf_buffer_dxva2(struct AVCodecContext *c, AVFrame *pic)
#ifdef USING_DXVA2
if (nd->GetPlayer())
{
c->hwaccel_context = (dxva_context*)nd->GetPlayer()->GetDecoderContext();
static uint8_t *dummy[1] = { 0 };
c->hwaccel_context =
(dxva_context*)nd->GetPlayer()->GetDecoderContext(NULL, dummy[0]);
pic->data[0] = (uint8_t*)frame->buf;
pic->data[3] = (uint8_t*)frame->buf;
}
Expand Down

0 comments on commit 1147a23

Please sign in to comment.