[Ffmpeg-devel] WMV3 segfaults in weight_h264_pixels2x2_c()

Nikns Siankin nikns
Fri Dec 22 15:13:34 CET 2006


Here from ffmpeg:

# ffmpeg -i /root/MojoFlix_Drunken-Bull.wmv bu.avi
FFmpeg version SVN-r7274, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --enable-shared --cc=cc --disable-opts --enable-a52 --enable-pp --enable-gpl 
--enable-pthreads --enable-faac --enable-faad --enable-mp3lame --enable-libogg --enable-vorbis 
--extra-ldflags=-lm -L/usr/local/lib --extra-cflags=-I/usr/local/include
  libavutil version: 49.1.0
  libavcodec version: 51.26.0
  libavformat version: 51.6.0
  built on Dec 22 2006 13:46:58, gcc: 3.3.5 (propolice)

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, asf, from '/root/MojoFlix_Drunken-Bull.wmv':
  Duration: 00:00:33.1, start: 5.000000, bitrate: 492 kb/s
  Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 64 kb/s
  Stream #0.1: Video: wmv2, yuv420p, 320x240, 30.00 fps(r)
File 'bu.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'bu.avi':
  Stream #0.0: Video: mpeg4, yuv420p, 320x240, q=2-31, 200 kb/s, 30.00 fps(c)
  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
Segmentation fault (core dumped)

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd4.0"...(no debugging symbols found)

