Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-im/qutecom/files: qutecom-2.2-no-deprecated-avcodec-decode-video.patch
Date: Mon, 30 Jan 2012 13:41:44
Message-Id: 20120130134134.8E85A2004C@flycatcher.gentoo.org
1 chithanh 12/01/30 13:41:34
2
3 Added:
4 qutecom-2.2-no-deprecated-avcodec-decode-video.patch
5 Log:
6 Fix building against >=ffmpeg-0.8, bug #401175.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 net-im/qutecom/files/qutecom-2.2-no-deprecated-avcodec-decode-video.patch
12
13 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
14 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
15
16 Index: qutecom-2.2-no-deprecated-avcodec-decode-video.patch
17 ===================================================================
18 diff -ur a/wifo/phapi/phcodec-avcodec-wrapper.c b/wifo/phapi/phcodec-avcodec-wrapper.c
19 --- a/wifo/phapi/phcodec-avcodec-wrapper.c 2011-02-10 11:03:43.000000000 +0100
20 +++ b/wifo/phapi/phcodec-avcodec-wrapper.c 2012-01-30 14:05:15.000000000 +0100
21 @@ -63,8 +63,12 @@
22 int dec_len, got_picture = 0;
23 ph_avcodec_decoder_ctx_t * decoder_t = (ph_avcodec_decoder_ctx_t *) ctx;
24
25 - dec_len = avcodec_decode_video(decoder_t->context,
26 - dst, &got_picture, (uint8_t *)src, srcsize);
27 + AVPacket pkt;
28 + av_init_packet(&pkt);
29 + pkt.data = (uint8_t*) src;
30 + pkt.size = srcsize;
31 + dec_len = avcodec_decode_video2(decoder_t->context,
32 + dst, &got_picture, &pkt);
33
34 if (got_picture)
35 {