Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fd242479
Commit
fd242479
authored
Aug 03, 2016
by
Timothy Gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: Return ENOSYS on unsupported platforms
parent
4e2a8c49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mediacodec.c
libavcodec/mediacodec.c
+4
-2
No files found.
libavcodec/mediacodec.c
View file @
fd242479
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#include "config.h"
#include "config.h"
#include "libavutil/error.h"
#if CONFIG_H264_MEDIACODEC_HWACCEL
#if CONFIG_H264_MEDIACODEC_HWACCEL
#include <jni.h>
#include <jni.h>
...
@@ -108,7 +110,7 @@ AVMediaCodecContext *av_mediacodec_alloc_context(void)
...
@@ -108,7 +110,7 @@ AVMediaCodecContext *av_mediacodec_alloc_context(void)
int
av_mediacodec_default_init
(
AVCodecContext
*
avctx
,
AVMediaCodecContext
*
ctx
,
void
*
surface
)
int
av_mediacodec_default_init
(
AVCodecContext
*
avctx
,
AVMediaCodecContext
*
ctx
,
void
*
surface
)
{
{
return
0
;
return
AVERROR
(
ENOSYS
)
;
}
}
void
av_mediacodec_default_free
(
AVCodecContext
*
avctx
)
void
av_mediacodec_default_free
(
AVCodecContext
*
avctx
)
...
@@ -117,7 +119,7 @@ void av_mediacodec_default_free(AVCodecContext *avctx)
...
@@ -117,7 +119,7 @@ void av_mediacodec_default_free(AVCodecContext *avctx)
int
av_mediacodec_release_buffer
(
AVMediaCodecBuffer
*
buffer
,
int
render
)
int
av_mediacodec_release_buffer
(
AVMediaCodecBuffer
*
buffer
,
int
render
)
{
{
return
0
;
return
AVERROR
(
ENOSYS
)
;
}
}
#endif
#endif
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