Description: use avcodec_decode_video2(), as the avcodec_decode_video() has been removed in libav 0.7 Author: Ludovico Cavedon Index: qutecom/wifo/phapi/phcodec-avcodec-wrapper.c =================================================================== --- qutecom.orig/wifo/phapi/phcodec-avcodec-wrapper.c 2011-07-12 23:31:08.080000003 -0700 +++ qutecom/wifo/phapi/phcodec-avcodec-wrapper.c 2011-07-12 23:36:22.196000003 -0700 @@ -62,9 +62,13 @@ int dec_len, got_picture = 0; ph_avcodec_decoder_ctx_t * decoder_t = (ph_avcodec_decoder_ctx_t *) ctx; - - dec_len = avcodec_decode_video(decoder_t->context, - dst, &got_picture, (uint8_t *)src, srcsize); + AVPacket avpkt; + av_init_packet(&avpkt); + avpkt.data = (uint8_t *)src; + avpkt.size = srcsize; + avpkt.flags = AV_PKT_FLAG_KEY; + dec_len = avcodec_decode_video2(decoder_t->context, + dst, &got_picture, &avpkt); if (got_picture) {