summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorvan <[email protected]>2009-01-10 04:47:48 +0000
committervan <[email protected]>2009-01-10 04:47:48 +0000
commit593765ab9ee887acec8573339bad3667f3e796d9 (patch)
tree6ac74b67861489e03efbc5cc1ba7137dc5aa62a5 /libhb/common.h
parent24374882ef39dc1aa921c1ed3a93ee18b1866752 (diff)
Get previews from H.264 content even if it's missing IDR frames (e.g., NZ TV & some blu-rays):
- Grab stream characteristics (IDRs or not, PCRs or not, RAPs or not) while we're reading to compute the duration rather than trying to guess with no information later. - Only wait for an IDR after a seek if we know the stream has IDRs. Even then, wait for at most 255 frames. - If the stream doesn't have IDRs tell scan (via a new flag in the title struct) so that it can read but discard a second's worth of frames to get the decoder in sync withe stream. - While we're trying to sync the decoder, ffmpeg will spit out dozens of useless error messages so suppress them. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2071 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 5da21214e..e03769147 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -497,6 +497,10 @@ struct hb_title_s
/* Job template for this title */
hb_job_t * job;
+
+ uint32_t flags;
+ // set if video stream doesn't have IDR frames
+#define HBTF_NO_IDR (1 << 0)
};