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
0637e505
Commit
0637e505
authored
Jul 21, 2011
by
Thierry Foucu
Committed by
Ronald S. Bultje
Jul 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4: decode Level Profile for MPEG4 Part 2.
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
364d6427
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+19
-0
No files found.
libavcodec/mpeg4videodec.c
View file @
0637e505
...
...
@@ -1523,6 +1523,22 @@ static int mpeg4_decode_gop_header(MpegEncContext * s, GetBitContext *gb){
return
0
;
}
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
);
// for Simple profile, level 0
if
(
s
->
avctx
->
profile
==
0
&&
s
->
avctx
->
level
==
8
)
{
s
->
avctx
->
level
=
0
;
}
return
0
;
}
static
int
decode_vol_header
(
MpegEncContext
*
s
,
GetBitContext
*
gb
){
int
width
,
height
,
vo_ver_id
;
...
...
@@ -2177,6 +2193,9 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb)
else
if
(
startcode
==
GOP_STARTCODE
){
mpeg4_decode_gop_header
(
s
,
gb
);
}
else
if
(
startcode
==
VOS_STARTCODE
){
mpeg4_decode_profile_level
(
s
,
gb
);
}
else
if
(
startcode
==
VOP_STARTCODE
){
break
;
}
...
...
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