From d31792311cff5ef0af653b3eb9d9dd87d3b57ac5 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 29 Jan 2013 19:55:59 +0100 Subject: Fix stream id by another broken hard-coded value. We should av_find_best_stream which frame is the video of intrest. --- src/advtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/advtime.c b/src/advtime.c index a928562..2316f13 100644 --- a/src/advtime.c +++ b/src/advtime.c @@ -173,7 +173,7 @@ main(int argc, char **argv) } if (diff > 40.0) { - start_new_szene(last_dts, vd->fmt_ctx->streams[0]->cur_dts); + start_new_szene(last_dts, vd->fmt_ctx->streams[1]->cur_dts); if (!frame_flag && !average_flag) { printf("\n"); @@ -197,7 +197,7 @@ main(int argc, char **argv) } pswap((void **)&frame_a, (void **)&frame_b); - last_dts = vd->fmt_ctx->streams[0]->cur_dts; + last_dts = vd->fmt_ctx->streams[1]->cur_dts; } if (diff_flag) { -- cgit