[FFmpeg-trac] #44(undetermined:open): seeking in .dv file with lowres enabled crashes ffplay

FFmpeg trac at avcodec.org
Tue Apr 12 18:17:21 CEST 2011


#44: seeking in .dv file with lowres enabled crashes ffplay
------------------------+---------------------------
Reporter:  ami_stuff    |       Owner:
    Type:  defect       |      Status:  open
Priority:  normal       |   Component:  undetermined
 Version:  unspecified  |  Resolution:
Keywords:               |  Blocked By:
Blocking:               |  Reproduced:  1
Analyzed:  0            |
------------------------+---------------------------
Changes (by cehoyos):

 * status:  new => open
 * reproduced:  0 => 1


Comment:

 (Seeking back.)
 {{{
 (gdb) r -an -lowres 1 small_test2.dv

 Starting program: ffplay_g -an -lowres 1 small_test2.dv
 [Thread debugging using libthread_db enabled]
 FFplay version git-N-29061-g5c00687, Copyright (c) 2003-2011 the FFmpeg
 developers
   built on Apr 12 2011 18:07:12 with gcc 4.5.2
   configuration: --cc='/usr/local/gcc-4.5.2/bin/gcc -m32' --disable-asm
   libavutil    50. 40. 1 / 50. 40. 1
   libavcodec   52.119. 0 / 52.119. 0
   libavformat  52.106. 0 / 52.106. 0
   libavdevice  52.  4. 0 / 52.  4. 0
   libavfilter   1. 78. 0 /  1. 78. 0
   libswscale    0. 13. 0 /  0. 13. 0
 [New Thread 0xf78e3b70 (LWP 26676)]
 [New Thread 0xf7014b70 (LWP 26677)]
 [dv @ 0x8c3f580] Estimating duration from bitrate, this may be inaccurate
 Input #0, dv, from 'small_test2.dv':
   Duration: 00:00:02.84, start: 0.000000, bitrate: 28800 kb/s
     Stream #0.0: Video: dvvideo, yuv420p, 720x576, 28800 kb/s, PAR 16:15
 DAR 4:3, 25 tbr, 25 tbn, 25 tbc
     Stream #0.1: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s
     Stream #0.2: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s
 [New Thread 0xf6786b70 (LWP 26678)]
 [New Thread 0xf5f85b70 (LWP 26679)]
    0.64 A-V:  0.000 s:0.0 aq=    0KB vq=  844KB sq=    0B f=0/0   0/0
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0xf7014b70 (LWP 26677)]
 dv_frame_offset (timestamp=-233, s=<value optimized out>, c=<value
 optimized out>,
     flags=<value optimized out>) at libavformat/dv.c:374
 374         int64_t max_offset = ((size-1) / sys->frame_size) *
 sys->frame_size;
 (gdb) bt
 #0  dv_frame_offset (timestamp=-233, s=<value optimized out>, c=<value
 optimized out>,
     flags=<value optimized out>) at libavformat/dv.c:374
 #1  dv_read_seek (timestamp=-233, s=<value optimized out>, c=<value
 optimized out>,
     flags=<value optimized out>) at libavformat/dv.c:472
 #2  0x081100f0 in av_seek_frame (s=0x8c3f580, stream_index=0,
 timestamp=-233, flags=1)
     at libavformat/utils.c:1788
 #3  0x08050c4f in decode_thread (arg=0xf7015020) at ffplay.c:2524
 #4  0xf7e04391 in ?? () from /usr/lib/libSDL-1.2.so.0
 #5  0xf7e506eb in ?? () from /usr/lib/libSDL-1.2.so.0
 #6  0xf7de06e5 in start_thread () from /lib/libpthread.so.0
 #7  0xf7de0600 in ?? () from /lib/libpthread.so.0
 (gdb) disass $pc-31 $pc+32
 Dump of assembler code from 0x8083240 to 0x808327f:
 0x08083240 <dv_frame_offset+0>: mov    0x8(%ebx),%eax
 0x08083243 <dv_frame_offset+3>: mov    0x8(%eax),%eax
 0x08083246 <dv_frame_offset+6>: mov    %eax,(%esp)
 0x08083249 <dv_frame_offset+9>: call   0x81db3c0 <ff_dv_codec_profile>
 0x0808324e <dv_frame_offset+14>:        mov    0x60(%esp),%edx
 0x08083252 <dv_frame_offset+18>:        mov    %eax,%ebp
 0x08083254 <dv_frame_offset+20>:        mov    0x10(%edx),%eax
 0x08083257 <dv_frame_offset+23>:        mov    %eax,(%esp)
 0x0808325a <dv_frame_offset+26>:        call   0x807b270 <avio_size>
 0x0808325f <dv_frame_offset+31>:        mov    0x8(%ebp),%ebp
 0x08083262 <dv_frame_offset+34>:        mov    %ebp,0x28(%esp)
 0x08083266 <dv_frame_offset+38>:        mov    %edx,%edi
 0x08083268 <dv_frame_offset+40>:        mov    0x60(%esp),%edx
 0x0808326c <dv_frame_offset+44>:        mov    %eax,%esi
 0x0808326e <dv_frame_offset+46>:        mov    0xf04(%edx),%eax
 0x08083274 <dv_frame_offset+52>:        mov    0xf08(%edx),%edx
 0x0808327a <dv_frame_offset+58>:        sub    %eax,%esi
 0x0808327c <dv_frame_offset+60>:        mov    %eax,0x30(%esp)
 End of assembler dump.
 (gdb) info registers
 eax            0x9c4000 10240000
 ecx            0xf7014060       -150912928
 edx            0x0      0
 ebx            0x8c68560        147228000
 esp            0xf70140f0       0xf70140f0
 ebp            0x0      0x0
 esi            0x0      0
 edi            0xffffff17       -233
 eip            0x808325f        0x808325f <dv_frame_offset+31>
 eflags         0x10282  [ SF IF RF ]
 cs             0x23     35
 ss             0x2b     43
 ds             0x2b     43
 es             0x2b     43
 fs             0x0      0
 gs             0x63     99
 }}}

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


More information about the FFmpeg-trac mailing list