Commit 4315d8f
fix(audio): use Decoder::try_from(File) for M4A/AAC playback
Decoder::new(BufReader) creates a non-seekable MediaSource with no
byte_len, which prevents the Symphonia ISO MP4 demuxer from parsing
the container structure. Decoder::try_from(File) sets byte_len and
is_seekable from file metadata, fixing M4A/AAC decode failures.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2a6a751 commit 4315d8f
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
68 | | - | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
172 | | - | |
173 | | - | |
| 170 | + | |
174 | 171 | | |
175 | 172 | | |
176 | 173 | | |
| |||
0 commit comments