[FFmpeg-trac] #9995(undetermined:new): AVSubtitle structure has rectangles outside screen

FFmpeg trac at avcodec.org
Fri Oct 28 11:14:59 EEST 2022


#9995: AVSubtitle structure has rectangles outside screen
-------------------------------------+-------------------------------------
             Reporter:  Peter        |                     Type:  defect
  Krefting                           |
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  dvdsub       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 With this packet captured off-air, avcodec_decode_subtitle2() generates an
 AVSubtitle structure with rectangles that are to be rendered outside the
 720x576 screen.

 How to reproduce:

  * open the file using `avformat_open_input()` and read a frame using
 `av_read_frame()`
  * Allocate an AVCodecContext for `AV_CODEC_ID_DVB_SUBTITLE` and pass the
 `AVPacket` to `avcodec_decode_subtitle2()`

 Expected result: All `AVSubtitleRect` structures in the decoded
 `AVSubtitle` structure should render inside the 720x576 screen.

 Actual result: One of the generated rectangles renders outside the screen.

 ffmpeg version 5.0.1 (9687cae2b468e09e35df4cea92cc2e6a0e6c93b3).
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9995>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list