[FFmpeg-devel] [PATCH 2/5] fftools/ffprobe: fix max_bit_rate dump.

Moritz Barsnick barsnick at gmx.net
Mon Nov 19 00:03:42 EET 2018


> +    if (dec_ctx->rc_max_rate > 0) print_val ("max_bit_rate", dec_ctx->rc_max_rate, unit_bit_per_second_str);
> +    else                          print_str_opt("max_bit_rate", "N/A");
>      if (dec_ctx && dec_ctx->bits_per_raw_sample > 0) print_fmt("bits_per_raw_sample", "%d", dec_ctx->bits_per_raw_sample);

If the (now) second condition needs to check for validity of dec_ctx,
shouldn't the new first one also need to check?

Moritz


More information about the ffmpeg-devel mailing list