]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
transcode: try to fix the mmal decoder selection, issue #4572
authorJaroslav Kysela <perex@perex.cz>
Tue, 12 Sep 2017 11:49:42 +0000 (13:49 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 12 Sep 2017 11:50:34 +0000 (13:50 +0200)
src/transcoding/transcode/stream.c

index 50a952995a26bd24779f00f8b25c271b49b052d8..b837b34882816f3aecf7ab8a3f4b1cc6db499b8c 100644 (file)
@@ -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");
         }
       }
     }