Commit 202e03fc by christosts Committed by microkatz

Fix compilation error in ffmpeg JNI layer

PiperOrigin-RevId: 490263003
parent 2584530e
Showing with 3 additions and 3 deletions
...@@ -91,7 +91,7 @@ int decodePacket(AVCodecContext *context, AVPacket *packet, ...@@ -91,7 +91,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.
...@@ -348,8 +348,8 @@ int decodePacket(AVCodecContext *context, AVPacket *packet, ...@@ -348,8 +348,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