[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
Wed Apr 10 14:44:33 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 fulinjie):

 Thanks Alexandr.
 FFmpeg allocates system memory as the original size(width, height) in
 try_decode_frame, and calls
 {{{
 if (avci->buffer_frame->buf[0]) {
     av_frame_move_ref(frame, avci->buffer_frame);
 }
 }}}
 in avcodec_receive_frame() to move the buffer_frame to use in hardware
 decode.

 I think this was caused by the improper alignment check in
 qsv_transfer_data_to().

 This patch is trying to fix this:
 https://patchwork.ffmpeg.org/patch/12684/

 But the psnr issue still exists after applying the patch according to CI
 report.
 https://github.com/intel-media-ci/ffmpeg/pull/35

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7830#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list