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

I am unable to reproduce the segfault with current svn, but valgrind reports
many problems:

$ valgrind ./ffmpeg_g -i lol-mpeg2.mp4 -f null /dev/null
==24178== Memcheck, a memory error detector
==24178== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==24178== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==24178== Command: ./ffmpeg_g -i lol-mpeg2.mp4 -f null /dev/null
==24178==
FFmpeg version SVN-r26041, Copyright (c) 2000-2010 the FFmpeg developers
  built on Dec 17 2010 12:51:10 with gcc 4.4.5
  configuration: --cc='/usr/local/gcc-4.4.5/bin/gcc -m32' --disable-asm
--disable-optimizations
  libavutil     50.34. 0 / 50.34. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.99. 1 / 52.99. 1
  libavformat   52.88. 0 / 52.88. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.69. 0 /  1.69. 0
  libswscale     0.12. 0 /  0.12. 0
[mpeg2video @ 0x4fe3fc0] slice below image (41 >= 36)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'lol-mpeg2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.61.0
  Duration: 00:00:29.32, start: 0.000000, bitrate: 6391 kb/s
    Stream #0.0(und): Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
8000 kb/s, 24.52 fps, 25 tbr, 50 tbn, 50 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
[buffer @ 0x5072010] w:720 h:576 pixfmt:yuv420p
Output #0, null, to '/dev/null':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.88.0
    Stream #0.0(und): Video: rawvideo, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
[mpeg2video @ 0x4fe3fc0] slice below image (41 >= 36)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] first mb_incr damaged
[mpeg2video @ 0x4fe3fc0] slice below image (99 >= 36)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] Warning MVs not available
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
[mpeg2video @ 0x4fe3fc0] slice below image (57 >= 36)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
frame=    0 fps=  0 q=0.0 size=      -0kB time=10000000000.00 bitrate=  
-0.0kbits/s
    Last message repeated 12 times
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
frame=    0 fps=  0 q=0.0 size=      -0kB time=10000000000.00 bitrate=  
-0.0kbits/s
    Last message repeated 3 times
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 1 32
[mpeg2video @ 0x4fe3fc0] invalid mb type in P Frame at 5 5
[mpeg2video @ 0x4fe3fc0] invalid mb type in P Frame at 27 6
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 0 8
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 22 10
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 3 14
[mpeg2video @ 0x4fe3fc0] invalid cbp at 15 15
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 32 0
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 4 18
[mpeg2video @ 0x4fe3fc0] invalid cbp at 2 22
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] invalid cbp at 11 26
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 39 27
[mpeg2video @ 0x4fe3fc0] invalid mb type in P Frame at 33 33
[mpeg2video @ 0x4fe3fc0] invalid mb type in P Frame at 38 33
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 4 34
[mpeg2video @ 0x4fe3fc0] Warning MVs not available
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
frame=   16 fps=  3 q=0.0 size=      -0kB time=0.64 bitrate=  -0.3kbits/s dup=15
drop=0
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 0 0
[mpeg2video @ 0x4fe3fc0] qscale == 0
[mpeg2video @ 0x4fe3fc0] invalid cbp at 2 5
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 3 10
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 30 14
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 31 15
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 4 30
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] slice below image (48 >= 36)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] Warning MVs not available
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
[mpeg2video @ 0x4fe3fc0] Missing picture start code
    Last message repeated 20 times
[mpeg2video @ 0x4fe3fc0] slice below image (160 >= 36)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] skipped MB in I frame at 1 5
[mpeg2video @ 0x4fe3fc0] invalid mb type in I Frame at 1 7
[mpeg2video @ 0x4fe3fc0] slice below image (136 >= 36)
Error while decoding stream #0.0
mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
[mpeg2video @ 0x4fe3fc0] invalid cbp at 21 3
[mpeg2video @ 0x4fe3fc0] invalid mb type in P Frame at 38 13
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 9 11
[mpeg2video @ 0x4fe3fc0] slice below image (75 >= 36)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
frame=   34 fps=  6 q=0.0 size=      -0kB time=1.36 bitrate=  -0.1kbits/s dup=29
drop=0
    Last message repeated 3 times
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
    Last message repeated 1 times
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] concealing 1620 DC, 1620 AC, 1620 MV errors
[mpeg2video @ 0x4fe3fc0] slice below image (71 >= 36)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] intra matrix invalid, ignoring
[mpeg2video @ 0x4fe3fc0] matrix damaged
[mpeg2video @ 0x4fe3fc0] sequence header damaged
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
    Last message repeated 1 times
[mpeg2video @ 0x4fe3fc0] warning: first frame is no keyframe
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 1 7
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 22 11
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 6 15
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] invalid cbp at 7 25
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 10 29
==24178== Invalid read of size 4
==24178==    at 0x815E0B0: put_pixels8_c (dsputil.c:1175)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==    by 0x804F664: output_packet (ffmpeg.c:1547)
==24178==  Address 0x9cccf40 is not stack'd, malloc'd or (recently) free'd
==24178==
==24178== Invalid read of size 4
==24178==    at 0x815E0C0: put_pixels8_c (dsputil.c:1175)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==    by 0x804F664: output_packet (ffmpeg.c:1547)
==24178==  Address 0x9cccf44 is not stack'd, malloc'd or (recently) free'd
==24178==
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 7 31
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 2 35
[mpeg2video @ 0x4fe3fc0] slice below image (39 >= 38)
Error while decoding stream #0.0
frame=   39 fps=  7 q=0.0 size=      -0kB time=1.56 bitrate=  -0.1kbits/s dup=29
drop=0
[mpeg2video @ 0x4fe3fc0] warning: first frame is no keyframe
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 4 11
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 5 27
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 11 35
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] slice below image (39 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] warning: first frame is no keyframe
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 1 1
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 0 19
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 7 25
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 0 13
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 9 19
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 6 23
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 2 25
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 5 15
[mpeg2video @ 0x4fe3fc0] invalid cbp at 1 29
[mpeg2video @ 0x4fe3fc0] slice below image (45 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] Missing picture start code
    Last message repeated 9 times
