forked from len0rd/rockbox
Codecs: mp4: Ignore decode errors till next chunk present in lookup_table
In files with gaps between chunks and reduced lookup_table we can't properly detect all gaps in m4a_check_sample_offset. So just ignore decode errors till next chunk present in lookup_table Change-Id: I317864dce6a2251cdb6ddb8c0ad4d7c1640cb7a1
This commit is contained in:
parent
f017ef9617
commit
7616822fbb
1 changed files with 5 additions and 1 deletions
|
@ -211,7 +211,11 @@ enum codec_status codec_run(void)
|
|||
/* NeAACDecDecode may sometimes return NULL without setting error. */
|
||||
if (ret == NULL || frame_info.error > 0) {
|
||||
LOGF("FAAD: decode error '%s'\n", NeAACDecGetErrorMessage(frame_info.error));
|
||||
return CODEC_ERROR;
|
||||
|
||||
// In files with gaps between chunks and reduced lookup_table we can't properly detect all gaps
|
||||
// in m4a_check_sample_offset. So just ignore decode errors till next chunk present in lookup_table
|
||||
if (file_offset > 0)
|
||||
return CODEC_ERROR;
|
||||
}
|
||||
|
||||
/* Advance codec buffer (no need to call set_offset because of this) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue