This checkin: RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpeg12.c,v Working file: mpeg12.c ---------------------------- revision 1.199 date: 2004/04/19 03:33:23; author: michael; state: Exp; lines: +3 -1 exporting field_select/ref_index values ---------------------------- causes a coredump on corrupted mpegs. A sample: ftp://ftp.mplayerhq.hu/MPlayer/incoming/ffmp2-apr-dump.ts gdb --args ./mplayer ../samples/ffmp2-apr-dump.ts -tsprog 2 -vo null -vf crop -vfm ffmpeg -nosound -benchmark -noslices GNU gdb 5.1.90_20020324 Copyright 2002 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 "i686-pc-linux-gnu"... (gdb) run Starting program: /usr/local/src/mplayercvs/main/mplayer ../samples/ffmp2-apr-dump.ts -tsprog 2 -vo null -vf crop -vfm ffmpeg -nosound -benchmark -noslices [New Thread 16384 (LWP 25619)] MPlayer dev-CVS-040226-14:25-3.3.3 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2330 MHz (Family: 6, Stepping: 0) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE Reading config file /etc/mplayer/mplayer.conf Reading config file /home/hzoli/.mplayer/config Reading /home/hzoli/.mplayer/codecs.conf: Can't open '/home/hzoli/.mplayer/codecs.conf': No such file or directory Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf. font: can't open file: /home/hzoli/.mplayer/font/font.desc Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars) Using Linux hardware RTC timing (1024Hz). Can't open input config file /home/hzoli/.mplayer/input.conf: No such file or directory Input config file /etc/mplayer/input.conf parsed: 52 binds Setting up LIRC support... mplayer: could not connect to socket mplayer: Connection refused Failed to open LIRC support. You will not be able to use your remote control. Playing ../samples/ffmp2-apr-dump.ts. TS file format detected. DEMUX OPEN, AUDIO_ID: -2, VIDEO_ID: -1, SUBTITLE_ID: -1, PROBING UP TO 2000000, PROG: 2 VIDEO MPEG2(pid=33)...NO AUDIO! NO SUBS (yet)! PROGRAM N. 2 Opened TS demuxer, audio: ffffffff(pid -2), video: 10000002(pid 33)...POS=24415 VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 45000.0 kbps (5625.0 kbyte/s) SUB: Could not determine file format Cannot load subtitles: ../samples/ffmp2-apr-dump.txt Opening video filter: [crop] Crop: -1 x -1, -1 ; -1 ========================================================================== Trying to force video codec driver family ffmpeg... Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmpeg2] vfm:ffmpeg (FFmpeg MPEG 2) ========================================================================== Audio: no sound Starting playback... VDec: vo config request - 1920 x 1080 (preferred csp: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [null] 1920x1080 => 1920x1080 Planar YV12 [mpeg2video @ 0x85d1520]00 motion_type at 101 36 [mpeg2video @ 0x85d1520]concealing errors [mpeg2video @ 0x85d1520]Warning MVs not available V:83088.9 19 179% 0% 0.0% 0 0 0% Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 25619)] mpeg_decode_slice (s1=0x872b7d0, mb_y=0, buf=0xbfffd1a8, buf_size=142220536) at mpeg12.c:2349 2349 s->current_picture.ref_index [dir][xy ]= (gdb) bt #0 mpeg_decode_slice (s1=0x872b7d0, mb_y=0, buf=0xbfffd1a8, buf_size=142220536) at mpeg12.c:2349 #1 0x0831cc95 in mpeg_decode_frame (avctx=0x872b2e0, data=0x872b200, data_size=0xbfffd25c, buf=0x40ec2008 "", buf_size=36740) at mpeg12.c:2891 #2 0x082343b7 in avcodec_decode_video (avctx=0x872b2e0, picture=0x87a1cf8, got_picture_ptr=0xbfffd25c, buf=0x87a1cf8 "", buf_size=142220536) at utils.c:487 #3 0x08111965 in decode (sh=0x872b720, data=0xbfffd25c, len=36740, flags=141734624) at vd_ffmpeg.c:730 #4 0x0810bb34 in decode_video (sh_video=0x872b720, start=0x87a1cf8 "", in_size=142220536, drop_frame=0) at dec_video.c:309 #5 0x08093dc9 in main (argc=13, argv=0xbffff734) at mplayer.c:2091 #6 0x40985da6 in __libc_start_main () from /lib/libc.so.6 Zoli
Hi On Thursday 22 April 2004 22:25, Zoltan Hidvegi wrote:
This checkin: RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpeg12.c,v Working file: mpeg12.c ---------------------------- revision 1.199 date: 2004/04/19 03:33:23; author: michael; state: Exp; lines: +3 -1 exporting field_select/ref_index values ---------------------------- causes a coredump on corrupted mpegs. A sample:
ftp://ftp.mplayerhq.hu/MPlayer/incoming/ffmp2-apr-dump.ts fixed
[...] -- Michael level[i]= get_vlc(); i+=get_vlc(); (violates patent EP0266049) median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]); (violates patent #5,905,535) buf[i]= qp - buf[i-1]; (violates patent #?) for more examples, see http://mplayerhq.hu/~michael/patent.html stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en
participants (2)
-
Michael Niedermayer -
Zoltan Hidvegi