[FFmpeg-cvslog] r22964 - trunk/ffprobe.c
stefano
subversion
Mon Apr 26 01:35:56 CEST 2010
Author: stefano
Date: Mon Apr 26 01:35:56 2010
New Revision: 22964
Log:
Make ffprobe show stream->nb_frames if that info is known.
Patch by Robert Kr?ger $(echo kru3g3r at signal7.d3 | sed -e 's/3/e/g').
Modified:
trunk/ffprobe.c
Modified: trunk/ffprobe.c
==============================================================================
--- trunk/ffprobe.c Sun Apr 25 20:47:40 2010 (r22963)
+++ trunk/ffprobe.c Mon Apr 26 01:35:56 2010 (r22964)
@@ -190,6 +190,8 @@ static void show_stream(AVFormatContext
&stream->time_base));
printf("duration=%s\n", time_value_string(val_str, sizeof(val_str), stream->duration,
&stream->time_base));
+ if (stream->nb_frames)
+ printf("nb_frames=%"PRId64"\n", stream->nb_frames);
while ((tag = av_metadata_get(stream->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX)))
printf("TAG:%s=%s\n", tag->key, tag->value);
More information about the ffmpeg-cvslog
mailing list