summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authormaximd33 <[email protected]>2017-03-15 00:22:31 +0100
committerBradley Sepos <[email protected]>2017-03-14 19:22:31 -0400
commit3354623c7f59e95b88d769b9e62fff28ff857b9a (patch)
tree525b838745955ec2a924f822eabf5e9e935d2375 /libhb
parentb9c8213164cb018bd3abab41d3f424e8c444d68e (diff)
qsv: fixing variable re-use (#627)
Closes #625.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/qsv_filter.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libhb/qsv_filter.c b/libhb/qsv_filter.c
index 9ff4aa27c..2e61c5f45 100644
--- a/libhb/qsv_filter.c
+++ b/libhb/qsv_filter.c
@@ -408,6 +408,7 @@ static hb_filter_info_t * hb_qsv_filter_info( hb_filter_object_t * filter )
void qsv_filter_close( hb_qsv_context* qsv, HB_QSV_STAGE_TYPE vpp_type ){
int i = 0;
+ int x = 0;
hb_qsv_space* vpp_space = 0;
if(qsv && qsv->is_context_active && qsv->vpp_space)
@@ -418,8 +419,8 @@ void qsv_filter_close( hb_qsv_context* qsv, HB_QSV_STAGE_TYPE vpp_type ){
hb_log( "qsv_filter[%s] done: max_surfaces: %u/%u , max_syncs: %u/%u", ((vpp_type == HB_QSV_VPP_DEFAULT)?"Default": "User") ,vpp_space->surface_num_max_used, vpp_space->surface_num, vpp_space->sync_num_max_used, vpp_space->sync_num );
- for (i = 0; i < vpp_space->surface_num; i++){
- av_freep(&vpp_space->p_surfaces[i]);
+ for (x = 0; x < vpp_space->surface_num; x++){
+ av_freep(&vpp_space->p_surfaces[x]);
}
vpp_space->surface_num = 0;
@@ -427,9 +428,9 @@ void qsv_filter_close( hb_qsv_context* qsv, HB_QSV_STAGE_TYPE vpp_type ){
av_freep(&vpp_space->p_ext_params);
vpp_space->p_ext_param_num = 0;
- for (i = 0; i < vpp_space->sync_num; i++){
- av_freep(&vpp_space->p_syncp[i]->p_sync);
- av_freep(&vpp_space->p_syncp[i]);
+ for (x = 0; x < vpp_space->sync_num; x++){
+ av_freep(&vpp_space->p_syncp[x]->p_sync);
+ av_freep(&vpp_space->p_syncp[x]);
}
vpp_space->sync_num = 0;