diff mbox series

[FFmpeg-devel,v1] avcodec/av1dec: modify error message

Message ID 20210831031506.28892-1-fei.w.wang@intel.com
State New
Headers show
Series [FFmpeg-devel,v1] avcodec/av1dec: modify error message
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Wang, Fei W Aug. 31, 2021, 3:15 a.m. UTC
This will gives out more accurate information in case of this
decoder used but doesn't specificed a hwaccel.

For example:
ffmpeg -c:v av1 -i INPUT OUTPUT

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
---
This is improvement for patch:
https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=4660
https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=4694

 libavcodec/av1dec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index a69808f7b6..98db60a57f 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -462,8 +462,8 @@  static int get_pixel_format(AVCodecContext *avctx)
      * implemented in the future, need remove this check.
      */
     if (!avctx->hwaccel) {
-        av_log(avctx, AV_LOG_ERROR, "Your platform doesn't suppport"
-               " hardware accelerated AV1 decoding.\n");
+        av_log(avctx, AV_LOG_ERROR, "The AV1 decoder requires a hw acceleration"
+               " to be specified or the specified hw doesn't support AV1 decoding.\n");
         return AVERROR(ENOSYS);
     }