diff options
author | Linjie Fu <linjie.fu@intel.com> | 2019-05-30 20:34:31 -0400 |
---|---|---|
committer | Ruiling Song <ruiling.song@intel.com> | 2019-12-17 07:57:03 +0800 |
commit | efefba61f8513e9d909af041b17584fd82775c63 (patch) | |
tree | 78f67b1e49daaced24da7562aa27b301d19d47c4 /tests/ref/fate/filter-hqdn3d-sample | |
parent | 2e2dfe6673fa4a75f988cae5370e543357be7d99 (diff) | |
download | ffmpeg-efefba61f8513e9d909af041b17584fd82775c63.tar.gz |
lavc/vaapi_encode: grow packet if vaMapBuffer returns multiple buffers
Currently, assigning new buffer for pkt when multiple buffers were returned
from vaMapBuffer will overwrite the previous encoded pkt data and lead
to encode issues.
Iterate through the buf_list first to find out the total buffer size
needed for the pkt, allocate the whole pkt to avoid repeated reallocation
and memcpy, then copy data from each buf to pkt.
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Diffstat (limited to 'tests/ref/fate/filter-hqdn3d-sample')
0 files changed, 0 insertions, 0 deletions