Skip to content

Commit

Permalink
Update avcore/player_impl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Apr 16, 2012
1 parent 04cb50d commit ac9e8b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions avcore/player_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,11 @@ BOOL player_impl::open(LPCTSTR movie, int media_type, int video_out_type/* = 0*/
configure(m_avplay, m_audio, AUDIO_RENDER);

// 得到视频宽高.
m_video_width = m_avplay->m_video_ctx->width;
m_video_height = m_avplay->m_video_ctx->height;
if (m_avplay->m_video_ctx)
{
m_video_width = m_avplay->m_video_ctx->width;
m_video_height = m_avplay->m_video_ctx->height;
}

return TRUE;

Expand Down

0 comments on commit ac9e8b9

Please sign in to comment.