if test "${enable_theora}" = "yes"
then
AC_CHECK_HEADERS(theora/theora.h, [
- AC_CHECK_LIB(theora, theora_packet_iskeyframe, [
+ AC_CHECK_LIB(theora, theora_granule_time, [
if test "${SYS}" = "mingw32"; then
VLC_ADD_PLUGINS([theora])
else
fi
theora_libs="-ltheora -logg"
VLC_ADD_LDFLAGS([theora],[${theora_libs}]) ],[
- AC_MSG_ERROR([libtheora >= 1.0alpha4 doesn't appear to be installed on your system.
+ AC_MSG_ERROR([libtheora doesn't appear to be installed on your system.
You also need to check that you have a libogg posterior to the 1.0 release.])],
[-logg])
])
theora_decode_packetin( &p_sys->td, p_oggpacket );
- if( theora_packet_iskeyframe( p_oggpacket ) == 1 )
+ /* Check for keyframe */
+ if( !(p_oggpacket->packet[0] & 0x80) /* data packet */ &&
+ !(p_oggpacket->packet[0] & 0x40) /* intra frame */ )
p_sys->b_decoded_first_keyframe = VLC_TRUE;
/* If we haven't seen a single keyframe yet, don't let Theora decode