mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Fix compilation error in ffmpeg JNI layer
PiperOrigin-RevId: 490263003
This commit is contained in:
parent
779b042845
commit
a9be38a339
1 changed files with 4 additions and 4 deletions
|
|
@ -92,7 +92,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.
|
||||
|
|
@ -349,9 +349,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