[mpeg2video @ 0x4fe3fc0] slice below image (287 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] warning: first frame is no keyframe
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 0 3
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 9 5
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 1 3
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 3 21
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 36 23
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 15 29
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 6 31
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 1 33
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 2 37
[mpeg2video @ 0x4fe3fc0] slice below image (49 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] warning: first frame is no keyframe
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 1 7
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 1 9
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 6 15
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 6 15
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 26 23
==24178== Invalid read of size 4
==24178==    at 0x815E1B3: put_pixels8_l2 (dsputil.c:1175)
==24178==    by 0x815E51C: put_pixels8_y2_c (dsputil.c:1175)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==  Address 0x9ccc117 is 4,151 bytes inside a block of size 13,360 free'd
==24178==    at 0x4CAD8A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==24178==    by 0x843C8EF: av_free (mem.c:146)
==24178==    by 0x8139230: av_destruct_packet (avpacket.c:33)
==24178==    by 0x8139581: av_free_packet (avpacket.c:114)
==24178==    by 0x8053E00: transcode (ffmpeg.c:2660)
==24178==    by 0x805833E: main (ffmpeg.c:4358)
==24178==
==24178== Invalid read of size 4
==24178==    at 0x815E1C5: put_pixels8_l2 (dsputil.c:1175)
==24178==    by 0x815E51C: put_pixels8_y2_c (dsputil.c:1175)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==  Address 0x9ccc407 is 4,903 bytes inside a block of size 13,360 free'd
==24178==    at 0x4CAD8A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==24178==    by 0x843C8EF: av_free (mem.c:146)
==24178==    by 0x8139230: av_destruct_packet (avpacket.c:33)
==24178==    by 0x8139581: av_free_packet (avpacket.c:114)
==24178==    by 0x8053E00: transcode (ffmpeg.c:2660)
==24178==    by 0x805833E: main (ffmpeg.c:4358)
==24178==
==24178== Invalid read of size 4
==24178==    at 0x815E1F8: put_pixels8_l2 (dsputil.c:1175)
==24178==    by 0x815E51C: put_pixels8_y2_c (dsputil.c:1175)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==  Address 0x9ccc11b is 4,155 bytes inside a block of size 13,360 free'd
==24178==    at 0x4CAD8A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==24178==    by 0x843C8EF: av_free (mem.c:146)
==24178==    by 0x8139230: av_destruct_packet (avpacket.c:33)
==24178==    by 0x8139581: av_free_packet (avpacket.c:114)
==24178==    by 0x8053E00: transcode (ffmpeg.c:2660)
==24178==    by 0x805833E: main (ffmpeg.c:4358)
==24178==
==24178== Invalid read of size 4
==24178==    at 0x815E20A: put_pixels8_l2 (dsputil.c:1175)
==24178==    by 0x815E51C: put_pixels8_y2_c (dsputil.c:1175)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==  Address 0x9ccc40b is 4,907 bytes inside a block of size 13,360 free'd
==24178==    at 0x4CAD8A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==24178==    by 0x843C8EF: av_free (mem.c:146)
==24178==    by 0x8139230: av_destruct_packet (avpacket.c:33)
==24178==    by 0x8139581: av_free_packet (avpacket.c:114)
==24178==    by 0x8053E00: transcode (ffmpeg.c:2660)
==24178==    by 0x805833E: main (ffmpeg.c:4358)
==24178==
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 32 29
[mpeg2video @ 0x4fe3fc0] slice mismatch
==24178== Invalid read of size 4
==24178==    at 0x815D015: avg_pixels8_l2 (dsputil.c:1174)
==24178==    by 0x815D2EE: avg_pixels8_x2_c (dsputil.c:1174)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==  Address 0x9ccb1fa is 282 bytes inside a block of size 13,360 free'd
==24178==    at 0x4CAD8A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==24178==    by 0x843C8EF: av_free (mem.c:146)
==24178==    by 0x8139230: av_destruct_packet (avpacket.c:33)
==24178==    by 0x8139581: av_free_packet (avpacket.c:114)
==24178==    by 0x8053E00: transcode (ffmpeg.c:2660)
==24178==    by 0x805833E: main (ffmpeg.c:4358)
==24178==
==24178== Invalid read of size 4
==24178==    at 0x815D027: avg_pixels8_l2 (dsputil.c:1174)
==24178==    by 0x815D2EE: avg_pixels8_x2_c (dsputil.c:1174)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==  Address 0x9ccb1fb is 283 bytes inside a block of size 13,360 free'd
==24178==    at 0x4CAD8A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==24178==    by 0x843C8EF: av_free (mem.c:146)
==24178==    by 0x8139230: av_destruct_packet (avpacket.c:33)
==24178==    by 0x8139581: av_free_packet (avpacket.c:114)
==24178==    by 0x8053E00: transcode (ffmpeg.c:2660)
==24178==    by 0x805833E: main (ffmpeg.c:4358)
==24178==
==24178== Invalid read of size 4
==24178==    at 0x815D075: avg_pixels8_l2 (dsputil.c:1174)
==24178==    by 0x815D2EE: avg_pixels8_x2_c (dsputil.c:1174)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==  Address 0x9ccb1fe is 286 bytes inside a block of size 13,360 free'd
==24178==    at 0x4CAD8A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==24178==    by 0x843C8EF: av_free (mem.c:146)
==24178==    by 0x8139230: av_destruct_packet (avpacket.c:33)
==24178==    by 0x8139581: av_free_packet (avpacket.c:114)
==24178==    by 0x8053E00: transcode (ffmpeg.c:2660)
==24178==    by 0x805833E: main (ffmpeg.c:4358)
==24178==
==24178== Invalid read of size 4
==24178==    at 0x815D087: avg_pixels8_l2 (dsputil.c:1174)
==24178==    by 0x815D2EE: avg_pixels8_x2_c (dsputil.c:1174)
==24178==    by 0x8287992: mpeg_motion_internal (mpegvideo_common.h:359)
==24178==    by 0x8287A30: mpeg_motion (mpegvideo_common.h:377)
==24178==    by 0x828AA7F: MPV_motion_internal (mpegvideo_common.h:842)
==24178==    by 0x828AD1D: MPV_motion (mpegvideo_common.h:894)
==24178==    by 0x82922FE: MPV_decode_mb_internal (mpegvideo.c:1955)
==24178==    by 0x8292FD9: MPV_decode_mb (mpegvideo.c:2084)
==24178==    by 0x825D878: mpeg_decode_slice (mpeg12.c:1795)
==24178==    by 0x825F643: decode_chunks (mpeg12.c:2470)
==24178==    by 0x825ED4E: mpeg_decode_frame (mpeg12.c:2272)
==24178==    by 0x8330C01: avcodec_decode_video2 (utils.c:626)
==24178==  Address 0x9ccb1ff is 287 bytes inside a block of size 13,360 free'd
==24178==    at 0x4CAD8A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==24178==    by 0x843C8EF: av_free (mem.c:146)
==24178==    by 0x8139230: av_destruct_packet (avpacket.c:33)
==24178==    by 0x8139581: av_free_packet (avpacket.c:114)
==24178==    by 0x8053E00: transcode (ffmpeg.c:2660)
==24178==    by 0x805833E: main (ffmpeg.c:4358)
==24178==
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 15 33
[mpeg2video @ 0x4fe3fc0] slice below image (41 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] warning: first frame is no keyframe
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] slice below image (131 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] Missing picture start code
    Last message repeated 2 times
