From c63e6040111003e17bf8f9a319668138bd9ddc71 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sun, 26 Jan 2003 00:12:07 +0000 Subject: Better error correction handling CVS patchset: 4008 CVS date: 2003/01/26 00:12:07 --- src/demuxers/demux_asf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/demuxers/demux_asf.c b/src/demuxers/demux_asf.c index bde88db2f..c6e8f6492 100644 --- a/src/demuxers/demux_asf.c +++ b/src/demuxers/demux_asf.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_asf.c,v 1.99 2003/01/23 16:11:56 miguelfreitas Exp $ + * $Id: demux_asf.c,v 1.100 2003/01/26 00:12:07 tmattern Exp $ * * demultiplexer for asf streams * @@ -608,7 +608,8 @@ static uint32_t asf_get_packet(demux_asf_t *this) { #endif ecc_flags = get_byte(this); p_hdr_size += 1; - p_hdr_size += this->input->read (this->input, buf, ecc_flags & 15); + if (ecc_flags & 0x80) + p_hdr_size += this->input->read (this->input, buf, ecc_flags & 15); #ifdef LOG printf("ecc_flags: %d ", ecc_flags); for (i = 0; i < (ecc_flags & 15); i++) -- cgit v1.2.3