Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 333698 Details for
Bug 448718
net-voip/homer-0.24.1: fails to build with media-video/libav-9
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
homer-0.24.1-libav-9.patch
homer-0.24.1-libav-9.patch (text/plain), 3.67 KB, created by
Marcel Pennewiß
on 2012-12-29 18:52:57 UTC
(
hide
)
Description:
homer-0.24.1-libav-9.patch
Filename:
MIME Type:
Creator:
Marcel Pennewiß
Created:
2012-12-29 18:52:57 UTC
Size:
3.67 KB
patch
obsolete
>--- HomerMultimedia/include/Header_Ffmpeg.h >+++ HomerMultimedia/include/Header_Ffmpeg.h >@@ -173,4 +173,16 @@ > #endif > } > >+inline AVStream *HM_avformat_new_stream(AVFormatContext *s, int id) >+{ >+ #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(53, 10, 0) >+ return av_new_stream(s, c); >+ #else >+ AVStream *st = avformat_new_stream(s, NULL); >+ if (st) >+ st->id = id; >+ return st; >+ #endif >+} >+ > #endif >--- HomerMultimedia/src/MediaSource.cpp >+++ HomerMultimedia/src/MediaSource.cpp >@@ -236,11 +236,19 @@ > { > if (tCodec->type == AVMEDIA_TYPE_VIDEO) > { >+ #ifndef FF_API_OLD_ENCODE_AUDIO > bool tEncode = (tCodec->encode != NULL); >+ #else >+ bool tEncode = (tCodec->encode2 != NULL); >+ #endif > bool tDecode = (tCodec->decode != NULL); > if ((tNextCodec != NULL) && (strcmp(tCodec->name, tNextCodec->name) == 0)) > { >+ #ifndef FF_API_OLD_ENCODE_AUDIO > tEncode |= (tNextCodec->encode != NULL); >+ #else >+ tEncode |= (tNextCodec->encode2 != NULL); >+ #endif > tDecode |= (tNextCodec->decode != NULL); > tCodec = tNextCodec; > } >@@ -296,11 +304,19 @@ > // tNextCodec->encode ? "E" : " ", > // tNextCodec->name, > // tNextCodec->long_name ? tCodec->long_name : ""); >+ #ifndef FF_API_OLD_ENCODE_AUDIO > bool tEncode = (tCodec->encode != NULL); >+ #else >+ bool tEncode = (tCodec->encode2 != NULL); >+ #endif > bool tDecode = (tCodec->decode != NULL); > if ((tNextCodec != NULL) && (strcmp(tCodec->name, tNextCodec->name) == 0)) > { >+ #ifndef FF_API_OLD_ENCODE_AUDIO > tEncode |= (tNextCodec->encode != NULL); >+ #else >+ tEncode |= (tNextCodec->encode2 != NULL); >+ #endif > tDecode |= (tNextCodec->decode != NULL); > tCodec = tNextCodec; > } >@@ -1622,7 +1638,7 @@ > sprintf(mRecorderFormatContext->filename, "%s", pSaveFileName.c_str()); > > // allocate new stream structure >- tStream = av_new_stream(mRecorderFormatContext, 0); >+ tStream = HM_avformat_new_stream(mRecorderFormatContext, 0); > mRecorderCodecContext = tStream->codec; > > // put sample parameters >--- HomerMultimedia/src/MediaSourceMuxer.cpp >+++ HomerMultimedia/src/MediaSourceMuxer.cpp >@@ -377,7 +377,7 @@ > > // allocate new stream structure > LOG(LOG_VERBOSE, "..allocating new stream"); >- tStream = av_new_stream(mFormatContext, 0); >+ tStream = HM_avformat_new_stream(mFormatContext, 0); > mCodecContext = tStream->codec; > mCodecContext->codec_id = tFormat->video_codec; > mCodecContext->codec_type = AVMEDIA_TYPE_VIDEO; >@@ -710,7 +710,7 @@ > } > > // allocate new stream structure >- tStream = av_new_stream(mFormatContext, 0); >+ tStream = HM_avformat_new_stream(mFormatContext, 0); > mCodecContext = tStream->codec; > mCodecContext->codec_id = tFormat->audio_codec; > mCodecContext->codec_type = AVMEDIA_TYPE_AUDIO; >--- HomerMultimedia/src/RTP.cpp >+++ HomerMultimedia/src/RTP.cpp >@@ -512,7 +512,7 @@ > // verbose timestamp debugging mRtpFormatContext->debug = FF_FDEBUG_TS; > > // allocate new stream structure >- tOuterStream = av_new_stream(mRtpFormatContext, 0);//(AVStream*)av_mallocz(sizeof(AVStream)); >+ tOuterStream = HM_avformat_new_stream(mRtpFormatContext, 0);//(AVStream*)av_mallocz(sizeof(AVStream)); > if (tOuterStream == NULL) > { > LOG(LOG_ERROR, "Memory allocation failed");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 448718
:
333684
|
333686
| 333698