Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
a7b48395
Commit
a7b48395
authored
Sep 25, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: factor area out of video stream selection code.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c5e23473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ffmpeg_opt.c
ffmpeg_opt.c
+4
-2
No files found.
ffmpeg_opt.c
View file @
a7b48395
...
@@ -1496,12 +1496,14 @@ void opt_output_file(void *optctx, const char *filename)
...
@@ -1496,12 +1496,14 @@ void opt_output_file(void *optctx, const char *filename)
int
area
=
0
,
idx
=
-
1
;
int
area
=
0
,
idx
=
-
1
;
int
qcr
=
avformat_query_codec
(
oc
->
oformat
,
oc
->
oformat
->
video_codec
,
0
);
int
qcr
=
avformat_query_codec
(
oc
->
oformat
,
oc
->
oformat
->
video_codec
,
0
);
for
(
i
=
0
;
i
<
nb_input_streams
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_input_streams
;
i
++
)
{
int
new_area
;
ist
=
input_streams
[
i
];
ist
=
input_streams
[
i
];
new_area
=
ist
->
st
->
codec
->
width
*
ist
->
st
->
codec
->
height
;
if
(
ist
->
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
if
(
ist
->
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
ist
->
st
->
codec
->
width
*
ist
->
st
->
codec
->
height
>
area
)
{
new_area
>
area
)
{
if
((
qcr
==
MKTAG
(
'A'
,
'P'
,
'I'
,
'C'
))
&&
!
(
ist
->
st
->
disposition
&
AV_DISPOSITION_ATTACHED_PIC
))
if
((
qcr
==
MKTAG
(
'A'
,
'P'
,
'I'
,
'C'
))
&&
!
(
ist
->
st
->
disposition
&
AV_DISPOSITION_ATTACHED_PIC
))
continue
;
continue
;
area
=
ist
->
st
->
codec
->
width
*
ist
->
st
->
codec
->
height
;
area
=
new_area
;
idx
=
i
;
idx
=
i
;
}
}
}
}
...
...
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