--- wifo/phapi/phcodec-avcodec-wrapper.c.ffmpeg 2011-06-25 10:16:16.000000000 +0200 +++ wifo/phapi/phcodec-avcodec-wrapper.c 2011-06-25 10:20:48.000000000 +0200 @@ -62,9 +62,13 @@ int dec_len, got_picture = 0; ph_avcodec_decoder_ctx_t * decoder_t = (ph_avcodec_decoder_ctx_t *) ctx; + AVPacket pkt; - dec_len = avcodec_decode_video(decoder_t->context, - dst, &got_picture, (uint8_t *)src, srcsize); + av_init_packet(&pkt); + pkt.data = (uint8_t *)src; + pkt.size = srcsize; + dec_len = avcodec_decode_video2(decoder_t->context, + dst, &got_picture, &pkt); if (got_picture) {