Changeset 10414
- Timestamp:
- 06/25/09 18:02:23 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 4 modified
-
CMakeModules/FindFFmpeg.cmake (modified) (2 diffs)
-
src/osgPlugins/ffmpeg/CMakeLists.txt (modified) (1 diff)
-
src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp (modified) (1 diff)
-
src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/CMakeModules/FindFFmpeg.cmake
r10398 r10414 27 27 # old version of ffmpeg put header in $prefix/include/[ffmpeg] 28 28 # so try to find header in include directory 29 FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS ${headername} 29 30 FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS lib${shortname}/${headername} 30 31 PATHS 31 ${FFMPEG_ROOT}/include /lib${shortname}32 $ENV{FFMPEG_DIR}/include /lib${shortname}33 ~/Library/Frameworks /lib${shortname}34 /Library/Frameworks /lib${shortname}35 /usr/local/include /lib${shortname}36 /usr/include /lib${shortname}37 /sw/include /lib${shortname}# Fink38 /opt/local/include /lib${shortname}# DarwinPorts39 /opt/csw/include /lib${shortname}# Blastwave40 /opt/include /lib${shortname}41 /usr/freeware/include /lib${shortname}32 ${FFMPEG_ROOT}/include 33 $ENV{FFMPEG_DIR}/include 34 ~/Library/Frameworks 35 /Library/Frameworks 36 /usr/local/include 37 /usr/include 38 /sw/include # Fink 39 /opt/local/include # DarwinPorts 40 /opt/csw/include # Blastwave 41 /opt/include 42 /usr/freeware/include 42 43 PATH_SUFFIXES ffmpeg 43 44 DOC "Location of FFMPEG Headers" … … 132 133 SET(FFMPEG_INCLUDE_DIRS ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}) 133 134 135 SET(FFMPEG_INCLUDE_DIRS 136 ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS} ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat 137 ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS} ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/libavdevice 138 ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS} ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS}/libavcodec 139 ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavutil 140 ) 141 142 IF (${FFMPEG_STDINT_INCLUDE_DIR}) 143 SET(FFMPEG_INCLUDE_DIRS 144 $PFFMPEG_INCLUDE_DIRS} 145 ${FFMPEG_STDINT_INCLUDE_DIR}/libavformat 146 ${FFMPEG_STDINT_INCLUDE_DIR}/libavdevice 147 ${FFMPEG_STDINT_INCLUDE_DIR}/libavcodec 148 ${FFMPEG_STDINT_INCLUDE_DIR}/libavutil 149 ) 150 ENDIF() 151 152 134 153 SET(FFMPEG_LIBRARY_DIRS ${FFMPEG_LIBAVFORMAT_LIBRARY_DIRS}) 135 154 -
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/CMakeLists.txt
r10391 r10414 1 # INCLUDE_DIRECTORIES( ${FFMPEG_INCLUDE_DIRS} ) 2 3 4 INCLUDE_DIRECTORIES( 5 ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS} ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat 6 ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS} ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/libavdevice 7 ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS} ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS}/libavcodec 8 ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavcodec 9 ${FFMPEG_STDINT_INCLUDE_DIR} 10 ) 11 1 INCLUDE_DIRECTORIES( ${FFMPEG_INCLUDE_DIRS} ) 12 2 LINK_DIRECTORIES(${FFMPEG_LIBRARY_DIRS}) 13 14 3 SET(TARGET_EXTERNAL_LIBRARIES ${FFMPEG_LIBRARIES} ) 15 16 4 17 5 -
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp
r9910 r10414 285 285 if (m_packet.type == FFmpegPacket::PACKET_DATA) 286 286 { 287 if (m_packet.packet.pts != AV_NOPTS_VALUE)287 if (m_packet.packet.pts != int64_t(AV_NOPTS_VALUE)) 288 288 { 289 289 const double pts = av_q2d(m_stream->time_base) * m_packet.packet.pts; -
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp
r10161 r10414 168 168 // Find out the frame pts 169 169 170 if (packet.packet.dts == AV_NOPTS_VALUE&&170 if (packet.packet.dts == int64_t(AV_NOPTS_VALUE) && 171 171 m_frame->opaque != 0 && 172 *reinterpret_cast<const int64_t*>(m_frame->opaque) != AV_NOPTS_VALUE)172 *reinterpret_cast<const int64_t*>(m_frame->opaque) != int64_t(AV_NOPTS_VALUE)) 173 173 { 174 174 pts = *reinterpret_cast<const int64_t*>(m_frame->opaque); 175 175 } 176 else if (packet.packet.dts != AV_NOPTS_VALUE)176 else if (packet.packet.dts != int64_t(AV_NOPTS_VALUE)) 177 177 { 178 178 pts = packet.packet.dts;
