Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 864334 Details for
Bug 908959
media-video/raspberrypi-omxplayer-0_p20160528-r3 fails to build when using ffmpeg4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for raspberrypi-omxplayer to compile against ffmpeg4
ffmpeg4.patch (text/plain), 2.70 KB, created by
Mathias Vaterlaus
on 2023-06-21 12:38:39 UTC
(
hide
)
Description:
Patch for raspberrypi-omxplayer to compile against ffmpeg4
Filename:
MIME Type:
Creator:
Mathias Vaterlaus
Created:
2023-06-21 12:38:39 UTC
Size:
2.70 KB
patch
obsolete
>--- a/DllAvFormat.h 2023-06-13 13:10:09.494562972 +0200 >+++ b/DllAvFormat.h 2023-06-13 13:10:37.154526979 +0200 >@@ -114,7 +114,7 @@ > } > virtual void av_register_all_dont_call() { *(volatile int* )0x0 = 0; } > virtual AVInputFormat *av_find_input_format(const char *short_name) { return ::av_find_input_format(short_name); } >- virtual int url_feof(AVIOContext *s) { return ::url_feof(s); } >+ virtual int url_feof(AVIOContext *s) { return ::avio_feof(s); } > virtual void avformat_close_input(AVFormatContext **s) { ::avformat_close_input(s); } > virtual int av_read_frame(AVFormatContext *s, AVPacket *pkt) { return ::av_read_frame(s, pkt); } > virtual int av_read_play(AVFormatContext *s) { return ::av_read_play(s); } > > >--- a/OMXAudioCodecOMX.cpp 2023-06-13 13:12:42.954363283 +0200 >+++ b/OMXAudioCodecOMX.cpp 2023-06-13 13:14:45.364203997 +0200 >@@ -82,8 +82,8 @@ > m_pCodecContext->debug = 0; > m_pCodecContext->workaround_bugs = 1; > >- if (pCodec->capabilities & CODEC_CAP_TRUNCATED) >- m_pCodecContext->flags |= CODEC_FLAG_TRUNCATED; >+ if (pCodec->capabilities & AV_CODEC_CAP_TRUNCATED) >+ m_pCodecContext->flags |= AV_CODEC_FLAG_TRUNCATED; > > m_channels = 0; > m_pCodecContext->channels = hints.channels; >@@ -115,7 +115,7 @@ > if( hints.extradata && hints.extrasize > 0 ) > { > m_pCodecContext->extradata_size = hints.extrasize; >- m_pCodecContext->extradata = (uint8_t*)m_dllAvUtil.av_mallocz(hints.extrasize + FF_INPUT_BUFFER_PADDING_SIZE); >+ m_pCodecContext->extradata = (uint8_t*)m_dllAvUtil.av_mallocz(hints.extrasize + AV_INPUT_BUFFER_PADDING_SIZE); > memcpy(m_pCodecContext->extradata, hints.extradata, hints.extrasize); > } > >@@ -235,7 +235,7 @@ > > if (m_iBufferOutputAlloced < m_iBufferOutputUsed + outputSize) > { >- m_pBufferOutput = (BYTE*)m_dllAvUtil.av_realloc(m_pBufferOutput, m_iBufferOutputUsed + outputSize + FF_INPUT_BUFFER_PADDING_SIZE); >+ m_pBufferOutput = (BYTE*)m_dllAvUtil.av_realloc(m_pBufferOutput, m_iBufferOutputUsed + outputSize + AV_INPUT_BUFFER_PADDING_SIZE); > m_iBufferOutputAlloced = m_iBufferOutputUsed + outputSize; > } > > >--- a/OMXReader.cpp 2023-06-13 13:16:23.914075759 +0200 >+++ b/OMXReader.cpp 2023-06-13 13:18:40.793897644 +0200 >@@ -1022,7 +1022,7 @@ > { > memset(pkt, 0, sizeof(OMXPacket)); > >- pkt->data = (uint8_t*) malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); >+ pkt->data = (uint8_t*) malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); > if(!pkt->data) > { > free(pkt); >@@ -1030,7 +1030,7 @@ > } > else > { >- memset(pkt->data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); >+ memset(pkt->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); > pkt->size = size; > pkt->dts = DVD_NOPTS_VALUE; > pkt->pts = DVD_NOPTS_VALUE; >
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 908959
: 864334 |
864626