Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
4736bb9b
Commit
4736bb9b
authored
Jun 03, 2019
by
Philippe Gorley
Browse files
encoder: fix flushing
Change-Id: I6cd7e28ed62581c5635a32966b46171441de42c2
parent
0f6ffcac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/media/media_encoder.cpp
View file @
4736bb9b
...
...
@@ -466,9 +466,7 @@ MediaEncoder::encodeAudio(AudioFrame& frame)
int
MediaEncoder
::
encode
(
AVFrame
*
frame
,
int
streamIdx
)
{
if
(
not
frame
)
return
-
1
;
if
(
!
initialized_
)
{
if
(
!
initialized_
&&
frame
)
{
// Initialize on first video frame, or first audio frame if no video stream
bool
isVideo
=
(
frame
->
width
>
0
&&
frame
->
height
>
0
);
if
(
isVideo
or
not
videoOpts_
.
isValid
())
{
...
...
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