Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
202e03fc
authored
Nov 22, 2022
by
christosts
Committed by
microkatz
Nov 22, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix compilation error in ffmpeg JNI layer
PiperOrigin-RevId: 490263003
parent
2584530e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
extensions/ffmpeg/src/main/jni/ffmpeg_jni.cc
extensions/ffmpeg/src/main/jni/ffmpeg_jni.cc
View file @
202e03fc
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment