[FFmpeg-devel] [PATCH 2/2] ffprobe: print codec timecode if available.

Stefano Sabatini stefasab at gmail.com
Thu Nov 17 01:30:13 CET 2011


On date Wednesday 2011-11-16 17:52:34 +0100, Clément Bœsch encoded:
> From: Clément Bœsch <clement.boesch at smartjog.com>
> 
> ---
>  ffprobe.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/ffprobe.c b/ffprobe.c
> index c15cf7b..70198a6 100644
> --- a/ffprobe.c
> +++ b/ffprobe.c
> @@ -977,6 +977,8 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
>              if (s) print_str    ("pix_fmt", s);
>              else   print_str_opt("pix_fmt", "unknown");
>              print_int("level",   dec_ctx->level);
> +            if (dec_ctx->timecode_str[0])
> +                print_str("timecode", dec_ctx->timecode_str);

else print_str_opt("N\A");

It should be printed anyway in compact/default (possible problem:
timecode_str[] may assume the value "N/A").
-- 
FFmpeg = Fanciful and Friendly Minimalistic Pure EntanGlement


More information about the ffmpeg-devel mailing list