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
8e84c072
Commit
8e84c072
authored
Jun 09, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intelh263dec: aspect ratio processing fix.
patch submitted by xvid_fan freenet de
parent
95a05030
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
intelh263dec.c
libavcodec/intelh263dec.c
+8
-2
No files found.
libavcodec/intelh263dec.c
View file @
8e84c072
...
...
@@ -67,6 +67,8 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s)
if
(
format
<
6
)
{
s
->
width
=
h263_format
[
format
][
0
];
s
->
height
=
h263_format
[
format
][
1
];
s
->
avctx
->
sample_aspect_ratio
.
num
=
12
;
s
->
avctx
->
sample_aspect_ratio
.
den
=
11
;
}
else
{
format
=
get_bits
(
&
s
->
gb
,
3
);
if
(
format
==
0
||
format
==
7
){
...
...
@@ -91,9 +93,13 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s)
skip_bits1
(
&
s
->
gb
);
skip_bits
(
&
s
->
gb
,
9
);
// display height
if
(
ar
==
15
){
skip_bits
(
&
s
->
gb
,
8
);
// aspect ratio - width
skip_bits
(
&
s
->
gb
,
8
);
// aspect ratio - height
s
->
avctx
->
sample_aspect_ratio
.
num
=
get_bits
(
&
s
->
gb
,
8
);
// aspect ratio - width
s
->
avctx
->
sample_aspect_ratio
.
den
=
get_bits
(
&
s
->
gb
,
8
);
// aspect ratio - height
}
else
{
s
->
avctx
->
sample_aspect_ratio
=
ff_h263_pixel_aspect
[
ar
];
}
if
(
s
->
avctx
->
sample_aspect_ratio
.
num
==
0
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Invalid aspect ratio.
\n
"
);
}
s
->
chroma_qscale
=
s
->
qscale
=
get_bits
(
&
s
->
gb
,
5
);
...
...
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