[FFmpeg-devel] [PATCH] doc/examples/qsv_transcode: Fix a bug when use more than one parameter set
Xiang, Haihao
haihao.xiang at intel.com
Thu Mar 16 05:57:49 EET 2023
On Do, 2023-03-02 at 10:54 +0800, wenbin.chen-at-intel.com at ffmpeg.org wrote:
> From: Wenbin Chen <wenbin.chen at intel.com>
>
> Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>
> ---
> doc/examples/qsv_transcode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c
> index 7ea3ef5674..48128b200c 100644
> --- a/doc/examples/qsv_transcode.c
> +++ b/doc/examples/qsv_transcode.c
> @@ -88,7 +88,7 @@ static int dynamic_set_parameter(AVCodecContext *avctx)
> if (current_setting_number < setting_number &&
> frame_number == dynamic_setting[current_setting_number].frame_number)
> {
> AVDictionaryEntry *e = NULL;
> - ret = str_to_dict(dynamic_setting[current_setting_number].optstr,
> &opts);
> + ret = str_to_dict(dynamic_setting[current_setting_number++].optstr,
> &opts);
> if (ret < 0) {
> fprintf(stderr, "The dynamic parameter is wrong\n");
> goto fail;
LGTM, will apply.
Thanks
Haihao
More information about the ffmpeg-devel
mailing list