Message ID | 20240415090410.1138-4-Primeadvice@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/4] avcodec/amfenc: Fixes the color information in the output. | expand |
Context | Check | Description |
---|---|---|
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
andriy/configure_x86 | warning | Failed to apply patch |
ffmpeg can't get video rotate info, 5.0 - 6.1.1 version all can't get video rotate info tag = av_dict_get(m_pVideoSt->metadata, "rotate", tag, 0); if (tag) { m_Rotate = atoi(tag->value); } tag is NULL
diff --git a/libavcodec/amfenc_av1.c b/libavcodec/amfenc_av1.c index 634eeea48f..7463251529 100644 --- a/libavcodec/amfenc_av1.c +++ b/libavcodec/amfenc_av1.c @@ -215,6 +215,7 @@ FF_ENABLE_DEPRECATION_WARNINGS : avctx->pix_fmt; color_depth = AMF_COLOR_BIT_DEPTH_8; if (pix_fmt == AV_PIX_FMT_P010) { + AMF_RETURN_IF_FALSE(ctx, ctx->version >= AMF_MAKE_FULL_VERSION(1, 4, 32, 0), AVERROR_UNKNOWN, "HEVC 10-bit encoder is not supported by AMD GPU drivers versions lower than 23.30.\n"); color_depth = AMF_COLOR_BIT_DEPTH_10; }