summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-30 05:15:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-30 05:15:03 +0200
commit310fd0d3d456501d67ca9c029fa4462e286a215e (patch)
tree72edee38d84c65501696d43a673cd977ba3f79b4 /libavfilter
parent19dceef905468e11df26d0aa2f16b20d89e563a0 (diff)
downloadffmpeg-streaming-310fd0d3d456501d67ca9c029fa4462e286a215e.zip
ffmpeg-streaming-310fd0d3d456501d67ca9c029fa4462e286a215e.tar.gz
vsrc_testsrc: fix uninitilaized variable bug
Found-by: gcc Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vsrc_testsrc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 37fd69a..410824a 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -96,7 +96,6 @@ static const AVOption options[] = {
static av_cold int init(AVFilterContext *ctx, const char *args)
{
TestSourceContext *test = ctx->priv;
- AVRational time_base;
int64_t duration = -1;
int ret = 0;
@@ -141,7 +140,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
av_log(ctx, AV_LOG_VERBOSE, "size:%dx%d rate:%d/%d duration:%f sar:%d/%d\n",
test->w, test->h, test->frame_rate.num, test->frame_rate.den,
- duration < 0 ? -1 : test->max_pts * av_q2d(time_base),
+ duration < 0 ? -1 : test->max_pts * av_q2d(test->time_base),
test->sar.num, test->sar.den);
return 0;
}
OpenPOWER on IntegriCloud