#10824: swscale self tests fail with assertion since recent changes
-------------------------------------+-------------------------------------
             Reporter:  Michael      |                    Owner:  (none)
  Niedermayer                        |
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  swscale
              Version:  git-master   |               Resolution:
             Keywords:  assert,      |               Blocked By:
  regression                         |
             Blocking:  7.0          |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Michael Niedermayer):

 Replying to [comment:10 Niklas Haas]:
 > Michael, the change in behavior is caused by "swscale: don't assign
 range converters for float" in isolation. That patch is orthogonal to the
 bug fix for this issue, which is in these patches:
 >
 >     swscale/utils: correctly return from sws_init_single_context
 > and
 >     swscale/utils: don't early return in yuv alpha blendaway
 >
 >
 > So we can merge those two to fix 7.0 without causing the change in
 behavior you observed.

 these 2 patches cause the code to segfault

 gray -> grayf32le
  gray 96x96 -> grayf32le  64x 64 flags= 1 CRC=78e674b6 SSD=    0,    0,
 0,    0
  gray 96x96 -> grayf32le  64x 96 flags= 1 CRC=e797f06f SSD=    0,    0,
 0,    0
  gray 96x96 -> grayf32le  64x128 flags= 1 CRC=02c0a369 SSD=    0,    0,
 0,    0
  gray 96x96 -> grayf32le  96x 64 flags= 1 CRC=de03cdea SSD=    0,    0,
 0,    0
  gray 96x96 -> grayf32le  96x 96 flags= 1
 Program received signal SIGSEGV, Segmentation fault.
 0x000055555556d3eb in ff_init_vscale_pfn (c=0x55555588e580,
 yuv2plane1=0x0, yuv2planeX=0x0, yuv2nv12cX=0x0, yuv2packed1=0x0,
 yuv2packed2=0x0, yuv2packedX=0x0, yuv2anyX=0x0, use_mmx=0) at
 libswscale/vscale.c:285
 285             lumCtx = c->desc[idx].instance;
 (gdb) bt
 #0  0x000055555556d3eb in ff_init_vscale_pfn (c=0x55555588e580,
 yuv2plane1=0x0, yuv2planeX=0x0, yuv2nv12cX=0x0, yuv2packed1=0x0,
 yuv2packed2=0x0, yuv2packedX=0x0, yuv2anyX=0x0, use_mmx=0) at
 libswscale/vscale.c:285
 #1  0x000055555555f5e6 in swscale (c=0x55555588e580, src=0x7fffffffdd00,
 srcStride=0x7fffffffdce0, srcSliceY=0, srcSliceH=96, dst=0x7fffffffdd20,
 dstStride=0x7fffffffdcf0, dstSliceY=0, dstSliceH=96) at
 libswscale/swscale.c:355
 #2  0x0000555555562332 in scale_internal (c=0x55555588e580,
 srcSlice=0x55555584e0e0 <src>, srcStride=0x55555584e0c0 <srcStride.5551>,
 srcSliceY=0, srcSliceH=96, dstSlice=0x7fffffffde20,
 dstStride=0x7fffffffde10, dstSliceY=0, dstSliceH=96) at
 libswscale/swscale.c:1046
 #3  0x0000555555562aca in sws_scale (c=0x55555588e580,
 srcSlice=0x55555584e0e0 <src>, srcStride=0x55555584e0c0 <srcStride.5551>,
 srcSliceY=0, srcSliceH=96, dst=0x7fffffffde20, dstStride=0x7fffffffde10)
 at libswscale/swscale.c:1213
 #4  0x000055555555cef9 in doTest.constprop.2 ()
 #5  0x000055555555db65 in main ()

 git log --oneline  -2
 75a1ccaaadf (HEAD) swscale/utils: don't early return in yuv alpha
 blendaway
 73a54cdb697 swscale/utils: correctly return from sws_init_single_context
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10824#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to