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
9a151467
Commit
9a151467
authored
Aug 18, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: use av_get_media_type_string() in media_type_string(), simplify
parent
69e2c1a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
ffprobe.c
ffprobe.c
+2
-8
No files found.
ffprobe.c
View file @
9a151467
...
...
@@ -117,14 +117,8 @@ static char *ts_value_string (char *buf, int buf_size, int64_t ts)
static
const
char
*
media_type_string
(
enum
AVMediaType
media_type
)
{
switch
(
media_type
)
{
case
AVMEDIA_TYPE_VIDEO
:
return
"video"
;
case
AVMEDIA_TYPE_AUDIO
:
return
"audio"
;
case
AVMEDIA_TYPE_DATA
:
return
"data"
;
case
AVMEDIA_TYPE_SUBTITLE
:
return
"subtitle"
;
case
AVMEDIA_TYPE_ATTACHMENT
:
return
"attachment"
;
default:
return
"unknown"
;
}
const
char
*
s
=
av_get_media_type_string
(
media_type
);
return
s
?
s
:
"unknown"
;
}
static
void
show_packet
(
AVFormatContext
*
fmt_ctx
,
AVPacket
*
pkt
)
...
...
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