Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
444e0f0c
Commit
444e0f0c
authored
5 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
media: avoid crash in case of unknown format
Change-Id: I72ea80c56c685545cfa2d185174db1a52da04eb6
parent
e30887fa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/media/media_stream.h
+2
-1
2 additions, 1 deletion
src/media/media_stream.h
with
2 additions
and
1 deletion
src/media/media_stream.h
+
2
−
1
View file @
444e0f0c
...
...
@@ -149,8 +149,9 @@ struct MediaStream {
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
MediaStream
&
ms
)
{
if
(
ms
.
isVideo
)
{
auto
formatName
=
av_get_pix_fmt_name
(
static_cast
<
AVPixelFormat
>
(
ms
.
format
));
os
<<
(
ms
.
name
.
empty
()
?
"(null)"
:
ms
.
name
)
<<
": "
<<
av_get_pix_fmt_name
(
static_cast
<
AVPixelFormat
>
(
ms
.
format
))
<<
" video, "
<<
(
formatName
?
formatName
:
"(unknown
format)
"
)
<<
" video, "
<<
ms
.
width
<<
"x"
<<
ms
.
height
<<
", "
<<
ms
.
frameRate
<<
" fps ("
<<
ms
.
timeBase
<<
")"
;
if
(
ms
.
bitrate
>
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment