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
f0161594
Commit
f0161594
authored
Jan 07, 2010
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup aspect_to_info().
Originally committed as revision 21048 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
214cb565
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
h263.c
libavcodec/h263.c
+5
-6
No files found.
libavcodec/h263.c
View file @
f0161594
...
...
@@ -151,19 +151,18 @@ static void show_pict_info(MpegEncContext *s){
#if CONFIG_ENCODERS
static
void
aspect_to_info
(
MpegEncContext
*
s
,
AVRational
aspect
){
static
av_const
int
aspect_to_info
(
AVRational
aspect
){
int
i
;
if
(
aspect
.
num
==
0
)
aspect
=
(
AVRational
){
1
,
1
};
for
(
i
=
1
;
i
<
6
;
i
++
){
if
(
av_cmp_q
(
pixel_aspect
[
i
],
aspect
)
==
0
){
s
->
aspect_ratio_info
=
i
;
return
;
return
i
;
}
}
s
->
aspect_ratio_info
=
FF_ASPECT_EXTENDED
;
return
FF_ASPECT_EXTENDED
;
}
void
ff_flv_encode_picture_header
(
MpegEncContext
*
s
,
int
picture_number
)
...
...
@@ -304,7 +303,7 @@ void h263_encode_picture_header(MpegEncContext * s, int picture_number)
if
(
format
==
7
)
{
/* Custom Picture Format (CPFMT) */
aspect_to_info
(
s
,
s
->
avctx
->
sample_aspect_ratio
);
s
->
aspect_ratio_info
=
aspect_to_info
(
s
->
avctx
->
sample_aspect_ratio
);
put_bits
(
&
s
->
pb
,
4
,
s
->
aspect_ratio_info
);
put_bits
(
&
s
->
pb
,
9
,(
s
->
width
>>
2
)
-
1
);
...
...
@@ -2308,7 +2307,7 @@ static void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_n
put_bits
(
&
s
->
pb
,
3
,
1
);
/* is obj layer priority */
}
aspect_to_info
(
s
,
s
->
avctx
->
sample_aspect_ratio
);
s
->
aspect_ratio_info
=
aspect_to_info
(
s
->
avctx
->
sample_aspect_ratio
);
put_bits
(
&
s
->
pb
,
4
,
s
->
aspect_ratio_info
);
/* aspect ratio info */
if
(
s
->
aspect_ratio_info
==
FF_ASPECT_EXTENDED
){
...
...
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