[FFmpeg-soc] [soc]: r2606 - mlp/mlpdec.c
ramiro
subversion at mplayerhq.hu
Tue Jul 1 01:54:25 CEST 2008
Author: ramiro
Date: Tue Jul 1 01:54:25 2008
New Revision: 2606
Log:
Try decoding next substr if one fails instead of bailing out.
Modified:
mlp/mlpdec.c
Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c (original)
+++ mlp/mlpdec.c Tue Jul 1 01:54:25 2008
@@ -1065,7 +1065,7 @@ static int read_access_unit(AVCodecConte
if (get_bits1(&gb)) {
/* A restart header should be present */
if (read_restart_header(m, &gb, buf, substr) < 0)
- goto error;
+ goto next_substr;
m->restart_seen[substr] = 1;
}
@@ -1073,18 +1073,18 @@ static int read_access_unit(AVCodecConte
av_log(m->avctx, AV_LOG_ERROR,
"No restart header present in substream %d.\n",
substr);
- goto error;
+ goto next_substr;
}
if (read_decoding_params(m, &gb, substr) < 0)
- goto error;
+ goto next_substr;
}
if (!m->restart_seen[substr]) {
av_log(m->avctx, AV_LOG_ERROR,
"No restart header present in substream %d.\n",
substr);
- goto error;
+ goto next_substr;
}
if (read_block_data(m, &gb, substr) < 0)
@@ -1127,6 +1127,7 @@ static int read_access_unit(AVCodecConte
return -1;
}
+next_substr:
buf += substream_data_len[substr];
}
More information about the FFmpeg-soc
mailing list