projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19dceef
)
vsrc_testsrc: fix uninitilaized variable bug
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 30 Aug 2012 03:15:03 +0000
(
05:15
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 30 Aug 2012 03:15:03 +0000
(
05:15
+0200)
Found-by: gcc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_testsrc.c
patch
|
blob
|
history
diff --git
a/libavfilter/vsrc_testsrc.c
b/libavfilter/vsrc_testsrc.c
index
37fd69a
..
410824a
100644
(file)
--- 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(t
est->t
ime_base),
test->sar.num, test->sar.den);
return 0;
}