[FFmpeg-trac] #2981(FFplay:open): ffplay cannot show 1pixel wide images

FFmpeg trac at avcodec.org
Sun Sep 22 00:48:21 CEST 2013


#2981: ffplay cannot show 1pixel wide images
------------------------------------+----------------------------------
             Reporter:  cyril       |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  minor       |                Component:  FFplay
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+----------------------------------

Comment (by cyril):

 I have an application reading videos and pictures using FFmpeg. FFmpeg is
 compiled as dll using MSYS_MinGW and my app is compiled with VC++ 2010.

 After calling av_read_frame() and avcodec_decode_video2() on the source
 file, I call sws_getCachedContext() and sws_scale() with target format
 being PIX_FMT_BGRA.

 The destination buffer is only filled with data by sws_scale() and is then
 used as read only. It's allocated with avpicture_alloc() and at the end
 freed with avpicture_free().

 In debug mode, if I call avpicture_free() on the destination buffer at
 anytime after sws_scale() (even just after the call), I get these errors:

 {{{
 Heap block at 000000000046FE60 modified at 000000000046FF88 past requested
 size of 118
 }}}
 {{{
 Invalid address specified to RtlFreeHeap( 0000000000460000,
 000000000046FE70 )
 }}}

 This error only happens with this jpeg file, everything is fine with wider
 jpeg or other video files.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2981#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list