Carl Eugen Hoyos <[email protected]> added the comment:

$ valgrind ffmpeg_g -i tpa-6-6ed943b7cbf246b6-9c63db66c417cee.tmp00000000%1d.bmp
out.mp4
FFmpeg version SVN-r25781, Copyright (c) 2000-2010 the FFmpeg developers
  built on Nov 21 2010 12:26:04 with gcc 4.4.5
  configuration: --cc='/usr/local/gcc-4.4.5/bin/gcc -m32'
--disable-optimizations --disable-asm
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.13. 0 /  0.13. 0
  libavcodec    52.97. 0 / 52.97. 0
  libavformat   52.85. 0 / 52.85. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.62. 0 /  1.62. 0
  libswscale     0.12. 0 /  0.12. 0
Input #0, image2, from 
'tpa-6-6ed943b7cbf246b6-9c63db66c417cee.tmp00000000%1d.bmp':
  Duration: 00:00:00.20, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: bmp, bgr24, 879x781, 25 fps, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x96abd20] w:879 h:781 pixfmt:bgr24
[ffsink @ 0x96ac0b0] auto-inserting filter 'auto-inserted scaler 0' between the
filter 'src' and the filter 'out'
[scale @ 0x96ac780] w:879 h:781 fmt:bgr24 -> w:879 h:781 fmt:yuv420p flags:0x4
Output #0, mp4, to 'out.mp4':
  Metadata:
    encoder         : Lavf52.85.0
    Stream #0.0: Video: mpeg4, yuv420p, 879x781, q=2-31, 200 kb/s, 25 tbn, 25 
tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
==14054== Invalid read of size 1
==14054==    at 0x842A61F: rgb24toyv12_C (rgb2rgb_template.c:2277)
==14054==    by 0x84193E8: bgr24ToYv12Wrapper (swscale.c:1616)
==14054==    by 0x841B0ED: sws_scale (swscale.c:1999)
==14054==    by 0x8065B84: draw_slice (vf_scale.c:187)
==14054==    by 0x805F4C9: avfilter_draw_slice (avfilter.c:402)
==14054==    by 0x8067E15: request_frame (vsrc_buffer.c:134)
==14054==    by 0x805F047: avfilter_request_frame (avfilter.c:293)
==14054==    by 0x805F069: avfilter_request_frame (avfilter.c:295)
==14054==    by 0x805A3BB: get_filtered_video_frame (cmdutils.c:826)
==14054==    by 0x804FB1E: output_packet (ffmpeg.c:1626)
==14054==    by 0x8053B5C: transcode (ffmpeg.c:2617)
==14054==    by 0x8058040: main (ffmpeg.c:4306)
==14054==  Address 0xa0a6680 is 0 bytes after a block of size 2,061,856 alloc'd
==14054==    at 0x4CACE9E: memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==14054==    by 0x4CACEFB: posix_memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==14054==    by 0x843367A: av_malloc (mem.c:83)
==14054==    by 0x8060444: avfilter_default_get_video_buffer (defaults.c:64)
==14054==    by 0x805EF03: avfilter_get_video_buffer (avfilter.c:260)
==14054==    by 0x8067D2B: request_frame (vsrc_buffer.c:121)
==14054==    by 0x805F047: avfilter_request_frame (avfilter.c:293)
==14054==    by 0x805F069: avfilter_request_frame (avfilter.c:295)
==14054==    by 0x805A3BB: get_filtered_video_frame (cmdutils.c:826)
==14054==    by 0x804FB1E: output_packet (ffmpeg.c:1626)
==14054==    by 0x8053B5C: transcode (ffmpeg.c:2617)
==14054==    by 0x8058040: main (ffmpeg.c:4306)
==14054==
==14054== Invalid read of size 1
==14054==    at 0x842A639: rgb24toyv12_C (rgb2rgb_template.c:2278)
==14054==    by 0x84193E8: bgr24ToYv12Wrapper (swscale.c:1616)
==14054==    by 0x841B0ED: sws_scale (swscale.c:1999)
==14054==    by 0x8065B84: draw_slice (vf_scale.c:187)
==14054==    by 0x805F4C9: avfilter_draw_slice (avfilter.c:402)
==14054==    by 0x8067E15: request_frame (vsrc_buffer.c:134)
==14054==    by 0x805F047: avfilter_request_frame (avfilter.c:293)
==14054==    by 0x805F069: avfilter_request_frame (avfilter.c:295)
==14054==    by 0x805A3BB: get_filtered_video_frame (cmdutils.c:826)
==14054==    by 0x804FB1E: output_packet (ffmpeg.c:1626)
==14054==    by 0x8053B5C: transcode (ffmpeg.c:2617)
==14054==    by 0x8058040: main (ffmpeg.c:4306)
==14054==  Address 0xa0a6681 is 1 bytes after a block of size 2,061,856 alloc'd
==14054==    at 0x4CACE9E: memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==14054==    by 0x4CACEFB: posix_memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==14054==    by 0x843367A: av_malloc (mem.c:83)
==14054==    by 0x8060444: avfilter_default_get_video_buffer (defaults.c:64)
==14054==    by 0x805EF03: avfilter_get_video_buffer (avfilter.c:260)
==14054==    by 0x8067D2B: request_frame (vsrc_buffer.c:121)
==14054==    by 0x805F047: avfilter_request_frame (avfilter.c:293)
==14054==    by 0x805F069: avfilter_request_frame (avfilter.c:295)
==14054==    by 0x805A3BB: get_filtered_video_frame (cmdutils.c:826)
==14054==    by 0x804FB1E: output_packet (ffmpeg.c:1626)
==14054==    by 0x8053B5C: transcode (ffmpeg.c:2617)
==14054==    by 0x8058040: main (ffmpeg.c:4306)
==14054==
==14054== Invalid read of size 1
==14054==    at 0x842A572: rgb24toyv12_C (rgb2rgb_template.c:2268)
==14054==    by 0x84193E8: bgr24ToYv12Wrapper (swscale.c:1616)
==14054==    by 0x841B0ED: sws_scale (swscale.c:1999)
==14054==    by 0x8065B84: draw_slice (vf_scale.c:187)
==14054==    by 0x805F4C9: avfilter_draw_slice (avfilter.c:402)
==14054==    by 0x8067E15: request_frame (vsrc_buffer.c:134)
==14054==    by 0x805F047: avfilter_request_frame (avfilter.c:293)
==14054==    by 0x805F069: avfilter_request_frame (avfilter.c:295)
==14054==    by 0x805A3BB: get_filtered_video_frame (cmdutils.c:826)
==14054==    by 0x804FB1E: output_packet (ffmpeg.c:1626)
==14054==    by 0x8053B5C: transcode (ffmpeg.c:2617)
==14054==    by 0x8058040: main (ffmpeg.c:4306)
==14054==  Address 0xa0a6682 is 2 bytes after a block of size 2,061,856 alloc'd
==14054==    at 0x4CACE9E: memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==14054==    by 0x4CACEFB: posix_memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==14054==    by 0x843367A: av_malloc (mem.c:83)
==14054==    by 0x8060444: avfilter_default_get_video_buffer (defaults.c:64)
==14054==    by 0x805EF03: avfilter_get_video_buffer (avfilter.c:260)
==14054==    by 0x8067D2B: request_frame (vsrc_buffer.c:121)
==14054==    by 0x805F047: avfilter_request_frame (avfilter.c:293)
==14054==    by 0x805F069: avfilter_request_frame (avfilter.c:295)
==14054==    by 0x805A3BB: get_filtered_video_frame (cmdutils.c:826)
==14054==    by 0x804FB1E: output_packet (ffmpeg.c:1626)
==14054==    by 0x8053B5C: transcode (ffmpeg.c:2617)
==14054==    by 0x8058040: main (ffmpeg.c:4306)

----------
priority: normal -> important
substatus: needs_more_info -> open

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2366>
________________________________________________

Reply via email to