Permalink
Browse files

VIDEO: More fixes when building with Theora and Tremor

  • Loading branch information...
ccawley2011 committed Aug 16, 2018
1 parent df236f1 commit ecd74c2ba452cc0628c3e91920ddd16ebc9dbd08
Showing with 1 addition and 2 deletions.
  1. +0 −1 configure
  2. +1 −1 video/theora_decoder.cpp
@@ -4265,7 +4265,6 @@ if test "$_theoradec" = auto ; then
_theoradec=no
cat > $TMPC << EOF
#include <theora/theoradec.h>
#include <vorbis/codec.h>
int main(void) { th_ycbcr_buffer yuv; th_decode_ycbcr_out(NULL, yuv); }
EOF
cc_check $THEORADEC_CFLAGS $THEORADEC_LIBS -ltheoradec && _theoradec=yes
@@ -386,7 +386,7 @@ bool TheoraDecoder::VorbisAudioTrack::decodeSamples() {
for (i = 0; i < ret && i < maxsamples; i++) {
for (int j = 0; j < channels; j++) {
#ifdef USE_TREMOR
int val = CLIP(pcm[j][i] >> 9, -32768, 32767);
int val = CLIP((int)pcm[j][i] >> 9, -32768, 32767);
#else
int val = CLIP((int)rint(pcm[j][i] * 32767.f), -32768, 32767);
#endif

0 comments on commit ecd74c2

Please sign in to comment.