This info is crucial in knowing which stream to pick in an automated setup.
Signed-off-by: Derek Buitenhuis <[email protected]> --- avprobe.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/avprobe.c b/avprobe.c index b20c78c..baca1ff 100644 --- a/avprobe.c +++ b/avprobe.c @@ -613,6 +613,12 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx) if (dec && (profile = av_get_profile_name(dec, dec_ctx->profile))) probe_str("profile", profile); + /* Handle some common stream dispositions */ + if (stream->disposition & AV_DISPOSITION_DEFAULT) + probe_int("default", 1); + if (stream->disposition & AV_DISPOSITION_FORCED) + probe_int("forced", 1); + switch (dec_ctx->codec_type) { case AVMEDIA_TYPE_VIDEO: probe_int("width", dec_ctx->width); @@ -634,6 +640,10 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx) dec_ctx->pix_fmt != PIX_FMT_NONE ? av_pix_fmt_descriptors[dec_ctx->pix_fmt].name : "unknown"); probe_int("level", dec_ctx->level); + + if (stream->disposition & AV_DISPOSITION_ATTACHED_PIC) + probe_int("is_attached_pic", 1); + break; case AVMEDIA_TYPE_AUDIO: -- 1.7.9.5 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
