ffplay: Print codec_name if decoder for codec_id could not be found.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 29 May 2018 23:09:49 +0000 (01:09 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 29 May 2018 23:09:49 +0000 (01:09 +0200)
Reviewed-by: Marton Balint
fftools/ffplay.c

index dcca9c2..84ba667 100644 (file)
@@ -2578,7 +2578,7 @@ static int stream_component_open(VideoState *is, int stream_index)
         if (forced_codec_name) av_log(NULL, AV_LOG_WARNING,
                                       "No codec could be found with name '%s'\n", forced_codec_name);
         else                   av_log(NULL, AV_LOG_WARNING,
-                                      "No codec could be found with id %d\n", avctx->codec_id);
+                                      "No decoder could be found for codec %s\n", avcodec_get_name(avctx->codec_id));
         ret = AVERROR(EINVAL);
         goto fail;
     }