UPSTREAM: [Encode] Fix AVC unaligned padding issue

add fill_pad_with_value function for softlet path and legacy path of AVC
( cherry picked from commit 3fc582322c070d23509f00dd26426c852210d964 https://github.com/intel/media-driver )

BUG=b:274517984
TEST=See the description in the sighting

Change-Id: I2feb4217c1e64cac432e35cbe2f99bbb19cb1c22
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libva-intel-media-driver/+/5766997
Reviewed-by: Nathan Hebert <nhebert@chromium.org>
Commit-Queue: Gareth Yu <gareth.yu@gapps.intel.com>
Tested-by: Gareth Yu <gareth.yu@gapps.intel.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
12 files changed