commit | 4f74cca0d45df6af3027aa218f3d23c3ee36a451 | [log] [tgz] |
---|---|---|
author | Wonsik Kim <wonsik@google.com> | Tue Jan 21 09:48:44 2020 -0800 |
committer | Wonsik Kim <wonsik@google.com> | Mon Feb 24 19:42:52 2020 +0000 |
tree | 90d374cc95f5c0cf5ee4d848d040507f30606972 | |
parent | 58cc8f2c0254f03d66a28ae1cf0809c171d4ac7d [diff] [blame] |
raw: accept any sample rate greater than 0 Bug: 143058117 Test: run PoC Change-Id: I2d47a05309031a735397838cca11bb4ffbf279e4 Merged-In: I2d47a05309031a735397838cca11bb4ffbf279e4 (cherry picked from commit 1a1500139ba67c47b57083deaf156aba8bfd016f)
diff --git a/media/codec2/components/raw/C2SoftRawDec.cpp b/media/codec2/components/raw/C2SoftRawDec.cpp index 95eb909..7b6f21a 100644 --- a/media/codec2/components/raw/C2SoftRawDec.cpp +++ b/media/codec2/components/raw/C2SoftRawDec.cpp
@@ -58,7 +58,7 @@ addParameter( DefineParam(mSampleRate, C2_PARAMKEY_SAMPLE_RATE) .withDefault(new C2StreamSampleRateInfo::output(0u, 44100)) - .withFields({C2F(mSampleRate, value).inRange(8000, 384000)}) + .withFields({C2F(mSampleRate, value).greaterThan(0)}) .withSetter((Setter<decltype(*mSampleRate)>::StrictValueWithNoDeps)) .build());