Skip to content

Commit

Permalink
preset: fix initialization of "QSV" dictionary
Browse files Browse the repository at this point in the history
hb_dict_set() takes ownership of the qsv dict that was just created. It
appears to make a copy and release what was passed in.  So re-get the
dictionary after setting it.
  • Loading branch information
jstebbins committed May 2, 2021
1 parent c0ae281 commit 3f5c71c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libhb/preset.c
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,7 @@ int hb_preset_apply_video(const hb_dict_t *preset, hb_dict_t *job_dict)
{
qsv = hb_dict_init();
hb_dict_set(video_dict, "QSV", qsv);
qsv = hb_dict_get(video_dict, "QSV");
}
if ((value = hb_dict_get(preset, "VideoQSVDecode")) != NULL)
{
Expand Down

0 comments on commit 3f5c71c

Please sign in to comment.