diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-01-30 13:41:34 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-01-30 13:41:34 +0000 |
commit | e2323abf8111db3403c756a4dfa029829e48a6d9 (patch) | |
tree | 491d74e10b38c4e88c59d2962409f809ccee926a /net-im/qutecom/files | |
parent | Bump for #401243 (diff) | |
download | historical-e2323abf8111db3403c756a4dfa029829e48a6d9.tar.gz historical-e2323abf8111db3403c756a4dfa029829e48a6d9.tar.bz2 historical-e2323abf8111db3403c756a4dfa029829e48a6d9.zip |
Fix building against >=ffmpeg-0.8, bug #401175.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'net-im/qutecom/files')
-rw-r--r-- | net-im/qutecom/files/qutecom-2.2-no-deprecated-avcodec-decode-video.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-im/qutecom/files/qutecom-2.2-no-deprecated-avcodec-decode-video.patch b/net-im/qutecom/files/qutecom-2.2-no-deprecated-avcodec-decode-video.patch new file mode 100644 index 000000000000..b8f423be791b --- /dev/null +++ b/net-im/qutecom/files/qutecom-2.2-no-deprecated-avcodec-decode-video.patch @@ -0,0 +1,18 @@ +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) + { |