[FFmpeg-devel] [PATCH v1] avcodec/av1dec: modify error message
Fei Wang
fei.w.wang at intel.com
Tue Aug 31 06:15:06 EEST 2021
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 at 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 --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);
}
--
2.17.1
More information about the ffmpeg-devel
mailing list