Projects
Essentials
lightspark
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 101
View file
lightspark.spec
Changed
@@ -27,6 +27,7 @@ Group: Productivity/Multimedia/Other Url: https://launchpad.net/lightspark/ Source0: lightspark.tar.xz +Patch: 0001-s-PIX_FMT_YUV420P-AV_PIX_FMT_YUV420P-compatibility.patch BuildRequires: boost-devel BuildRequires: cmake BuildRequires: desktop-file-utils @@ -85,6 +86,7 @@ %prep %setup -q -n %{name} +%patch -p1 %build export CFLAGS='%{optflags}'
View file
0001-s-PIX_FMT_YUV420P-AV_PIX_FMT_YUV420P-compatibility.patch
Added
@@ -0,0 +1,45 @@ +From c0ba608054ab53a424414e4bc165a1d4cebfe8b9 Mon Sep 17 00:00:00 2001 +From: Johannes Obermayr <johannesobermayr@gmx.de> +Date: Mon, 21 Mar 2016 22:34:36 +0100 +Subject: [PATCH] s/PIX_FMT_YUV420P/AV_PIX_FMT_YUV420P + compatibility. + +--- + src/backends/decoder.cpp | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/src/backends/decoder.cpp b/src/backends/decoder.cpp +index 3f84fd8..c6df46c 100755 +--- a/src/backends/decoder.cpp ++++ b/src/backends/decoder.cpp +@@ -39,6 +39,10 @@ + #define av_frame_unref avcodec_get_frame_defaults + #endif + ++#ifndef AV_PIX_FMT_YUV420P ++#define AV_PIX_FMT_YUV420P PIX_FMT_YUV420P ++#endif ++ + using namespace lightspark; + using namespace std; + +@@ -293,7 +297,7 @@ bool FFMpegVideoDecoder::decodeData(uint8_t* data, uint32_t datalen, uint32_t ti + } + if(frameOk) + { +- assert(codecContext->pix_fmt==PIX_FMT_YUV420P); ++ assert(codecContext->pix_fmt==AV_PIX_FMT_YUV420P); + + if(status==INIT && fillDataAndCheckValidity()) + status=VALID; +@@ -323,7 +327,7 @@ bool FFMpegVideoDecoder::decodePacket(AVPacket* pkt, uint32_t time) + assert_and_throw(ret==(int)pkt->size); + if(frameOk) + { +- assert(codecContext->pix_fmt==PIX_FMT_YUV420P); ++ assert(codecContext->pix_fmt==AV_PIX_FMT_YUV420P); + + if(status==INIT && fillDataAndCheckValidity()) + status=VALID; +-- +2.7.3 +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.