Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
ffworker
Commits
78fe819e
Commit
78fe819e
authored
Nov 27, 2017
by
Julian Rother
Browse files
transcode: Fix frame_size setting
parent
3e605479
Changes
1
Hide whitespace changes
Inline
Side-by-side
transcode.c
View file @
78fe819e
...
...
@@ -171,6 +171,9 @@ static void setup_output_stream(char *stream, AVStream *st, AVCodecContext *enc,
parse_dict
(
&
opts
,
jlookup
(
stream
,
"options"
));
if
((
err
=
avcodec_open2
(
enc
,
enc
->
codec
,
&
opts
))
<
0
)
job_failed
(
"Opening encoder failed: %s"
,
av_err2str
(
err
));
if
(
enc
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
!
(
enc
->
codec
->
capabilities
&
AV_CODEC_CAP_VARIABLE_FRAME_SIZE
&&
enc
->
frame_size
))
av_buffersink_set_frame_size
(
sink
,
enc
->
frame_size
);
assert_empty_opts
(
opts
);
avcodec_parameters_from_context
(
st
->
codecpar
,
enc
);
}
...
...
Write
Preview
Supports
Markdown
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