Browse code

vsrc_buffer: during init, print information about timebase and sample aspect ratio

Stefano Sabatini authored on 2011/05/07 19:44:18
Showing 1 changed files
... ...
@@ -133,7 +133,10 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
133 133
         }
134 134
     }
135 135
 
136
-    av_log(ctx, AV_LOG_INFO, "w:%d h:%d pixfmt:%s\n", c->w, c->h, av_pix_fmt_descriptors[c->pix_fmt].name);
136
+    av_log(ctx, AV_LOG_INFO, "w:%d h:%d pixfmt:%s tb:%d/%d sar:%d/%d\n",
137
+           c->w, c->h, av_pix_fmt_descriptors[c->pix_fmt].name,
138
+           c->time_base.num, c->time_base.den,
139
+           c->sample_aspect_ratio.num, c->sample_aspect_ratio.den);
137 140
     return 0;
138 141
 }
139 142