Always print SAR and tel about unknown codec type

This commit is contained in:
Isaac Connor 2021-05-31 14:43:55 -04:00
parent 50fe7100fa
commit d2941d6b87
1 changed files with 5 additions and 0 deletions

View File

@ -323,6 +323,9 @@ void zm_dump_stream_format(AVFormatContext *ic, int i, int index, int is_output)
Debug(1, ", SAR %d:%d DAR %d:%d", Debug(1, ", SAR %d:%d DAR %d:%d",
st->sample_aspect_ratio.num, st->sample_aspect_ratio.den, st->sample_aspect_ratio.num, st->sample_aspect_ratio.den,
display_aspect_ratio.num, display_aspect_ratio.den); display_aspect_ratio.num, display_aspect_ratio.den);
} else {
Debug(1, ", SAR %d:%d ",
st->sample_aspect_ratio.num, st->sample_aspect_ratio.den);
} }
if (codec->codec_type == AVMEDIA_TYPE_VIDEO) { if (codec->codec_type == AVMEDIA_TYPE_VIDEO) {
@ -336,6 +339,8 @@ void zm_dump_stream_format(AVFormatContext *ic, int i, int index, int is_output)
} else if (codec->codec_type == AVMEDIA_TYPE_AUDIO) { } else if (codec->codec_type == AVMEDIA_TYPE_AUDIO) {
Debug(1, "profile %d channels %d sample_rate %d", Debug(1, "profile %d channels %d sample_rate %d",
codec->profile, codec->channels, codec->sample_rate); codec->profile, codec->channels, codec->sample_rate);
} else {
Debug(1, "Unknown codec type %d", codec->codec_type);
} }
if (st->disposition & AV_DISPOSITION_DEFAULT) if (st->disposition & AV_DISPOSITION_DEFAULT)