# HG changeset patch # User gpoirier # Date 1136325972 0 # Node ID 335ca842bf7e07b16a2903f917c9bf32099c6262 # Parent 6b218db46f2a1658eae9b2b9985be6dffc553f52 Reverse commit 31 Dec 2005 18:56:35 -0000 1.34 This was an incorrect fix made at the codec when it should be done at the demuxer level. static variables in codecs are ALWAYS wrong: the demuxer is supposed to have already removed all the junk Does anyone have an idea of a fix for the demuxer? (discussed on IRC) diff -r 6b218db46f2a -r 335ca842bf7e mp3lib/sr1.c --- a/mp3lib/sr1.c Tue Jan 03 22:05:03 2006 +0000 +++ b/mp3lib/sr1.c Tue Jan 03 22:06:12 2006 +0000 @@ -45,7 +45,7 @@ int MP3_framesize=0; // current framesize int MP3_bitrate=0; // current bitrate int MP3_samplerate=0; // current samplerate -static int MP3_resync; +int MP3_resync=0; int MP3_channels=0; int MP3_bps=2; @@ -407,7 +407,6 @@ _has_mmx = 0; dct36_func = dct36; - MP3_resync = 1; make_decode_tables(outscale);