diff options
author | John Stebbins <[email protected]> | 2017-04-12 15:09:26 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-04-12 15:09:26 -0600 |
commit | 969b60fff13091268e9aa5775e6822c1bca7e874 (patch) | |
tree | 80c74e31ada627fab3b7170bd134cd3871cd378c /libhb/common.h | |
parent | 9a22ae2b2715b088cd936ba5e7d700ee4fbea096 (diff) |
scan: fix very slow scanning for some files
The threshold in bytes for when to give up trying to decode a frame was
too big for a lot of streams. It was made large to accomodate 4K raw
video. Instead of counting bytes, count frames fed to the decoder.
This is more consistant regardless of video resolution and codec.
Diffstat (limited to 'libhb/common.h')
-rw-r--r-- | libhb/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h index e6ef1270d..a9bc3d412 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -1151,6 +1151,7 @@ struct hb_work_object_s volatile int * done; volatile int * die; int status; + int frame_count; int codec_param; hb_title_t * title; |