[mpeg2video @ 0x4fe3fc0] slice below image (121 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] warning: first frame is no keyframe
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 1 27
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 1 33
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 4 35
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 10 5
[mpeg2video @ 0x4fe3fc0] slice below image (39 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] picture_structure 2 invalid, ignoring
[mpeg2video @ 0x4fe3fc0] warning: first frame is no keyframe
[mpeg2video @ 0x4fe3fc0] slice mismatch
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 5 6
[mpeg2video @ 0x4fe3fc0] ac-tex damaged at 20 7
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 3 10
[mpeg2video @ 0x4fe3fc0] qscale == 0
[mpeg2video @ 0x4fe3fc0] mb incr damaged
[mpeg2video @ 0x4fe3fc0] qscale == 0
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 21 16
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 7 18
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 20 19
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 8 16
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 6 25
[mpeg2video @ 0x4fe3fc0] 00 motion_type at 11 27
[mpeg2video @ 0x4fe3fc0] invalid mb type in B Frame at 17 28
[mpeg2video @ 0x4fe3fc0] slice below image (62 >= 38)
Error while decoding stream #0.0
[mpeg2video @ 0x4fe3fc0] ignoring pic cod ext after 0
[mpeg2video @ 0x4fe3fc0] Warning MVs not available
[mpeg2video @ 0x4fe3fc0] concealing 1710 DC, 1710 AC, 1710 MV errors
Input Stream #0.0 frame size changed to 720x608, yuv420p
==24178==
==24178== HEAP SUMMARY:
==24178==     in use at exit: 5,667,912 bytes in 63 blocks
==24178==   total heap usage: 438 allocs, 375 frees, 15,515,386 bytes allocated
==24178==
==24178== LEAK SUMMARY:
==24178==    definitely lost: 12,784 bytes in 3 blocks
==24178==    indirectly lost: 856,760 bytes in 19 blocks
==24178==      possibly lost: 892,408 bytes in 8 blocks
==24178==    still reachable: 3,905,960 bytes in 33 blocks
==24178==         suppressed: 0 bytes in 0 blocks
==24178== Rerun with --leak-check=full to see details of leaked memory
==24178==
==24178== For counts of detected and suppressed errors, rerun with: -v
==24178== ERROR SUMMARY: 164 errors from 10 contexts (suppressed: 3 from 3)

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

Reply via email to