Core was generated by `ffmpeg'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libpthread.so.6.3...done.
Loaded symbols for /usr/lib/libpthread.so.6.3
Reading symbols from /usr/lib/libm.so.2.3...done.
Loaded symbols for /usr/lib/libm.so.2.3
Reading symbols from /usr/local/lib/libavformat.so.8.0...done.
Loaded symbols for /usr/local/lib/libavformat.so.8.0
Reading symbols from /usr/local/lib/libavcodec.so.8.0...done.
Loaded symbols for /usr/local/lib/libavcodec.so.8.0
Reading symbols from /usr/local/lib/libavutil.so.2.0...done.
Loaded symbols for /usr/local/lib/libavutil.so.2.0
Reading symbols from /usr/lib/libossaudio.so.3.0...done.
Loaded symbols for /usr/lib/libossaudio.so.3.0
Reading symbols from /usr/lib/libz.so.4.1...done.
Loaded symbols for /usr/lib/libz.so.4.1
Reading symbols from /usr/local/lib/libmp3lame.so.0.1...done.
Loaded symbols for /usr/local/lib/libmp3lame.so.0.1
Reading symbols from /usr/local/lib/libvorbis.so.5.1...done.
Loaded symbols for /usr/local/lib/libvorbis.so.5.1
Reading symbols from /usr/local/lib/libvorbisenc.so.2.2...done.
Loaded symbols for /usr/local/lib/libvorbisenc.so.2.2
Reading symbols from /usr/local/lib/libogg.so.5.3...done.
Loaded symbols for /usr/local/lib/libogg.so.5.3
Reading symbols from /usr/local/lib/libfaac.so.0.0...done.
Loaded symbols for /usr/local/lib/libfaac.so.0.0
Reading symbols from /usr/local/lib/libfaad.so.0.0...done.
Loaded symbols for /usr/local/lib/libfaad.so.0.0
Symbols already loaded for /usr/lib/libpthread.so.6.3
Reading symbols from /usr/lib/libc.so.39.3...done.
Loaded symbols for /usr/lib/libc.so.39.3
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  wmv2_mspel8_h_lowpass (dst=0x7f7ffffbf7a0 "", src=0x45498f82 <Address 0x45498f82 out of bounds>, dstStride=8, srcStride=352, 
    h=352) at dsputil.c:2512
2512	        dst[0]= cm[(9*(src[0] + src[1]) - (src[-1] + src[2]) + 8)>>4];
(gdb) bt
#0  wmv2_mspel8_h_lowpass (dst=0x7f7ffffbf7a0 "", src=0x45498f82 <Address 0x45498f82 out of bounds>, dstStride=8, srcStride=352, 
    h=352) at dsputil.c:2512
#1  0x000000004b4c0a45 in put_mspel8_mc32_c (
    dst=0x4b3446e0 "5545566665444444555543332445666444423444234333333444456555554455454455555666", '5' <repeats 16 times>, "6666", '5' <repeats 11 times>, '6' <repeats 21 times>, '2' <repeats 17 times>, "32224332234223323336566;9<;=?=><??=<<<><7:99:8886647645"..., 
    src=0x454990e3 "3322334445432555543332445666444423444234333333444456555554455454455555666", '5' <repeats 16 times>, "6666", '5' <repeats 11 times>, '6' <repeats 21 times>, '2' <repeats 17 times>, "3222433323434677876866789;::=8:;9==;:976569897964546555455"..., stride=352) at dsputil.c:2618
#2  0x000000004b5bd2f5 in ff_mspel_motion (s=0x4684f000, 
    dest_y=0x4b3446e0 "5545566665444444555543332445666444423444234333333444456555554455454455555666", '5' <repeats 16 times>, "6666", '5' <repeats 11 times>, '6' <repeats 21 times>, '2' <repeats 17 times>, "32224332234223323336566;9<;=?=><??=<<<><7:99:8886647645"..., 
    dest_cb=0x4e4375f0 "\226\226\226\225\225\226\226\225\225\225\225\226\226\225\225\225\226\226\225\225\226\226\226\226\225\225", '\226' <repeats 12 times>, "\227\227", '\225' <repeats 33 times>, "\226\226\225\225\224\225\225\226\225\225\225\225\225\225\225\225\226\226\227\226\225\225\224\225\225\225\224\224\225\224\224", '\225' <repeats 54 times>, "\224\224\224\224\224\224\224\224\224\225\225\225\225\225\225\225\225\225\226\226\226\225\225\226\226\225\225\225\225\225\225\225\225\225\226\226\225\225\226\226\226\226"..., 
    dest_cr=0x49d675f0 "zzzzzzyyyyzzzzzzzxzzyyywzzyyywxyxxxx", 'y' <repeats 28 times>, 'z' <repeats 24 times>, "yyyyyyyyy", 'z' <repeats 71 times>, "yyyyyyzzzzzzzzyyyyzzzzzzzxzyyyyx"..., ref_picture=0x4684f128, pix_op=0x4684fe98, motion_x=5, motion_y=-31, h=16)
    at wmv2.c:660
#3  0x000000004b48eff2 in MPV_motion (s=0x4684f000, 
    dest_y=0x4b3446e0 "5545566665444444555543332445666444423444234333333444456555554455454455555666", '5' <repeats 16 times>, "6666", '5' <repeats 11 times>, '6' <repeats 21 times>, '2' <repeats 17 times>, "32224332234223323336566;9<;=?=><??=<<<><7:99:8886647645"..., 
    dest_cb=0x4e4375f0 "\226\226\226\225\225\226\226\225\225\225\225\226\226\225\225\225\226\226\225\225\226\226\226\226\225\225", '\226' <repeats 12 times>, "\227\227", '\225' <repeats 33 times>, "\226\226\225\225\224\225\225\226\225\225\225\225\225\225\225\225\226\226\227\226\225\225\224\225\225\225\224\224\225\224\224", '\225' <repeats 54 times>, "\224\224\224\224\224\224\224\224\224\225\225\225\225\225\225\225\225\225\226\226\226\225\225\226\226\225\225\225\225\225\225\225\225\225\226\226\225\225\226\226\226\226"..., 
    dest_cr=0x49d675f0 "zzzzzzyyyyzzzzzzzxzzyyywzzyyywxyxxxx", 'y' <repeats 28 times>, 'z' <repeats 24 times>, "yyyyyyyyy", 'z' <repeats 71 times>, "yyyyyyzzzzzzzzyyyyzzzzzzzxzyyyyx"..., dir=11, ref_picture=0x4684f128, pix_op=0x4684fe98, qpix_op=0x46850358)
    at mpegvideo.c:3554
#4  0x000000004b486064 in MPV_decode_mb (s=0x4684f000, block=0x41dea000) at mpegvideo.c:4009
#5  0x000000004b5be65f in decode_slice (s=0x4684f000) at h263dec.c:240
#6  0x000000004b5bf5e6 in ff_h263_decode_frame (avctx=0x4be49000, data=0x7f7ffffc0030, data_size=0x7f7ffffbfea8, 
    buf=0x4b21c000 "\210??\004L?\002?\2210?\020?\212??,\v?\t\217?x#??\0209\fG??????5S\204B?\021\027)?r\020??\027?|\232av?r\2031??n\002??k\216|\205?!#?\032?\031", buf_size=2045) at h263dec.c:729
#7  0x000000004b47c4fc in avcodec_decode_video (avctx=0x4be49000, picture=0x7f7ffffc0030, got_picture_ptr=0x7f7ffffbfea8, 
    buf=0x4b21c000 "\210??\004L?\002?\2210?\020?\212??,\v?\t\217?x#??\0209\fG??????5S\204B?\021\027)?r\020??\027?|\232av?r\2031??n\002??k\216|\205?!#?\032?\031", buf_size=2045) at utils.c:903
#8  0x00000000004061d2 in __register_frame_info ()
#9  0x0000000000406dff in __register_frame_info ()
#10 0x000000000040b035 in main ()
(gdb) 




More information about the ffmpeg-devel mailing list