Lars Täuber <[email protected]> added the comment:

Hi,

it seems not to be fixed here with me.
The seg fault is in mc_block as the debugging says:

gdb ~/src/ffmpeg.svn/ffmpeg/ffmpeg_gGNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) r  -y -i das\ KLEID\ \[HQ\ XVID\ VORBIS\].mkv -vcodec snow -an -strict -2
das\ KLEID\ \[HQ\ XVID\ VORBIS\].avi
Starting program: /home/elte/src/ffmpeg.svn/ffmpeg/ffmpeg_g -y -i das\ KLEID\
\[HQ\ XVID\ VORBIS\].mkv -vcodec snow -an -strict -2 das\ KLEID\ \[HQ\ XVID\
VORBIS\].avi
[Thread debugging using libthread_db enabled]
FFmpeg version SVN-r18539, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-libdirac --enable-libschroedinger
--enable-libopenjpeg --enable-libgsm --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-libxvid --enable-libmp3lame
--enable-libfaadbin --enable-libfaac --arch=x86_64 --enable-libx264
--enable-avfilter
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.25. 0 / 52.25. 0
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    0. 5. 0 /  0. 5. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Apr 17 2009 10:04:24, gcc: 4.3.2
[matroska @ 0x27581e0]Invalid stream 1 or size 3
    Last message repeated 2 times
Input #0, matroska, from 'das KLEID [HQ XVID VORBIS].mkv':
  Duration: 00:02:06.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 1024x468 [PAR 1:1 DAR 256:117], 25 tbr,
1k tbn, 25 tbc
    Stream #0.1: Audio: vorbis, 44100 Hz, stereo, s16
Output #0, avi, to 'das KLEID [HQ XVID VORBIS].avi':
    Stream #0.0: Video: snow, yuv420p, 1024x468 [PAR 1:1 DAR 256:117], q=2-31,
200 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=  824 fps= 18 q=31.0 size=     705kB time=32.96 bitrate= 175.3kbits/s    
gdb ~/src/ffmpeg.svn/ffmpeg/ffmpeg_g
[New Thread 0x7f87d44416f0 (LWP 29293)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f87d44416f0 (LWP 29293)]
mc_block (p=0x0, dst=0x2764e50 "ZYYXWVTRONMKKMNP", 
    src=0x7f87cf19ee3a <Address 0x7f87cf19ee3a out of bounds>, 
    tmp=<value optimized out>, stride=1056, b_w=16, b_h=16, dx=8, dy=8)
    at libavcodec/snow.c:2161
2161                    int a_1=src[x + HTAPS_MAX/2-4];
(gdb) ) bt
#0  mc_block (p=0x0, dst=0x2764e50 "ZYYXWVTRONMKKMNP", 
    src=0x7f87cf19ee3a <Address 0x7f87cf19ee3a out of bounds>, 
    tmp=<value optimized out>, stride=1056, b_w=16, b_h=16, dx=8, dy=8)
    at libavcodec/snow.c:2161
#1  0x0000000000694fc8 in mc_block_hpel8816 (dst=<value optimized out>, 
    src=<value optimized out>, stride=1056, h=<value optimized out>)
    at libavcodec/snow.c:2300
#2  0x000000000050a0fa in ff_get_mb_score (s=0x7f87cf9e3d70, mx=-101, my=-155, 
    src_index=<value optimized out>, ref_index=<value optimized out>, size=0, 
    h=16, add_rate=0) at libavcodec/motion_est.c:197
#3  0x000000000069df5e in encode_q_branch (s=0x7f87cf7d5010, level=0, x=39, 
    y=4) at libavcodec/snow.c:1854
#4  0x00000000006a9422 in encode_frame (avctx=0x2791250, 
    buf=0x7f87cf9e8010 "\n�:\r]\225D6�0", buf_size=2875592, 
    data=0x7fffdc45efa0) at libavcodec/snow.c:2089
#5  0x000000000049a459 in avcodec_encode_video (avctx=0x2791250, buf=0x0, 
    buf_size=<value optimized out>, pict=0x10) at libavcodec/utils.c:516
#6  0x000000000040927b in do_video_out (s=0x2795090, ost=0x2790590, 
    ist=0x2791dd0, in_picture=0x7fffdc45f5d0, frame_size=0x7fffdc45f890)
    at ffmpeg.c:981
#7  0x0000000000409e7c in output_packet (ist=0x2791dd0, ist_index=0, 
    ost_table=0x2790330, nb_ostreams=1, pkt=0x7fffdc45fa90) at ffmpeg.c:1364
#8  0x000000000040e4c8 in av_encode (output_files=0xb7d6a0, nb_output_files=1, 
---Type <return> to continue, or q <return> to quit---
    input_files=0xb7bc40, nb_input_files=1, stream_maps=0xb7e3e0, 
    nb_stream_maps=0) at ffmpeg.c:2197
#9  0x000000000040ed2c in main (argc=<value optimized out>, 
    argv=<value optimized out>) at ffmpeg.c:3966
(gdb) 


I assume it has something to do with this line:

libavcodec/snow.c
3768:                av_freep(&b->x_coeff);
Because the seg fault doesn't occur with this line commented out with my test
file. But the mem consumption becomes fathomless.

----------
assignedto:  -> michaelni
nosy: +michaelni
status: closed -> open
substatus: fixed -> new

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

Reply via email to