Skip to content

Commit

Permalink
smpeg2, mpegtoraw.cpp: fix the wrong assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 16, 2017
1 parent e403e54 commit 5e52023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/smpeg2-2.0.0/audio/mpegtoraw.cpp
Expand Up @@ -448,7 +448,7 @@ int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len)
if (audio->timestamp[0] != -1){
double timeshift = audio->Time() - audio->timestamp[0];
double correction = 0;
assert(audio->timestamp >= 0);
assert(audio->timestamp[0] >= 0);
if (fabs(timeshift) > 1.0){
correction = -timeshift;
#ifdef DEBUG_TIMESTAMP_SYNC
Expand Down

0 comments on commit 5e52023

Please sign in to comment.