Decoding mp4/mkv using FFMPEG fails
Instead of implicitly provide width and height here:
m_CodecContext->width = codecpar->width;
m_CodecContext->height = codecpar->height;
you should call avcodec_parameters_to_context()
.
Instead of implicitly provide width and height here:
m_CodecContext->width = codecpar->width;
m_CodecContext->height = codecpar->height;
you should call avcodec_parameters_to_context()
.