Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
07461467
Commit
07461467
authored
Feb 04, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OMX: Don't use hardcoded profile numbers
parent
1fa9becf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
modules/codec/omxil/omxil.c
modules/codec/omxil/omxil.c
+1
-1
modules/codec/omxil/utils.c
modules/codec/omxil/utils.c
+8
-7
No files found.
modules/codec/omxil/omxil.c
View file @
07461467
...
...
@@ -190,7 +190,7 @@ static OMX_ERRORTYPE ImplementationSpecificWorkarounds(decoder_t *p_dec,
{
if
(
p_fmt
->
i_cat
==
VIDEO_ES
&&
def
->
eDir
==
OMX_DirInput
&&
p_fmt
->
i_codec
==
VLC_CODEC_H264
&&
(
i_profile
!=
66
||
i_level
>
30
))
(
i_profile
!=
PROFILE_H264_BASELINE
||
i_level
>
30
))
{
msg_Dbg
(
p_dec
,
"h264 profile/level not supported (0x%x, 0x%x)"
,
i_profile
,
i_level
);
...
...
modules/codec/omxil/utils.c
View file @
07461467
...
...
@@ -37,6 +37,7 @@
#include "omxil.h"
#include "qcom.h"
#include "../../video_chroma/copy.h"
#include "../h264_nal.h"
/*****************************************************************************
* Events utility functions
...
...
@@ -1053,13 +1054,13 @@ static const struct
size_t
profile_idc
;
}
omx_to_profile_idc
[]
=
{
{
OMX_VIDEO_AVCProfileBaseline
,
66
},
{
OMX_VIDEO_AVCProfileMain
,
77
},
{
OMX_VIDEO_AVCProfileExtended
,
88
},
{
OMX_VIDEO_AVCProfileHigh
,
100
},
{
OMX_VIDEO_AVCProfileHigh10
,
1
10
},
{
OMX_VIDEO_AVCProfileHigh422
,
1
22
},
{
OMX_VIDEO_AVCProfileHigh444
,
2
44
},
{
OMX_VIDEO_AVCProfileBaseline
,
PROFILE_H264_BASELINE
},
{
OMX_VIDEO_AVCProfileMain
,
PROFILE_H264_MAIN
},
{
OMX_VIDEO_AVCProfileExtended
,
PROFILE_H264_EXTENDED
},
{
OMX_VIDEO_AVCProfileHigh
,
PROFILE_H264_HIGH
},
{
OMX_VIDEO_AVCProfileHigh10
,
PROFILE_H264_HIGH_
10
},
{
OMX_VIDEO_AVCProfileHigh422
,
PROFILE_H264_HIGH_4
22
},
{
OMX_VIDEO_AVCProfileHigh444
,
PROFILE_H264_HIGH_4
44
},
};
size_t
convert_omx_to_profile_idc
(
OMX_VIDEO_AVCPROFILETYPE
profile_type
)
...
...
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