Closed
Bug 829724
Opened 12 years ago
Closed 12 years ago
fix resampler returning short buffers
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: rillian, Assigned: rillian)
References
Details
Attachments
(1 file)
(deleted),
patch
|
padenot
:
review+
kinetik
:
review+
|
Details | Diff | Splinter Review |
In Bug 792263 comment 24, ehsan complained that the speex resampler sometimes fails to return the requested number of samples. Jean-Marc said there was a bug which could cause this, which was fixed in the fork included with opus-tools.
This bug is about applying that fix to the version in the mozilla tree.
Assignee | ||
Comment 1•12 years ago
|
||
The libspeex_resampler says it pulled the version from speex.git commit a6d05eb5.
Fix is apparently https://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=5adadc5
Assignee | ||
Comment 2•12 years ago
|
||
The opus-tools version has some other changes as well, These don't look important:
- s/sinc/sinct/ (avoid symbol confict)
- unused variable warning fix on j with OVERRIDE_INNER_PRODUCT_SINGLE
- correct sizeof to patch cast in allocations
- s/EXPORT/SPX_RESAMPLE_EXPORT/
However, the sse fix in https://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=f426ab52 looks important. I'm not sure if we use SSE on any of our builds.
Comment 3•12 years ago
|
||
(In reply to comment #1)
> The libspeex_resampler says it pulled the version from speex.git commit
> a6d05eb5.
>
> Fix is apparently https://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=5adadc5
So can I just apply that patch to the mozilla tree?
Comment 4•12 years ago
|
||
(In reply to comment #1)
> The libspeex_resampler says it pulled the version from speex.git commit
> a6d05eb5.
>
> Fix is apparently https://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=5adadc5
Hmm, I don't think this will fix the issue that I'm seeing, as I'm not using the interleaved resampling functions.
Assignee | ||
Comment 5•12 years ago
|
||
Yes, the patch applies to the mozilla version. Of course it should go through the update script since it hasn't landed in our upstream, as in the attached patch.
Assignee: nobody → giles
Attachment #701323 -
Flags: review?(paul)
Attachment #701323 -
Flags: review?(kinetik)
Comment 6•12 years ago
|
||
OK, but like I said it won't fix the problem that I'm seeing.
Here's some debugging output of my resampling code (note how the number of consumed and output samples are smaller than the ones requested):
Resampling, inSamples 1024 -> 1023, outSamples 4058 -> 4058
Resampling, inSamples 1024 -> 1023, outSamples 4058 -> 4055
Resampling, inSamples 1024 -> 1023, outSamples 4058 -> 4058
Resampling, inSamples 1024 -> 1023, outSamples 4058 -> 4055
Resampling, inSamples 1024 -> 1023, outSamples 4058 -> 4058
Resampling, inSamples 1024 -> 1023, outSamples 4058 -> 4055
Updated•12 years ago
|
Attachment #701323 -
Flags: review?(kinetik) → review+
Updated•12 years ago
|
Attachment #701323 -
Flags: review?(paul) → review+
Comment 8•12 years ago
|
||
Keywords: checkin-needed
Comment 9•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•