summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-29 19:55:59 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-29 19:57:41 +0100
commitd31792311cff5ef0af653b3eb9d9dd87d3b57ac5 (patch)
tree707f150e09e30fa95e8d801ec05104be3f2d4068
parent51f98bcfea541de1db6e18d8e426a4d9e4a25410 (diff)
downloadadvtime-d31792311cff5ef0af653b3eb9d9dd87d3b57ac5.tar.gz
advtime-d31792311cff5ef0af653b3eb9d9dd87d3b57ac5.tar.bz2
advtime-d31792311cff5ef0af653b3eb9d9dd87d3b57ac5.zip
Fix stream id by another broken hard-coded value.
We should av_find_best_stream which frame is the video of intrest.
-rw-r--r--src/advtime.c4
1 files changed, 2 insertions, 2 deletions
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) {