[FFmpeg-trac] #7830(avutil:new): Allocation size of input surface for qsv not takes into account alignment required by qsv
FFmpeg
trac at avcodec.org
Mon Apr 8 12:36:46 EEST 2019
#7830: Allocation size of input surface for qsv not takes into account alignment
required by qsv
-------------------------------------+-------------------------------------
Reporter: alexandr- | Owner:
konovalov |
Type: defect | Status: new
Priority: normal | Component: avutil
Version: git-master | Resolution:
Keywords: qsv | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by alexandr-konovalov):
System memory is allocated by `av_buffer_alloc()` (inside libavutil), size
is 115264 Bytes. Then this memory is send to MSDK to do copy from system
to video memory. This copy is done by CPU, i.e. it’s invisible to iHD
driver. And this is the place where access to unallocated memory occurred,
because height (and width) is the aligned value, as you correctly
mentioned, but allocation in `av_buffer_alloc()` was done without taking
this into account.
So, yes, the allocated surface is enough, but this is too late.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7830#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list