[FFmpeg-trac] #329(FFmpeg:open): Crash when decoding vob file (was: Transcoding (including copy) from mpeg2ps to MP4 fails in 0.7 & 0.8 but works in 0.6.3)

FFmpeg trac at avcodec.org
Wed Jul 6 10:58:24 CEST 2011


#329: Crash when decoding vob file
-----------------------+----------------------
Reporter:  ralexand    |       Owner:  michael
    Type:  defect      |      Status:  open
Priority:  important   |   Component:  FFmpeg
 Version:  git-master  |  Resolution:
Keywords:  regression  |  Blocked By:
Blocking:              |  Reproduced:  1
Analyzed:  0           |
-----------------------+----------------------
Changes (by cehoyos):

 * keywords:   => regression
 * version:  0.8 => git-master
 * reproduced:  0 => 1


Comment:

 {{{
 (gdb) r -i test.vob -f null -
 ffmpeg version N-31266-g3950376, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Jul  6 2011 10:20:08 with gcc 4.5.3
   configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
   libavutil    51. 11. 0 / 51. 11. 0
   libavcodec   53.  7. 0 / 53.  7. 0
   libavformat  53.  5. 0 / 53.  5. 0
   libavdevice  53.  2. 0 / 53.  2. 0
   libavfilter   2. 24. 3 /  2. 24. 3
   libswscale    2.  0. 0 /  2.  0. 0
 [mpeg @ 0x1275400] max_analyze_duration 5000000 reached at 5000000
 Input #0, mpeg, from 'test.vob':
   Duration: 00:00:06.69, start: 35.391267, bitrate: 3058 kb/s
     Stream #0.0[0x85]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
     Stream #0.1[0x86]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
     Stream #0.2[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
     Stream #0.3[0x81]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
     Stream #0.4[0x82]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
     Stream #0.5[0x83]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
     Stream #0.6[0x84]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
     Stream #0.7[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR
 64:45 DAR 16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
 [buffer @ 0x1279520] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:64/45
 sws_param:
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf53.5.0
     Stream #0.0: Video: rawvideo, yuv420p, 720x576 [PAR 64:45 DAR 16:9],
 q=2-31, 200 kb/s, 90k tbn, 25 tbc
     Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 Stream mapping:
   Stream #0.7 -> #0.0
   Stream #0.0 -> #0.1
 Press [q] to stop, [?] for help
 [ac3 @ 0x1277520] frame sync error
 Error while decoding stream #0.0

 Program received signal SIGSEGV, Segmentation fault.
 0x000000000040b32f in transcode (nb_output_files=1, input_files=0x127bd80,
 nb_input_files=1, stream_maps=0x0, nb_stream_maps=<value optimized out>,
 output_files=0xd11fa0) at ffmpeg.c:2742
 2742                pkt.dts +=
 av_rescale_q(input_files_ts_offset[ist->file_index], AV_TIME_BASE_Q,
 ist->st->time_base);
 (gdb) bt
 #0  0x000000000040b32f in transcode (nb_output_files=1,
 input_files=0x127bd80, nb_input_files=1, stream_maps=0x0,
 nb_stream_maps=<value optimized out>, output_files=0xd11fa0) at
 ffmpeg.c:2742
 #1  0x00000000004108eb in main (argc=<value optimized out>, argv=<value
 optimized out>) at ffmpeg.c:4583
 (gdb) disass $pc-32 $pc+32
 Dump of assembler code from 0x40b30f to 0x40b34f:
 0x000000000040b30f <transcode+5327>:    test   %ecx,0x4c000007(%rcx)
 0x000000000040b315 <transcode+5333>:    mov    0xd48(%rsp),%esp
 0x000000000040b31c <transcode+5340>:    cmp    %rbx,%r12
 0x000000000040b31f <transcode+5343>:    je     0x40b350 <transcode+5392>
 0x000000000040b321 <transcode+5345>:    mov    0x8(%rbp),%rax
 0x000000000040b325 <transcode+5349>:    mov    $0xf424000000001,%rsi
 0x000000000040b32f <transcode+5359>:    mov    0x40(%rax),%rdx
 0x000000000040b333 <transcode+5363>:    movslq 0x0(%rbp),%rax
 0x000000000040b337 <transcode+5367>:    mov    0xd12e40(,%rax,8),%rdi
 0x000000000040b33f <transcode+5375>:    callq  0x943190 <av_rescale_q>
 0x000000000040b344 <transcode+5380>:    lea    (%rax,%r12,1),%r12
 0x000000000040b348 <transcode+5384>:    mov    %r12,0xd48(%rsp)
 End of assembler dump.
 (gdb) info register
 rax            0x0      0
 rbx            0x8000000000000000       -9223372036854775808
 rcx            0x0      0
 rdx            0x0      0
 rsi            0xf424000000001  4294967296000001
 rdi            0x7fffffffdaa4   140737488345764
 rbp            0x127c1d8        0x127c1d8
 rsp            0x7fffffffcd70   0x7fffffffcd70
 r8             0x38f95e 3733854
 r9             0x12789a0        19368352
 r10            0x0      0
 r11            0x0      0
 r12            0x38f95e 3733854
 r13            0x1275400        19354624
 r14            0x0      0
 r15            0x9      9
 rip            0x40b32f 0x40b32f <transcode+5359>
 eflags         0x10a83  [ CF SF IF OF RF ]
 cs             0x33     51
 ss             0x2b     43
 ds             0x0      0
 es             0x0      0
 fs             0x0      0
 gs             0x0      0
 fctrl          0x37f    895
 fstat          0x0      0
 ftag           0xffff   65535
 fiseg          0x0      0
 fioff          0x0      0
 foseg          0x0      0
 fooff          0x0      0
 fop            0x0      0
 mxcsr          0x1fa0   [ PE IM DM ZM OM UM PM ]
 }}}

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


More information about the FFmpeg-trac mailing list