[FFmpeg-trac] #3143(avcodec:new): H.261 encoding crashes with trellis

FFmpeg trac at avcodec.org
Fri Nov 15 19:37:39 CET 2013


#3143: H.261 encoding crashes with trellis
---------------------------------------+-----------------------------------
             Reporter:  maikmerten     |                    Owner:
                 Type:  defect         |                   Status:  new
             Priority:  normal         |                Component:  avcodec
              Version:  git-master     |               Resolution:
             Keywords:  crash SIGSEGV  |               Blocked By:
             Blocking:                 |  Reproduced by developer:  0
Analyzed by developer:  0              |
---------------------------------------+-----------------------------------

Comment (by maikmerten):

 Version 0.5.13 behaves in a similar way, crashes at the same statement in
 the corresponding file.

 {{{
 Starting program: /home/maik/builds/ffmpeg-0.5.13/ffmpeg_g -i
 /tmp/test.y4m -f h261 -vb 256k -trellis 2 /tmp/test.h261
 FFmpeg version 0.5.13, Copyright (c) 2000-2013 Fabrice Bellard, et al.
 }}}

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 0x0000000000521add in dct_quantize_trellis_c (s=0xe9d6e0, block=0xeadeb0,
 n=1, qscale=4, overflow=<optimized out>) at
 libavcodec/mpegvideo_enc.c:3100
 3100                        int score= distortion +
 length[UNI_AC_ENC_INDEX(run, level)]*lambda;
 (gdb) bt
 #0  0x0000000000521add in dct_quantize_trellis_c (s=0xe9d6e0,
 block=0xeadeb0, n=1, qscale=4, overflow=<optimized out>) at
 libavcodec/mpegvideo_enc.c:3100
 #1  0x0000000000535f6f in encode_mb_internal (mb_block_count=6,
 mb_block_height=8, motion_y=0, motion_x=0, s=0xe9d6e0) at
 libavcodec/mpegvideo_enc.c:1635
 #2  encode_mb (motion_y=0, motion_x=0, s=0xe9d6e0) at
 libavcodec/mpegvideo_enc.c:1731
 #3  encode_thread (c=<optimized out>, arg=<optimized out>) at
 libavcodec/mpegvideo_enc.c:2554
 #4  0x00000000004d623f in avcodec_default_execute (c=0xe94f70,
 func=0x532ad0 <encode_thread>, arg=<optimized out>, ret=<optimized out>,
 count=1, size=8)
     at libavcodec/utils.c:399
 #5  0x0000000000524e51 in encode_picture (picture_number=0, s=0xe9d6e0) at
 libavcodec/mpegvideo_enc.c:2912
 #6  MPV_encode_picture (avctx=<optimized out>, buf=<optimized out>,
 buf_size=<optimized out>, data=<optimized out>) at
 libavcodec/mpegvideo_enc.c:1214
 #7  0x00000000004d66f6 in avcodec_encode_video
 (avctx=avctx at entry=0xe94f70, buf=<optimized out>, buf_size=<optimized
 out>, pict=pict at entry=0x7fffffffd340)
     at libavcodec/utils.c:515
 #8  0x00000000004378c5 in do_video_out (ist=0x0, frame_size=<synthetischer
 Zeiger>, in_picture=0x7fffffffcfe0, ost=0xe9d510, s=<optimized out>) at
 ffmpeg.c:974
 #9  output_packet (ist=ist at entry=0xe9d4a0, ist_index=ist_index at entry=0,
 ost_table=ost_table at entry=0xe9d4f0, nb_ostreams=nb_ostreams at entry=1,
     pkt=pkt at entry=0x7fffffffd560) at ffmpeg.c:1358
 #10 0x000000000043a5fc in av_encode
 (nb_output_files=nb_output_files at entry=1,
 nb_input_files=nb_input_files at entry=1, nb_stream_maps=<optimized out>,
     stream_maps=0xb23420 <stream_maps>, input_files=0xb27420
 <input_files>, output_files=0xb259c0 <output_files>) at ffmpeg.c:2153
 #11 0x0000000000435018 in main (argc=<optimized out>, argv=<optimized
 out>) at ffmpeg.c:3928

 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3143#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list