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
878e5bd6
Commit
878e5bd6
authored
Jan 07, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg12: Support decoding dimensions that are a multiple of 4096
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7a6beedd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
mpeg12.c
libavcodec/mpeg12.c
+5
-2
No files found.
libavcodec/mpeg12.c
View file @
878e5bd6
...
...
@@ -2001,8 +2001,6 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
width
=
get_bits
(
&
s
->
gb
,
12
);
height
=
get_bits
(
&
s
->
gb
,
12
);
if
(
width
<=
0
||
height
<=
0
)
return
-
1
;
s
->
aspect_ratio_info
=
get_bits
(
&
s
->
gb
,
4
);
if
(
s
->
aspect_ratio_info
==
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"aspect ratio has forbidden 0 value
\n
"
);
...
...
@@ -2312,6 +2310,11 @@ static int decode_chunks(AVCodecContext *avctx,
break
;
case
PICTURE_START_CODE
:
if
(
s2
->
width
<=
0
||
s2
->
height
<=
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"%dx%d is invalid
\n
"
,
s2
->
width
,
s2
->
height
);
return
AVERROR_INVALIDDATA
;
}
if
(
s
->
tmpgexs
){
s2
->
intra_dc_precision
=
3
;
s2
->
intra_matrix
[
0
]
=
1
;
...
...
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