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
2886aee7
Commit
2886aee7
authored
Aug 17, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: merge two loops in output_packet().
parent
f1176d41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
19 deletions
+9
-19
avconv.c
avconv.c
+9
-19
No files found.
avconv.c
View file @
2886aee7
...
...
@@ -1552,25 +1552,6 @@ static int output_packet(InputStream *ist, int ist_index,
avpkt
.
size
=
0
;
}
#if CONFIG_AVFILTER
if
(
ist
->
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
for
(
i
=
0
;
i
<
nb_ostreams
;
i
++
)
{
ost
=
&
ost_table
[
i
];
if
(
ost
->
input_video_filter
&&
ost
->
source_index
==
ist_index
)
{
AVRational
sar
;
if
(
ist
->
st
->
sample_aspect_ratio
.
num
)
sar
=
ist
->
st
->
sample_aspect_ratio
;
else
sar
=
ist
->
st
->
codec
->
sample_aspect_ratio
;
// add it to be filtered
av_vsrc_buffer_add_frame
(
ost
->
input_video_filter
,
&
picture
,
ist
->
pts
,
sar
);
}
}
}
#endif
// preprocess audio (volume)
if
(
ist
->
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
{
if
(
audio_volume
!=
256
)
{
...
...
@@ -1603,6 +1584,15 @@ static int output_packet(InputStream *ist, int ist_index,
continue
;
#if CONFIG_AVFILTER
if
(
ist
->
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
ost
->
input_video_filter
)
{
AVRational
sar
;
if
(
ist
->
st
->
sample_aspect_ratio
.
num
)
sar
=
ist
->
st
->
sample_aspect_ratio
;
else
sar
=
ist
->
st
->
codec
->
sample_aspect_ratio
;
av_vsrc_buffer_add_frame
(
ost
->
input_video_filter
,
&
picture
,
ist
->
pts
,
sar
);
}
frame_available
=
ist
->
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_VIDEO
||
!
ost
->
output_video_filter
||
avfilter_poll_frame
(
ost
->
output_video_filter
->
inputs
[
0
]);
while
(
frame_available
)
{
...
...
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