Projects
Essentials
lightspark
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 125
View file
lightspark.spec
Changed
@@ -20,7 +20,7 @@ %bcond_without librtmp Name: lightspark -Version: 0.7.2.99+git20161106.1842 +Version: 0.7.2.99+git20161120.1708 Release: 0 Summary: Modern, free, open-source flash player implementation License: LGPL-3.0+
View file
lightspark.tar.xz/CMakeLists.txt
Changed
@@ -314,7 +314,8 @@ CHECK_FUNCTION_EXISTS(av_packet_unref HAVE_AV_PACKET_UNREF) CHECK_FUNCTION_EXISTS(avcodec_send_packet HAVE_AVCODEC_SEND_PACKET) CHECK_FUNCTION_EXISTS(avcodec_receive_frame HAVE_AVCODEC_RECEIVE_FRAME) - + CHECK_FUNCTION_EXISTS(av_frame_get_sample_rate HAVE_AV_FRAME_GET_SAMPLE_RATE) + CHECK_C_SOURCE_COMPILES("#include <libavcodec/avcodec.h>\nint main() { enum AVCodecID c; return 0; }" HAVE_AVCODECID) SET(CMAKE_REQUIRED_FLAGS) @@ -365,6 +366,9 @@ IF(HAVE_AVCODEC_RECEIVE_FRAME) ADD_DEFINITIONS(-DHAVE_AVCODEC_RECEIVE_FRAME) ENDIF(HAVE_AVCODEC_RECEIVE_FRAME) + IF(HAVE_AV_FRAME_GET_SAMPLE_RATE) + ADD_DEFINITIONS(-DHAVE_AV_FRAME_GET_SAMPLE_RATE) + ENDIF(HAVE_AV_FRAME_GET_SAMPLE_RATE) ADD_DEFINITIONS(-DENABLE_LIBAVCODEC) ENDIF(ENABLE_LIBAVCODEC)
View file
lightspark.tar.xz/conf/FindLLVM.cmake
Changed
@@ -169,6 +169,11 @@ ELSE(${LLVM_STRING_VERSION} VERSION_GREATER 3.7) FIND_LLVM_LIBS( ${LLVM_CONFIG_EXECUTABLE} "core ipa ipo instrumentation bitreader bitwriter linker" LLVM_LIBS_CORE_ONLY LLVM_LIBS_CORE_OBJECTS ) ENDIF(${LLVM_STRING_VERSION} VERSION_GREATER 3.7) + IF (NOT LLVM_SYSTEM_LIBS_FAILED) + # LLVM_SYSTEM_LIBS may be newline only + STRING(REPLACE "\n" " " LLVM_SYSTEM_LIBS "${LLVM_SYSTEM_LIBS}") + STRING(STRIP ${LLVM_SYSTEM_LIBS} LLVM_SYSTEM_LIBS) + ENDIF() SET(LLVM_LIBS_CORE ${LLVM_LIBS_CORE_ONLY} ${LLVM_SYSTEM_LIBS}) UNSET(LLVM_LIBS_CORE_ONLY) UNSET(LLVM_SYSTEM_LIBS_FAILED)
View file
lightspark.tar.xz/src/backends/decoder.cpp
Changed
@@ -969,7 +969,11 @@ { int sample_rate = MIX_DEFAULT_FREQUENCY; unsigned int channel_layout = AV_CH_LAYOUT_STEREO; - int framesamplerate = av_frame_get_sample_rate(frameIn); +#ifdef HAVE_AV_FRAME_GET_SAMPLE_RATE + int framesamplerate = av_frame_get_sample_rate(frameIn); +#else + int framesamplerate = frameIn->sample_rate; +#endif if(frameIn->format == AV_SAMPLE_FMT_S16 && sample_rate == framesamplerate && channel_layout == frameIn->channel_layout) { //This is suboptimal but equivalent to what libavcodec
View file
lightspark.tar.xz/src/swf.cpp
Changed
@@ -210,7 +210,7 @@ setTLSSys(this); // it seems Adobe ignores any locale date settings - setlocale(LC_TIME, "en_US"); + setlocale(LC_TIME, "C"); mainThread = Thread::self();
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
.