summaryrefslogtreecommitdiff
path: root/lib/rbcodec
diff options
context:
space:
mode:
authorroman.artiukhin <bahusdrive@gmail.com>2023-08-30 17:00:22 +0300
committerSolomon Peachy <pizza@shaftnet.org>2023-09-06 16:49:23 -0400
commita190d0ca9c286478d1c36cb30fa6c2515aaa4f9d (patch)
treee57c2d17b30ef3b76ed5c237f5a319de6b3776a1 /lib/rbcodec
parented369e1d475658eccb5eb2221d757e7d66796e90 (diff)
downloadrockbox-a190d0ca9c286478d1c36cb30fa6c2515aaa4f9d.tar.gz
rockbox-a190d0ca9c286478d1c36cb30fa6c2515aaa4f9d.zip
Codecs: mp4: Skip unknown chunks
Needed for opening some m4b books (see FS#13049) Change-Id: Id289451e6b2b8a7ad1f6b9f00ef512ab9692383d
Diffstat (limited to 'lib/rbcodec')
-rw-r--r--lib/rbcodec/codecs/libm4a/demux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libm4a/demux.c b/lib/rbcodec/codecs/libm4a/demux.c
index e29ecb8339..11534da366 100644
--- a/lib/rbcodec/codecs/libm4a/demux.c
+++ b/lib/rbcodec/codecs/libm4a/demux.c
@@ -845,7 +845,8 @@ int qtmovie_read(stream_t *file, demux_res_t *demux_res)
845 break; 845 break;
846 default: 846 default:
847 //DEBUGF("(top) unknown chunk id: %c%c%c%c\n",SPLITFOURCC(chunk_id)); 847 //DEBUGF("(top) unknown chunk id: %c%c%c%c\n",SPLITFOURCC(chunk_id));
848 return 0; 848 stream_skip(qtmovie.stream, chunk_len - 8);
849 break;
849 } 850 }
850 851
851 } 852 }