rendered paste bodyIndex: libavcodec/huffman.c
===================================================================
--- libavcodec/huffman.c (revision 11114)
+++ libavcodec/huffman.c (working copy)
@@ -82,6 +82,7 @@
}
qsort(nodes, nb_codes, sizeof(Node), cmp);
cur_node = nb_codes;
+ nodes[nb_codes*2-1].count = 0;
for(i = 0; i < nb_codes*2-1; i += 2){
nodes[cur_node].sym = HNODE;
nodes[cur_node].count = nodes[i].count + nodes[i+1].count;
--------------
(gdb) run /Volumes/E\$/temp/vp6_crash.avi
Starting program: /Users/compn/Desktop/mplayer/mplayer /Volumes/E\$/temp/vp6_crash.avi
Reading symbols for shared libraries .........................++....................................................+....+.++ done
MPlayer dev-SVN-r25211-3.3 (C) 2000-2007 MPlayer Team
AltiVec found
CPU: PowerPC
Playing /Volumes/E$/temp/vp6_crash.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO: [VP60] 1280x720 24bpp 29.970 fps 1683.7 kbps (205.5 kbyte/s)
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Opening video filter: [scale]
Opening video filter: [eq]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvp6] vfm: ffmpeg (FFmpeg VP6 decoder)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x61f520]SwScaler: using unscaled yuv420p -> yuyv422 special converter
VO: [macosx] 1280x720 => 1280x720 Packed YUY2 [fs]
Reading symbols for shared libraries . done
[ASPECT] Warning: No suitable new res found!
V: 0.0 1/ 1 ??% ??% ??,?% 0 0
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x01fe5000
0x00301620 in vp6_parse_coeff_huffman (s=0x303ca00) at bitstream.h:658
658 UPDATE_CACHE(re, s)
(gdb) bt
#0 0x00301620 in vp6_parse_coeff_huffman (s=0x303ca00) at bitstream.h:658
#1 0x003015bc in vp6_parse_coeff_huffman (s=0x303ca00) at vp6.c:379
warning: Previous frame identical to this frame (corrupt stack?)
#2 0x003f1224 in vp56_decode_mb (s=0x303ca00, row=19, col=51, is_alpha=0) at vp56.c:410
#3 0x003f19b4 in vp56_decode_frame (avctx=0x3036200, data=0x2964110, data_size=0xbfffe4f0, buf=0x1fdf000 "Å\001{\\ý§\0276Þ¿+Sñ\234»¶#\22238+·^\n\227Ú+·N³\033\205\204\"\224\006Ю\202\003\016\032_¶À\2266g\177¶íõIð¯z", buf_size=23432) at vp56.c:597
#4 0x001a8bb0 in avcodec_decode_video (avctx=0x3036200, picture=0x2964110, got_picture_ptr=0xbfffe4f0, buf=0x1fdf000 "Å\001{\\ý§\0276Þ¿+Sñ\234»¶#\22238+·^\n\227Ú+·N³\033\205\204\"\224\006Ю\202\003\016\032_¶À\2266g\177¶íõIð¯z", buf_size=23432) at utils.c:939
#5 0x0004f6a8 in decode (sh=0x29120e0, data=0x1fdf000, len=23432, flags=0) at vd_ffmpeg.c:780
#6 0x0004d3c4 in decode_video (sh_video=0x29120e0, start=0x1fdf000 "Å\001{\\ý§\0276Þ¿+Sñ\234»¶#\22238+·^\n\227Ú+·N³\033\205\204\"\224\006Ю\202\003\016\032_¶À\2266g\177¶íõIð¯z", in_size=23432, drop_frame=0, pts=5.2742564598782652e-315) at dec_video.c:366
#7 0x000070c4 in AsciiTable ()
#8 0x0000a18c in png_handle_bKGD () at mplayer.c:3404