Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
52e24c7d
Commit
52e24c7d
authored
Jul 24, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videodec: simplify mpeg4_decode_profile_level()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
9c2651ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+2
-5
No files found.
libavcodec/mpeg4videodec.c
View file @
52e24c7d
...
...
@@ -1528,12 +1528,9 @@ static int mpeg4_decode_gop_header(MpegEncContext * s, GetBitContext *gb){
}
static
int
mpeg4_decode_profile_level
(
MpegEncContext
*
s
,
GetBitContext
*
gb
){
int
profile_and_level_indication
;
profile_and_level_indication
=
get_bits
(
gb
,
8
);
s
->
avctx
->
profile
=
(
profile_and_level_indication
&
0xf0
)
>>
4
;
s
->
avctx
->
level
=
(
profile_and_level_indication
&
0x0f
);
s
->
avctx
->
profile
=
get_bits
(
gb
,
4
);
s
->
avctx
->
level
=
get_bits
(
gb
,
4
);
// for Simple profile, level 0
if
(
s
->
avctx
->
profile
==
0
&&
s
->
avctx
->
level
==
8
)
{
...
...
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