mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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.
|
* 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.
|
* Outputs a log message describing the avcodec error number.
|
||||||
|
|
@ -349,9 +349,9 @@ int decodePacket(AVCodecContext *context, AVPacket *packet,
|
||||||
return outSize;
|
return outSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
int transformError(int result) {
|
int transformError(int errorNumber) {
|
||||||
return result == AVERROR_INVALIDDATA ? AUDIO_DECODER_ERROR_INVALID_DATA
|
return errorNumber == AVERROR_INVALIDDATA ? AUDIO_DECODER_ERROR_INVALID_DATA
|
||||||
: AUDIO_DECODER_ERROR_OTHER;
|
: AUDIO_DECODER_ERROR_OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
void logError(const char *functionName, int errorNumber) {
|
void logError(const char *functionName, int errorNumber) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue