public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-im/qutecom/files: qutecom-2.2-no-deprecated-avcodec-decode-video.patch
@ 2012-01-30 13:41 Chi-Thanh Christopher Nguyen (chithanh)
  0 siblings, 0 replies; only message in thread
From: Chi-Thanh Christopher Nguyen (chithanh) @ 2012-01-30 13:41 UTC (permalink / raw
  To: gentoo-commits

chithanh    12/01/30 13:41:34

  Added:               
                        qutecom-2.2-no-deprecated-avcodec-decode-video.patch
  Log:
  Fix building against >=ffmpeg-0.8, bug #401175.
  
  (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-im/qutecom/files/qutecom-2.2-no-deprecated-avcodec-decode-video.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/qutecom/files/qutecom-2.2-no-deprecated-avcodec-decode-video.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/qutecom/files/qutecom-2.2-no-deprecated-avcodec-decode-video.patch?rev=1.1&content-type=text/plain

Index: qutecom-2.2-no-deprecated-avcodec-decode-video.patch
===================================================================
diff -ur a/wifo/phapi/phcodec-avcodec-wrapper.c b/wifo/phapi/phcodec-avcodec-wrapper.c
--- a/wifo/phapi/phcodec-avcodec-wrapper.c	2011-02-10 11:03:43.000000000 +0100
+++ b/wifo/phapi/phcodec-avcodec-wrapper.c	2012-01-30 14:05:15.000000000 +0100
@@ -63,8 +63,12 @@
 	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 pkt;
+	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)
 	{






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-30 13:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30 13:41 [gentoo-commits] gentoo-x86 commit in net-im/qutecom/files: qutecom-2.2-no-deprecated-avcodec-decode-video.patch Chi-Thanh Christopher Nguyen (chithanh)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox