mirror of
https://github.com/androidx/media.git
synced 2025-05-06 23:20:42 +08:00
Fix lint in FlacExtractor
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=139064912
This commit is contained in:
parent
bcc6c9ef43
commit
6d5d054b45
@ -95,7 +95,7 @@ public final class FlacExtractor implements Extractor {
|
|||||||
if (streamInfo == null) {
|
if (streamInfo == null) {
|
||||||
throw new IOException("Metadata decoding failed");
|
throw new IOException("Metadata decoding failed");
|
||||||
}
|
}
|
||||||
} catch (IOException e){
|
} catch (IOException e) {
|
||||||
decoderJni.reset(0);
|
decoderJni.reset(0);
|
||||||
input.setRetryPosition(0, e);
|
input.setRetryPosition(0, e);
|
||||||
throw e; // never executes
|
throw e; // never executes
|
||||||
@ -137,7 +137,7 @@ public final class FlacExtractor implements Extractor {
|
|||||||
int size;
|
int size;
|
||||||
try {
|
try {
|
||||||
size = decoderJni.decodeSample(outputByteBuffer);
|
size = decoderJni.decodeSample(outputByteBuffer);
|
||||||
} catch (IOException e){
|
} catch (IOException e) {
|
||||||
if (lastDecodePosition >= 0) {
|
if (lastDecodePosition >= 0) {
|
||||||
decoderJni.reset(lastDecodePosition);
|
decoderJni.reset(lastDecodePosition);
|
||||||
input.setRetryPosition(lastDecodePosition, e);
|
input.setRetryPosition(lastDecodePosition, e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user