Commit a9be38a3 by christosts Committed by microkatz

Fix compilation error in ffmpeg JNI layer

PiperOrigin-RevId: 490263003
parent 779b0428
...@@ -92,7 +92,7 @@ int decodePacket(AVCodecContext *context, AVPacket *packet, ...@@ -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,8 +349,8 @@ int decodePacket(AVCodecContext *context, AVPacket *packet, ...@@ -349,8 +349,8 @@ 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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment