C2SoftVorbisDec: Ignore error from vorbis_dsp_synthesis
Error from vorbis_dsp_synthesis() is to be ignored.
After seek in some cases, vorbis_dsp_synthesis() returns
OV_ENOTAUDIO when input is not an audio packet.
This results in seek failing for vorbis files.
OMX plugin for Vorbis decoder ignores the errors returned from this
function. C2 plugin is updated to do the same.
Bug: 110759274
Test: cts-tradefed run commandAndExit cts-dev -m CtsMediaTestCases \
-t android.media.cts.DecoderTest
Change-Id: Ic98d0555121c7f741c468c69f1acdb75036d8c3d
diff --git a/media/codec2/components/vorbis/C2SoftVorbisDec.cpp b/media/codec2/components/vorbis/C2SoftVorbisDec.cpp
index 280ae36..48825e4 100644
--- a/media/codec2/components/vorbis/C2SoftVorbisDec.cpp
+++ b/media/codec2/components/vorbis/C2SoftVorbisDec.cpp
@@ -405,10 +405,7 @@
int numFrames = 0;
int ret = vorbis_dsp_synthesis(mState, &pack, 1);
if (0 != ret) {
- ALOGE("vorbis_dsp_synthesis returned %d", ret);
- mSignalledError = true;
- work->result = C2_CORRUPTED;
- return;
+ ALOGD("vorbis_dsp_synthesis returned %d; ignored", ret);
} else {
numFrames = vorbis_dsp_pcmout(
mState, reinterpret_cast<int16_t *> (wView.data()),