Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 4b7c67a71d05d71be097425765de9685 > files > 3

qutecom-2.2.1-6.mga3.src.rpm

--- 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)
 	{