#37 Diagnostics utility crashes for non-standard video dimension

closed-fixed
7
2006-06-13
2006-06-06
No

From Open Discussion Forum
---------------------------
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3755441
By: nobody

Hi,
I have problems running the diagnostic tool.
I do the following:

(1) bmptorgb some_sequence .bmp 5 1 10 >tmp.rgb
(2) rgbtoyuv420 <tmp.rgb >tmp.yuv 720 486 4
(3) encodedirac -width 720 -height 486 -cformat 3 tmp
some_output

This works well, and I can run the some_output.drc with
Windows Media Player.
Then:

(4) instrumentdirac -motion_colour -verbose some_output

Here is the output:
Frame 0
... blabla...

Frame 1
Array entry 1 is not allocated
Reading motion-compensated frame 3 data
Writing to array position 3
Reading motion-compensated frame 1 data
Writing to array position 1

Then it crashes, and stop in the debugger at
draw_overlay.cpp line 289

Can someone help?

Than you.
----------------

Discussion

  • Logged In: YES
    user_id=692051

    The problem occurs because we are going past the array
    boundaries for non-standard video dimensions. This problem
    will be fixed in the upcoming release.

     
    • assigned_to: nobody --> asuraparaju
    • status: open --> open-accepted
     
  • Logged In: YES
    user_id=692051

    Fixed in release 0.6.0.
    Modified files are:
    util/instrumentation/libdirac_instrument/sad.cpp
    util/instrumentation/libdirac_instrument/draw_overlay.cpp
    util/instrumentation/libdirac_instrument/motion_arrows.cpp

     
    • status: open-accepted --> closed-fixed