summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2009-03-31 17:19:37 +0000
committerjbrjake <[email protected]>2009-03-31 17:19:37 +0000
commita9b9604524e9348f61dc1cd5f299d9b1703e41cc (patch)
treec73b1564ac1659d47cd369572e88cb704c16a6d8 /libhb/common.h
parent276345b4d92a23bd125215f07786fee9449ce3cf (diff)
Adds a job->frame_to_stop variable similar to the existing pts_to_stop parameter, for ending an encode after a certain number of decoded frames.
CLI: Replaces --stop-at-pts and --stop-at-duration with a general --stop-at option. The argument is in the form unit:amount. So --stop-at duration:10 for a 10 second encode, --stop-at pts:300300 to end when that timestamp is reached, or --stop-at frame:1000 to stop after reading 1000 frames. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2286 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 1121ae8ec..19b8d2217 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -231,6 +231,7 @@ struct hb_job_s
int subtitle_force;
char * native_language;
+ int frame_to_stop; // declare eof when we hit this frame
int64_t pts_to_stop; // declare eof when we pass this pts in
// the time-linearized input stream
int start_at_preview; // if non-zero, encoding will start