mirror of
https://github.com/androidx/media.git
synced 2025-05-14 11:09:53 +08:00
Fix compilation error in ffmpeg JNI layer
PiperOrigin-RevId: 490263003 (cherry picked from commit 202e03fc64dac568955ce00684368cbea9b244f7)
This commit is contained in:
parent
9b0790e418
commit
a114b0e01f
@ -91,7 +91,7 @@ int decodePacket(AVCodecContext *context, AVPacket *packet,
|
||||
/**
|
||||
* Transforms ffmpeg AVERROR into a negative AUDIO_DECODER_ERROR constant value.
|
||||
*/
|
||||
int transformError(const char *functionName, int errorNumber);
|
||||
int transformError(int errorNumber);
|
||||
|
||||
/**
|
||||
* Outputs a log message describing the avcodec error number.
|
||||
@ -348,8 +348,8 @@ int decodePacket(AVCodecContext *context, AVPacket *packet,
|
||||
return outSize;
|
||||
}
|
||||
|
||||
int transformError(int result) {
|
||||
return result == AVERROR_INVALIDDATA ? AUDIO_DECODER_ERROR_INVALID_DATA
|
||||
int transformError(int errorNumber) {
|
||||
return errorNumber == AVERROR_INVALIDDATA ? AUDIO_DECODER_ERROR_INVALID_DATA
|
||||
: AUDIO_DECODER_ERROR_OTHER;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user