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
e7188a1a
Commit
e7188a1a
authored
Jan 21, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avprobe: remove a pointless condition and a dead branch
AVStream.codec is always non-NULL
parent
dc4983d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
66 deletions
+63
-66
avprobe.c
avprobe.c
+63
-66
No files found.
avprobe.c
View file @
e7188a1a
...
@@ -610,7 +610,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
...
@@ -610,7 +610,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
probe_int
(
"index"
,
stream
->
index
);
probe_int
(
"index"
,
stream
->
index
);
if
((
dec_ctx
=
stream
->
codec
))
{
dec_ctx
=
stream
->
codec
;
if
((
dec
=
dec_ctx
->
codec
))
{
if
((
dec
=
dec_ctx
->
codec
))
{
probe_str
(
"codec_name"
,
dec
->
name
);
probe_str
(
"codec_name"
,
dec
->
name
);
probe_str
(
"codec_long_name"
,
dec
->
long_name
);
probe_str
(
"codec_long_name"
,
dec
->
long_name
);
...
@@ -676,9 +676,6 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
...
@@ -676,9 +676,6 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
av_get_bits_per_sample
(
dec_ctx
->
codec_id
));
av_get_bits_per_sample
(
dec_ctx
->
codec_id
));
break
;
break
;
}
}
}
else
{
probe_str
(
"codec_type"
,
"unknown"
);
}
if
(
fmt_ctx
->
iformat
->
flags
&
AVFMT_SHOW_IDS
)
if
(
fmt_ctx
->
iformat
->
flags
&
AVFMT_SHOW_IDS
)
probe_int
(
"id"
,
stream
->
id
);
probe_int
(
"id"
,
stream
->
id
);
...
...
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