Skip to content

Commit

Permalink
Keep the right slice number for bitstream buffer.
Browse files Browse the repository at this point in the history
When destroy bitstream buffer, it should decrease
bufMgr->dwNumSliceData.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
Signed-off-by: XinfengZhang <carl.zhang@intel.com>
  • Loading branch information
wangyan42164 authored and intel-mediadev committed Mar 22, 2019
1 parent 1fa89df commit 91e6176
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions media_driver/linux/common/ddi/media_libva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ static bool DdiMedia_ReleaseBsBuffer(
}
return false;
}
else
{
if (bufMgr->dwNumSliceData)
bufMgr->dwNumSliceData--;
}
return true;
}

Expand Down

0 comments on commit 91e6176

Please sign in to comment.