Mercurial > audlegacy-plugins
comparison src/mpg123/common.c @ 226:514c7adecf39 trunk
[svn] - only penalize for bad frames on fixed streams
author | nenolod |
---|---|
date | Sun, 05 Nov 2006 13:14:06 -0800 |
parents | 1e2d575fd2e7 |
children | 88c73db9a4b4 |
comparison
equal
deleted
inserted
replaced
225:6a512dedcfbe | 226:514c7adecf39 |
---|---|
298 return FALSE; | 298 return FALSE; |
299 #ifdef MPGDEC_INVBITSTREAM_NOTIFY | 299 #ifdef MPGDEC_INVBITSTREAM_NOTIFY |
300 if (try >= 0) | 300 if (try >= 0) |
301 g_log("mpgdec", G_LOG_LEVEL_WARNING, "mpgdec: illegal bitstream in the middle of the MPEG stream, skipped %d bytes", try); | 301 g_log("mpgdec", G_LOG_LEVEL_WARNING, "mpgdec: illegal bitstream in the middle of the MPEG stream, skipped %d bytes", try); |
302 #endif | 302 #endif |
303 mpgdec_info->filesize -= try; | 303 if (mpgdec_info->filesize > 0) |
304 mpgdec_info->filesize -= try; | |
304 } | 305 } |
305 /* flip/init buffer for Layer 3 */ | 306 /* flip/init buffer for Layer 3 */ |
306 bsbufold = bsbuf; | 307 bsbufold = bsbuf; |
307 bsbuf = bsspace[bsnum] + 512; | 308 bsbuf = bsspace[bsnum] + 512; |
308 bsnum = (bsnum + 1) & 1; | 309 bsnum = (bsnum + 1) & 1; |