mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix compilation error in ffmpeg JNI layer
PiperOrigin-RevId: 490263003
This commit is contained in:
parent
2584530e47
commit
202e03fc64
1 changed files with 4 additions and 4 deletions
|
|
@ -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,9 +348,9 @@ int decodePacket(AVCodecContext *context, AVPacket *packet,
|
|||
return outSize;
|
||||
}
|
||||
|
||||
int transformError(int result) {
|
||||
return result == AVERROR_INVALIDDATA ? AUDIO_DECODER_ERROR_INVALID_DATA
|
||||
: AUDIO_DECODER_ERROR_OTHER;
|
||||
int transformError(int errorNumber) {
|
||||
return errorNumber == AVERROR_INVALIDDATA ? AUDIO_DECODER_ERROR_INVALID_DATA
|
||||
: AUDIO_DECODER_ERROR_OTHER;
|
||||
}
|
||||
|
||||
void logError(const char *functionName, int errorNumber) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue