mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/328/head
parent
2e2dfe6673
commit
efefba61f8
1 changed files with 13 additions and 5 deletions
Loading…
Reference in new issue