Show
Ignore:
Timestamp:
06/25/09 18:02:23 (4 years ago)
Author:
robert
Message:

Fixed warnings and refactored FindFFmpeg.cmake and ffmpeg plugin CMakeLists.txt scripts to better handle different instation combinations

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp

    r10161 r10414  
    168168            // Find out the frame pts 
    169169 
    170             if (packet.packet.dts == AV_NOPTS_VALUE && 
     170            if (packet.packet.dts == int64_t(AV_NOPTS_VALUE) && 
    171171                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)) 
    173173            { 
    174174                pts = *reinterpret_cast<const int64_t*>(m_frame->opaque); 
    175175            } 
    176             else if (packet.packet.dts != AV_NOPTS_VALUE) 
     176            else if (packet.packet.dts != int64_t(AV_NOPTS_VALUE)) 
    177177            { 
    178178                pts = packet.packet.dts;