<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 24: bug in rgb.c</title><link>https://sourceforge.net/p/libdv/bugs/24/</link><description>Recent changes to 24: bug in rgb.c</description><atom:link href="https://sourceforge.net/p/libdv/bugs/24/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 02 Jan 2002 18:30:34 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libdv/bugs/24/feed.rss" rel="self" type="application/rss+xml"/><item><title>bug in rgb.c</title><link>https://sourceforge.net/p/libdv/bugs/24/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br /&gt;
I've been using extensively your package libdv together&lt;br /&gt;
with&lt;br /&gt;
others and found a weird bug on some of my AVI files.&lt;/p&gt;
&lt;p&gt;I use raw AVI dv2 format files grabbed by dvgrab and&lt;br /&gt;
transform them into mjpeg stream using dv2jpg. A few&lt;br /&gt;
times I&lt;br /&gt;
got the following segmentation fault in grb.c file&lt;br /&gt;
(from libdv)&lt;/p&gt;
&lt;p&gt;Starting&lt;br /&gt;
program: /scratch1/valya/tmp/dv2jpg-1.1/dv2jpg&lt;br /&gt;
/export/1/opt/DV/mik2001.08.11_16-24-08.avi p.mjpeg&lt;br /&gt;
reading /export/1/opt/DV/mik2001.08.11_16-24-08.avi&lt;br /&gt;
Compressor: WHAT&lt;br /&gt;
fps: 29.970629&lt;br /&gt;
video_frames: 684&lt;br /&gt;
video_strn: 0&lt;br /&gt;
audio_bytes: 4381992&lt;br /&gt;
audio_strn: 1&lt;br /&gt;
width: 720&lt;br /&gt;
height: 480&lt;br /&gt;
a_fmt: 1&lt;br /&gt;
a_chans: 2&lt;br /&gt;
a_rate: 48000&lt;br /&gt;
a_bits: 16&lt;br /&gt;
Video setup: width=352, height=240, fps=29.970629&lt;br /&gt;
audio setup: channels=2, rate=48000, bits=16, format=1&lt;br /&gt;
Copying 684 frames&lt;br /&gt;
frame 85&lt;br /&gt;
Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;
dv_mb411_rgb (mb=0x8063c58, pixels=0xbfffdc80,&lt;br /&gt;
pitches=0xbfffdc70)&lt;br /&gt;
at rgb.c:149&lt;br /&gt;
149               *pwrgb++ = rgblut[r];&lt;br /&gt;
(gdb) where&lt;br /&gt;
#0  dv_mb411_rgb (mb=0x8063c58, pixels=0xbfffdc80,&lt;br /&gt;
pitches=0xbfffdc70)&lt;br /&gt;
at rgb.c:149&lt;br /&gt;
#1  0x8052cb1 in dv_decode_full_frame (dv=0x8be0e90,&lt;br /&gt;
buffer=0x8069540 &amp;amp;quot;\037\a&amp;amp;quot;,&lt;br /&gt;
color_space=e_dv_color_rgb, pixels=0xbfffdc80,&lt;br /&gt;
pitches=0xbfffdc70)&lt;br /&gt;
at dv.c:220&lt;br /&gt;
#2  0x804b4f0 in main (ac=3, av=0xbffff574) at&lt;br /&gt;
dv2jpg.c:139&lt;br /&gt;
#3  0x40328177 in ?? ()&lt;br /&gt;
(gdb) p pixels&lt;br /&gt;
$1 = (guchar **) 0xffecec91&lt;br /&gt;
(gdb) p *pixels&lt;br /&gt;
Cannot access memory at address 0xffecec91&lt;br /&gt;
(gdb) p **pixels&lt;br /&gt;
Cannot access memory at address 0xffecec91&lt;br /&gt;
(gdb) p pitches&lt;br /&gt;
$2 = (gint *) 0xbfffdc70&lt;br /&gt;
(gdb) p pixels&lt;br /&gt;
$3 = (guchar **) 0xffecec91&lt;br /&gt;
(gdb) p pixels[0]&lt;br /&gt;
Cannot access memory at address 0xffecec91&lt;br /&gt;
(gdb) p mb&lt;br /&gt;
$4 = (dv_macroblock_t *) 0xb3b2b1b0&lt;br /&gt;
I don't have a clue what is that, but think you can&lt;br /&gt;
help. In the case if you need input file it can be&lt;br /&gt;
downloaded from&lt;br /&gt;
&lt;a href="http://www-clued0.fnal.gov/~vkuznet/BUGS/mik2001.08.11_16-24-08.avi" rel="nofollow"&gt;http://www-clued0.fnal.gov/~vkuznet/BUGS/mik2001.08.11_16-24-08.avi&lt;/a&gt;&lt;br /&gt;
as well as dv2jpg executable (with debug option&lt;br /&gt;
enabled):&lt;br /&gt;
&lt;a href="http://www-clued0.fnal.gov/~vkuznet/BUGS/dv2jpg" rel="nofollow"&gt;http://www-clued0.fnal.gov/~vkuznet/BUGS/dv2jpg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Valentin.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 02 Jan 2002 18:30:34 -0000</pubDate><guid>https://sourceforge.netb60babe17aef01289d9ce7a472da6e742926154e</guid></item></channel></rss>