For myself, I made the following change to the source code ...
Code: Select all
mpeg2dec.c
Old
codec = avcodec_find_decoder(codecCtx->codec_id);
New
if (codecCtx->codec_id == AV_CODEC_ID_MPEG2VIDEO)
{
codec = avcodec_find_decoder_by_name("mpeg2_mmal");
}
else
{
codec = avcodec_find_decoder(codecCtx->codec_id);
}
I have done some testing, and it seems to be working well for me so far.