Vitor <[email protected]> added the comment:
Can't reproduce the crash, but have valgrind errors. Also ffplay output is
completely wrong for me too.
Valgrind output:
vi...@vitor-laptop:~/ffmpeg$ valgrind ./ffmpeg_g -lowres 1 -i
/tmp/mpeg1_lowres_bug.mpg -f framecrc -
==28826== Memcheck, a memory error detector
==28826== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==28826== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright
info
==28826== Command: ./ffmpeg_g -lowres 1 -i /tmp/mpeg1_lowres_bug.mpg -f
framecrc -
==28826==
FFmpeg version SVN-r20677, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Dec 1 2009 01:07:43 with gcc 4.4.1
configuration: --cc='ccache gcc' --cpu=host --disable-optimizations
libavutil 50. 5. 1 / 50. 5. 1
libavcodec 52.42. 0 / 52.42. 0
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 2 / 0. 7. 2
[mpeg @ 0x446a980]max_analyze_duration reached
Input #0, mpeg, from '/tmp/mpeg1_lowres_bug.mpg':
Duration: 00:00:09.90, start: 0.220000, bitrate: 1257 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 314x232 [PAR 178:163 DAR
13973:9454], 900 kb/s, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, 2 channels, s16, 224 kb/s
Output #0, framecrc, to 'pipe:':
Stream #0.0: Video: rawvideo, yuv420p, 314x232 [PAR 178:163 DAR 13973:9454],
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
==28826== Invalid read of size 1
==28826== at 0x4026180: memcpy (mc_replace_strmem.c:482)
==28826== by 0x80FCD7B: avpicture_layout (imgconvert.c:786)
==28826== by 0x8262AE6: raw_encode (rawenc.c:44)
==28826== by 0x8103292: avcodec_encode_video (utils.c:532)
==28826== by 0x804EBF1: do_video_out (ffmpeg.c:1044)
==28826== by 0x805058E: output_packet (ffmpeg.c:1421)
==28826== by 0x8053CF6: av_encode (ffmpeg.c:2283)
==28826== by 0x8058171: main (ffmpeg.c:3983)
==28826== Address 0x478e180 is 0 bytes after a block of size 20,496 alloc'd
==28826== at 0x4023E2E: memalign (vg_replace_malloc.c:532)
==28826== by 0x4023E8B: posix_memalign (vg_replace_malloc.c:660)
==28826== by 0x83E0926: av_malloc (mem.c:66)
==28826== by 0x81028DD: avcodec_default_get_buffer (utils.c:295)
==28826== by 0x813C6F0: alloc_frame_buffer (mpegvideo.c:195)
==28826== by 0x813C8CD: ff_alloc_picture (mpegvideo.c:237)
==28826== by 0x813F9A4: MPV_frame_start (mpegvideo.c:923)
==28826== by 0x819D81F: mpeg_field_start (mpeg12.c:1608)
==28826== by 0x819FDB6: decode_chunks (mpeg12.c:2431)
==28826== by 0x819F6AA: mpeg_decode_frame (mpeg12.c:2262)
==28826== by 0x8103445: avcodec_decode_video2 (utils.c:582)
==28826== by 0x8050012: output_packet (ffmpeg.c:1322)
==28826==
==28826== Invalid read of size 1
==28826== at 0x4026187: memcpy (mc_replace_strmem.c:482)
==28826== by 0x80FCD7B: avpicture_layout (imgconvert.c:786)
==28826== by 0x8262AE6: raw_encode (rawenc.c:44)
==28826== by 0x8103292: avcodec_encode_video (utils.c:532)
==28826== by 0x804EBF1: do_video_out (ffmpeg.c:1044)
==28826== by 0x805058E: output_packet (ffmpeg.c:1421)
==28826== by 0x8053CF6: av_encode (ffmpeg.c:2283)
==28826== by 0x8058171: main (ffmpeg.c:3983)
==28826== Address 0x478e181 is 1 bytes after a block of size 20,496 alloc'd
==28826== at 0x4023E2E: memalign (vg_replace_malloc.c:532)
==28826== by 0x4023E8B: posix_memalign (vg_replace_malloc.c:660)
==28826== by 0x83E0926: av_malloc (mem.c:66)
==28826== by 0x81028DD: avcodec_default_get_buffer (utils.c:295)
==28826== by 0x813C6F0: alloc_frame_buffer (mpegvideo.c:195)
==28826== by 0x813C8CD: ff_alloc_picture (mpegvideo.c:237)
==28826== by 0x813F9A4: MPV_frame_start (mpegvideo.c:923)
==28826== by 0x819D81F: mpeg_field_start (mpeg12.c:1608)
==28826== by 0x819FDB6: decode_chunks (mpeg12.c:2431)
==28826== by 0x819F6AA: mpeg_decode_frame (mpeg12.c:2262)
==28826== by 0x8103445: avcodec_decode_video2 (utils.c:582)
==28826== by 0x8050012: output_packet (ffmpeg.c:1322)
==28826==
==28826== Invalid read of size 1
==28826== at 0x4026190: memcpy (mc_replace_strmem.c:482)
==28826== by 0x80FCD7B: avpicture_layout (imgconvert.c:786)
==28826== by 0x8262AE6: raw_encode (rawenc.c:44)
==28826== by 0x8103292: avcodec_encode_video (utils.c:532)
==28826== by 0x804EBF1: do_video_out (ffmpeg.c:1044)
==28826== by 0x805058E: output_packet (ffmpeg.c:1421)
==28826== by 0x8053CF6: av_encode (ffmpeg.c:2283)
==28826== by 0x8058171: main (ffmpeg.c:3983)
==28826== Address 0x478e182 is 2 bytes after a block of size 20,496 alloc'd
==28826== at 0x4023E2E: memalign (vg_replace_malloc.c:532)
==28826== by 0x4023E8B: posix_memalign (vg_replace_malloc.c:660)
==28826== by 0x83E0926: av_malloc (mem.c:66)
==28826== by 0x81028DD: avcodec_default_get_buffer (utils.c:295)
==28826== by 0x813C6F0: alloc_frame_buffer (mpegvideo.c:195)
==28826== by 0x813C8CD: ff_alloc_picture (mpegvideo.c:237)
==28826== by 0x813F9A4: MPV_frame_start (mpegvideo.c:923)
==28826== by 0x819D81F: mpeg_field_start (mpeg12.c:1608)
==28826== by 0x819FDB6: decode_chunks (mpeg12.c:2431)
==28826== by 0x819F6AA: mpeg_decode_frame (mpeg12.c:2262)
==28826== by 0x8103445: avcodec_decode_video2 (utils.c:582)
==28826== by 0x8050012: output_packet (ffmpeg.c:1322)
==28826==
==28826== Invalid read of size 1
==28826== at 0x4026199: memcpy (mc_replace_strmem.c:482)
==28826== by 0x80FCD7B: avpicture_layout (imgconvert.c:786)
==28826== by 0x8262AE6: raw_encode (rawenc.c:44)
==28826== by 0x8103292: avcodec_encode_video (utils.c:532)
==28826== by 0x804EBF1: do_video_out (ffmpeg.c:1044)
==28826== by 0x805058E: output_packet (ffmpeg.c:1421)
==28826== by 0x8053CF6: av_encode (ffmpeg.c:2283)
==28826== by 0x8058171: main (ffmpeg.c:3983)
==28826== Address 0x478e183 is 3 bytes after a block of size 20,496 alloc'd
==28826== at 0x4023E2E: memalign (vg_replace_malloc.c:532)
==28826== by 0x4023E8B: posix_memalign (vg_replace_malloc.c:660)
==28826== by 0x83E0926: av_malloc (mem.c:66)
==28826== by 0x81028DD: avcodec_default_get_buffer (utils.c:295)
==28826== by 0x813C6F0: alloc_frame_buffer (mpegvideo.c:195)
==28826== by 0x813C8CD: ff_alloc_picture (mpegvideo.c:237)
==28826== by 0x813F9A4: MPV_frame_start (mpegvideo.c:923)
==28826== by 0x819D81F: mpeg_field_start (mpeg12.c:1608)
==28826== by 0x819FDB6: decode_chunks (mpeg12.c:2431)
==28826== by 0x819F6AA: mpeg_decode_frame (mpeg12.c:2262)
==28826== by 0x8103445: avcodec_decode_video2 (utils.c:582)
==28826== by 0x8050012: output_packet (ffmpeg.c:1322)
==28826==
==28826== Invalid read of size 1
==28826== at 0x40261D0: memcpy (mc_replace_strmem.c:482)
==28826== by 0x80FCD7B: avpicture_layout (imgconvert.c:786)
==28826== by 0x8262AE6: raw_encode (rawenc.c:44)
==28826== by 0x8103292: avcodec_encode_video (utils.c:532)
==28826== by 0x804EBF1: do_video_out (ffmpeg.c:1044)
==28826== by 0x805058E: output_packet (ffmpeg.c:1421)
==28826== by 0x8053CF6: av_encode (ffmpeg.c:2283)
==28826== by 0x8058171: main (ffmpeg.c:3983)
==28826== Address 0x478f608 is 8 bytes after a block of size 5,136 alloc'd
==28826== at 0x4023E2E: memalign (vg_replace_malloc.c:532)
==28826== by 0x4023E8B: posix_memalign (vg_replace_malloc.c:660)
==28826== by 0x83E0926: av_malloc (mem.c:66)
==28826== by 0x81028DD: avcodec_default_get_buffer (utils.c:295)
==28826== by 0x813C6F0: alloc_frame_buffer (mpegvideo.c:195)
==28826== by 0x813C8CD: ff_alloc_picture (mpegvideo.c:237)
==28826== by 0x813F9A4: MPV_frame_start (mpegvideo.c:923)
==28826== by 0x819D81F: mpeg_field_start (mpeg12.c:1608)
==28826== by 0x819FDB6: decode_chunks (mpeg12.c:2431)
==28826== by 0x819F6AA: mpeg_decode_frame (mpeg12.c:2262)
==28826== by 0x8103445: avcodec_decode_video2 (utils.c:582)
==28826== by 0x8050012: output_packet (ffmpeg.c:1322)
==28826==
1, 0, 4608, 0x52e51cec
==28826== Conditional jump or move depends on uninitialised value(s)
==28826== at 0x83DBB7A: av_adler32_update (adler32.c:43)
==28826== by 0x80961E7: framecrc_write_packet (framecrcenc.c:27)
==28826== by 0x8067FC7: av_interleaved_write_frame (utils.c:2799)
==28826== by 0x804CD0D: write_frame (ffmpeg.c:545)
==28826== by 0x804ED15: do_video_out (ffmpeg.c:1063)
==28826== by 0x805058E: output_packet (ffmpeg.c:1421)
==28826== by 0x8053CF6: av_encode (ffmpeg.c:2283)
==28826== by 0x8058171: main (ffmpeg.c:3983)
==28826==
==28826== Use of uninitialised value of size 4
==28826== at 0x41B11B8: _itoa_word (_itoa.c:196)
==28826== by 0x41B4A81: vfprintf (vfprintf.c:1600)
==28826== by 0x41D4E9F: vsnprintf (vsnprintf.c:120)
==28826== by 0x41BBFC1: snprintf (snprintf.c:35)
==28826== by 0x8096243: framecrc_write_packet (framecrcenc.c:30)
==28826== by 0x8067FC7: av_interleaved_write_frame (utils.c:2799)
==28826== by 0x804CD0D: write_frame (ffmpeg.c:545)
==28826== by 0x804ED15: do_video_out (ffmpeg.c:1063)
==28826== by 0x805058E: output_packet (ffmpeg.c:1421)
==28826== by 0x8053CF6: av_encode (ffmpeg.c:2283)
==28826== by 0x8058171: main (ffmpeg.c:3983)
==28826==
==28826== Conditional jump or move depends on uninitialised value(s)
==28826== at 0x41B11C3: _itoa_word (_itoa.c:196)
==28826== by 0x41B4A81: vfprintf (vfprintf.c:1600)
==28826== by 0x41D4E9F: vsnprintf (vsnprintf.c:120)
==28826== by 0x41BBFC1: snprintf (snprintf.c:35)
==28826== by 0x8096243: framecrc_write_packet (framecrcenc.c:30)
==28826== by 0x8067FC7: av_interleaved_write_frame (utils.c:2799)
==28826== by 0x804CD0D: write_frame (ffmpeg.c:545)
==28826== by 0x804ED15: do_video_out (ffmpeg.c:1063)
==28826== by 0x805058E: output_packet (ffmpeg.c:1421)
==28826== by 0x8053CF6: av_encode (ffmpeg.c:2283)
==28826== by 0x8058171: main (ffmpeg.c:3983)
==28826==
0, 0, 109272, 0x609a73a2
1, 2351, 4608, 0x89262153
0, 3600, 109272, 0x4a6f7c9a
1, 4702, 4608, 0xa96bfd3e
1, 7053, 4608, 0x6280d134
0, 7200, 109272, 0x4f86ba92
1, 9404, 4608, 0x5cc1d3ea
0, 10800, 109272, 0x2d646ad3
1, 11755, 4608, 0xb47ad99a
1, 14106, 4608, 0xae3d3715
0, 14400, 109272, 0x8dc7834a
1, 16457, 4608, 0xf2de1a15
0, 18000, 109272, 0x1294f7f7ze= 0kB time=0.21 bitrate= 13.3kbits/s
1, 18808, 4608, 0xd969e00e
1, 21159, 4608, 0x5af413f0
0, 21600, 109272, 0x51842826
1, 23510, 4608, 0x7fca991b
0, 25200, 109272, 0xedec2985
_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1387>
_____________________________________________________