Skip to content

Commit

Permalink
lavfi: print key-frame and picture type information in ff_dlog_ref()
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
(cherry picked from commit f7bdffb)
  • Loading branch information
Stefano Sabatini authored and aconverse committed May 16, 2011
1 parent 005db47 commit 5dc65a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libavfilter/avfilter.c
Expand Up @@ -237,11 +237,13 @@ static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end)
ref->pts, ref->pos);

if (ref->video) {
av_dlog(ctx, " a:%d/%d s:%dx%d i:%c",
av_dlog(ctx, " a:%d/%d s:%dx%d i:%c iskey:%d type:%c",
ref->video->pixel_aspect.num, ref->video->pixel_aspect.den,
ref->video->w, ref->video->h,
!ref->video->interlaced ? 'P' : /* Progressive */
ref->video->top_field_first ? 'T' : 'B'); /* Top / Bottom */
ref->video->top_field_first ? 'T' : 'B', /* Top / Bottom */
ref->video->key_frame,
av_get_picture_type_char(ref->video->pict_type));
}
if (ref->audio) {
av_dlog(ctx, " cl:%"PRId64"d sn:%d s:%d sr:%d p:%d",
Expand Down

0 comments on commit 5dc65a3

Please sign in to comment.