From: Jaroslav Kysela Date: Tue, 12 Sep 2017 11:49:42 +0000 (+0200) Subject: transcode: try to fix the mmal decoder selection, issue #4572 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e2ac87ea1830489bd7972a90faee7adef33341e;p=thirdparty%2Ftvheadend.git transcode: try to fix the mmal decoder selection, issue #4572 --- diff --git a/src/transcoding/transcode/stream.c b/src/transcoding/transcode/stream.c index 50a952995..b837b3488 100644 --- a/src/transcoding/transcode/stream.c +++ b/src/transcoding/transcode/stream.c @@ -72,9 +72,9 @@ tvh_stream_setup(TVHStream *self, TVHCodecProfile *profile, tvh_ssc_t *ssc) (idclass_t *)&codec_profile_video_class)) { if (tvh_codec_profile_video_get_hwaccel(profile) > 0) { if (icodec_id == AV_CODEC_ID_H264) { - icodec = avcodec_find_decoder_by_id("h264_mmal"); + icodec = avcodec_find_decoder_by_name("h264_mmal"); } else if (icodec_id == AV_CODEC_ID_MPEG2VIDEO) { - icodec = avcodec_find_decoder_by_id("mpeg2_mmal"); + icodec = avcodec_find_decoder_by_name("mpeg2_mmal"); } } }