|
|
|
@ -244,7 +244,7 @@ void k9AviDecode::readFrame(double _seconds) {
|
|
|
|
|
bFound=true;
|
|
|
|
|
toRGB_convert_ctx=sws_getContext(m_CodecCtx->width, m_CodecCtx->height, m_CodecCtx->pix_fmt, m_CodecCtx->width, m_CodecCtx->height, AV_PIX_FMT_RGB24, sws_flags,NULL,NULL,NULL);
|
|
|
|
|
sws_scale(toRGB_convert_ctx, m_Frame->data, m_Frame->linesize, 0, m_CodecCtx->height, m_FrameRGB->data,m_FrameRGB->linesize);
|
|
|
|
|
// convert frame to QImage
|
|
|
|
|
// convert frame to TQImage
|
|
|
|
|
SaveFrame(m_FrameRGB, m_CodecCtx->width,
|
|
|
|
|
m_CodecCtx->height);
|
|
|
|
|
sws_freeContext(toRGB_convert_ctx);
|
|
|
|
|