Quoting Diego Biurrun (2016-02-21 15:07:24) > On Sun, Feb 21, 2016 at 12:53:25PM +0100, Anton Khirnov wrote: > > --- a/avprobe.c > > +++ b/avprobe.c > > @@ -619,31 +619,25 @@ static void show_stream(AVFormatContext *fmt_ctx, int > > stream_idx) > > > > - probe_str("codec_type", media_type_string(dec_ctx->codec_type)); > > - probe_str("codec_time_base", > > - rational_string(val_str, sizeof(val_str), > > - "/", &dec_ctx->time_base)); > > + probe_str("codec_type", media_type_string(par->codec_type)); > > > > - switch (dec_ctx->codec_type) { > > + switch (par->codec_type) { > > case AVMEDIA_TYPE_VIDEO: > > - probe_int("width", dec_ctx->width); > > - probe_int("height", dec_ctx->height); > > - probe_int("coded_width", dec_ctx->coded_width); > > - probe_int("coded_height", dec_ctx->coded_height); > > - probe_int("has_b_frames", dec_ctx->has_b_frames); > > - if (dec_ctx->sample_aspect_ratio.num) > > - sar = &dec_ctx->sample_aspect_ratio; > > + probe_int("width", par->width); > > + probe_int("height", par->height); > > + if (par->sample_aspect_ratio.num) > > + sar = &par->sample_aspect_ratio; > > Where did those probes go? >
Away. The demuxers do not export those fields, they are codec properties. If someone really cares about avprobe exporting them, it should open a codec and do some decoding. -- Anton Khirnov _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel