Commit 74dcfba
Add special handling to filelike object mp3 (#2478)
Summary:
Loading and querying file-like object is not possible to use the fallback
mechanism introduced in #2419 because file-like objects are not seekable.
This commit add special case handling to mp3.
For filelike object mp3 input, it was required to pass `format="mp3"`
because libsox did not auto detect the format.
With the transition of mp3 handling from libsox to ffmpeg, the logic
is to let the ffmpeg handle it without waiting for libsox to fail,
if the `format="mp3"`
Note: This is back port of #2477.
Pull Request resolved: #2478
Reviewed By: carolineechen
Differential Revision: D37177123
Pulled By: mthrok
fbshipit-source-id: 997eead01c0ad1f04ffa0daa1039302a75f62b631 parent 5e96671 commit 74dcfba
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
| |||
194 | 203 | | |
195 | 204 | | |
196 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
197 | 215 | | |
198 | 216 | | |
199 | 217 | | |
| |||
0 commit comments