lavc/qsvenc: dump BufferSizeInKB message

Message ID 1535368546-5453-1-git-send-email-zhong.li@intel.com
State Committed
Commit c8bca9fe466f810fd484e2c6db7ef7bc83b5a943
Headers show
Series
  • lavc/qsvenc: dump BufferSizeInKB message
Related show

Commit Message

Li, Zhong Aug. 27, 2018, 11:15 a.m.
Signed-off-by: Zhong Li <zhong.li@intel.com>
---
 libavcodec/qsvenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Luca Barbato Aug. 27, 2018, 1:23 p.m. | #1
On 27/08/2018 13:15, Zhong Li wrote:
> Signed-off-by: Zhong Li <zhong.li@intel.com>
> ---
>  libavcodec/qsvenc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
> index c2c2911..611449c 100644
> --- a/libavcodec/qsvenc.c
> +++ b/libavcodec/qsvenc.c
> @@ -160,8 +160,8 @@ static void dump_video_param(AVCodecContext *avctx, QSVEncContext *q,
>  #endif
>          ) {
>          av_log(avctx, AV_LOG_VERBOSE,
> -               "InitialDelayInKB: %"PRIu16"; TargetKbps: %"PRIu16"; MaxKbps: %"PRIu16"\n",
> -               info->InitialDelayInKB, info->TargetKbps, info->MaxKbps);
> +               "BufferSizeInKB: %"PRIu16"; InitialDelayInKB: %"PRIu16"; TargetKbps: %"PRIu16"; MaxKbps: %"PRIu16"\n",
> +               info->BufferSizeInKB, info->InitialDelayInKB, info->TargetKbps, info->MaxKbps);
>      } else if (info->RateControlMethod == MFX_RATECONTROL_CQP) {
>          av_log(avctx, AV_LOG_VERBOSE, "QPI: %"PRIu16"; QPP: %"PRIu16"; QPB: %"PRIu16"\n",
>                 info->QPI, info->QPP, info->QPB);
> 

Sure.

Patch

diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index c2c2911..611449c 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -160,8 +160,8 @@  static void dump_video_param(AVCodecContext *avctx, QSVEncContext *q,
 #endif
         ) {
         av_log(avctx, AV_LOG_VERBOSE,
-               "InitialDelayInKB: %"PRIu16"; TargetKbps: %"PRIu16"; MaxKbps: %"PRIu16"\n",
-               info->InitialDelayInKB, info->TargetKbps, info->MaxKbps);
+               "BufferSizeInKB: %"PRIu16"; InitialDelayInKB: %"PRIu16"; TargetKbps: %"PRIu16"; MaxKbps: %"PRIu16"\n",
+               info->BufferSizeInKB, info->InitialDelayInKB, info->TargetKbps, info->MaxKbps);
     } else if (info->RateControlMethod == MFX_RATECONTROL_CQP) {
         av_log(avctx, AV_LOG_VERBOSE, "QPI: %"PRIu16"; QPP: %"PRIu16"; QPB: %"PRIu16"\n",
                info->QPI, info->QPP, info->QPB);