[FFmpeg-devel] MP3 file that crashes ffmpeg

Reimar Döffinger Reimar.Doeffinger
Sun May 6 16:20:22 CEST 2007


Hello,
On Sun, May 06, 2007 at 04:13:41PM +0200, Reimar D?ffinger wrote:
[...]
> Attached (obviously wrong) patch fixes the crash for me.

And this patch will at least not break anything that was working before,
but the code is probably wrong anyway.

Greetings,
Reimar D?ffinger
-------------- next part --------------
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 4db89e9..6792579 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -5361,8 +5361,10 @@ static void mpeg4_decode_sprite_trajectory(MpegEncContext * s, GetBitContext *gb
         }
         skip_bits1(gb); /* marker bit */
 //printf("%d %d %d %d\n", x, y, i, s->sprite_warping_accuracy);
+        if (i < 4) {
         d[i][0]= x;
         d[i][1]= y;
+        }
     }
 
     while((1<<alpha)<w) alpha++;



More information about the ffmpeg-devel mailing list