[FFmpeg-devel] Google Summer of Code participation

Ronald S. Bultje rsbultje
Tue Apr 7 14:41:06 CEST 2009


Hi,

On Tue, Apr 7, 2009 at 7:19 AM, Thilo Borgmann
<thilo.borgmann at googlemail.com> wrote:
> Oh, just before I forget it, thanks for reviewing to all of you!

Not yet done...

--- a/libavcodec/sp5xdec.c
+++ b/libavcodec/sp5xdec.c
[..]
@@ -89,7 +92,9 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
     recoded[j++] = 0xD9;

     avctx->flags &= ~CODEC_FLAG_EMU_EDGE;
-    i = ff_mjpeg_decode_frame(avctx, data, data_size, recoded, j);
+    avpkt_recoded.data = recoded;
+    avpkt_recoded.size = j;
+    i = ff_mjpeg_decode_frame(avctx, data, data_size, &avpkt_recoded);

     av_free(recoded);

That leaves some fields uninitialized, you should use av_init_packet()
here also.

Ronald



More information about the ffmpeg-devel mailing list