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
695ec04e
Commit
695ec04e
authored
Mar 22, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: only set SAR once on the decoded frame.
No point in repeating the assignment for each output stream.
parent
1337de0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
avconv.c
avconv.c
+3
-2
No files found.
avconv.c
View file @
695ec04e
...
@@ -1913,6 +1913,9 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
...
@@ -1913,6 +1913,9 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
rate_emu_sleep
(
ist
);
rate_emu_sleep
(
ist
);
if
(
ist
->
st
->
sample_aspect_ratio
.
num
)
decoded_frame
->
sample_aspect_ratio
=
ist
->
st
->
sample_aspect_ratio
;
for
(
i
=
0
;
i
<
nb_output_streams
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_output_streams
;
i
++
)
{
OutputStream
*
ost
=
&
output_streams
[
i
];
OutputStream
*
ost
=
&
output_streams
[
i
];
int
frame_size
,
resample_changed
;
int
frame_size
,
resample_changed
;
...
@@ -1941,8 +1944,6 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
...
@@ -1941,8 +1944,6 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
ost
->
resample_pix_fmt
=
decoded_frame
->
format
;
ost
->
resample_pix_fmt
=
decoded_frame
->
format
;
}
}
if
(
ist
->
st
->
sample_aspect_ratio
.
num
)
decoded_frame
->
sample_aspect_ratio
=
ist
->
st
->
sample_aspect_ratio
;
if
(
ist
->
st
->
codec
->
codec
->
capabilities
&
CODEC_CAP_DR1
)
{
if
(
ist
->
st
->
codec
->
codec
->
capabilities
&
CODEC_CAP_DR1
)
{
FrameBuffer
*
buf
=
decoded_frame
->
opaque
;
FrameBuffer
*
buf
=
decoded_frame
->
opaque
;
AVFilterBufferRef
*
fb
=
avfilter_get_video_buffer_ref_from_arrays
(
AVFilterBufferRef
*
fb
=
avfilter_get_video_buffer_ref_from_arrays
(
...
...
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