You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avprobe: remove a pointless condition and a dead branch
AVStream.codec is always non-NULL
This commit is contained in:
@@ -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)
|
|||||||
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);
|
||||||
|
Reference in New Issue
Block a user