Skip to content

Commit a9be38a

Browse files
christostsmicrokatz
authored andcommitted
Fix compilation error in ffmpeg JNI layer
PiperOrigin-RevId: 490263003
1 parent 779b042 commit a9be38a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/decoder_ffmpeg/src/main/jni/ffmpeg_jni.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int decodePacket(AVCodecContext *context, AVPacket *packet,
9292
/**
9393
* Transforms ffmpeg AVERROR into a negative AUDIO_DECODER_ERROR constant value.
9494
*/
95-
int transformError(const char *functionName, int errorNumber);
95+
int transformError(int errorNumber);
9696

9797
/**
9898
* Outputs a log message describing the avcodec error number.
@@ -349,9 +349,9 @@ int decodePacket(AVCodecContext *context, AVPacket *packet,
349349
return outSize;
350350
}
351351

352-
int transformError(int result) {
353-
return result == AVERROR_INVALIDDATA ? AUDIO_DECODER_ERROR_INVALID_DATA
354-
: AUDIO_DECODER_ERROR_OTHER;
352+
int transformError(int errorNumber) {
353+
return errorNumber == AVERROR_INVALIDDATA ? AUDIO_DECODER_ERROR_INVALID_DATA
354+
: AUDIO_DECODER_ERROR_OTHER;
355355
}
356356

357357
void logError(const char *functionName, int errorNumber) {

0 commit comments

Comments
 (0)