Line
Link Here
|
0 |
-- ffmpegthumbs-4.6.3/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp |
0 |
++ ffmpegthumbs-4.6.3/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp |
Lines 122-128
Link Here
|
122 |
void MovieDecoder::initializeVideo() |
122 |
void MovieDecoder::initializeVideo() |
123 |
{ |
123 |
{ |
124 |
for (unsigned int i = 0; i < m_pFormatContext->nb_streams; i++) { |
124 |
for (unsigned int i = 0; i < m_pFormatContext->nb_streams; i++) { |
125 |
if (m_pFormatContext->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) { |
125 |
if (m_pFormatContext->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { |
126 |
m_pVideoStream = m_pFormatContext->streams[i]; |
126 |
m_pVideoStream = m_pFormatContext->streams[i]; |
127 |
m_VideoStream = i; |
127 |
m_VideoStream = i; |
128 |
break; |
128 |
break; |