mirror of
https://github.com/samsonjs/media.git
synced 2026-04-18 13:25:47 +00:00
Fix compilation error in ffmpeg JNI layer
PiperOrigin-RevId: 490263003
(cherry picked from commit a9be38a339)
This commit is contained in:
parent
103b7cde30
commit
6661b757fd
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