[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-ports
Subject:    ffmpeg fix
From:       "Todd C. Miller" <Todd.Miller () courtesan ! com>
Date:       2006-07-30 23:42:21
Message-ID: 200607302342.k6UNgM9c014507 () tex ! courtesan ! com
[Download RAW message or body]

Without this fix ffmpeg dumps core on me most of the time.
With the fix it seems stable.

 - todd

From:
http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/mpegaudiodec.c?r1=5127&r2=5658

Index: graphics/ffmpeg/patches/patch-libavcodec_mpegaudiodec_c
===================================================================
RCS file: graphics/ffmpeg/patches/patch-libavcodec_mpegaudiodec_c
diff -N graphics/ffmpeg/patches/patch-libavcodec_mpegaudiodec_c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ graphics/ffmpeg/patches/patch-libavcodec_mpegaudiodec_c	30 Jul 2006 23:40:21 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- libavcodec/mpegaudiodec.c.orig	Sun Jul 30 19:39:08 2006
++++ libavcodec/mpegaudiodec.c	Sun Jul 30 15:44:14 2006
+@@ -1650,7 +1650,7 @@ static int huffman_decode(MPADecodeConte
+             if (get_bits_count(&s->gb) >= end_pos)
+                 break;
+             if (code_table) {
+-                code = get_vlc2(&s->gb, vlc->table, 8, 2);
++                code = get_vlc2(&s->gb, vlc->table, 8, 3);
+                 if (code < 0)
+                     return -1;
+                 y = code_table[code];

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic