summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* libhb: enable crc checking of audio streams during audio parameter probejstebbins2014-11-051-2/+7
| | | | | | | | | We used to check ac3 crc's when we used a52 dec. When we switched to libav we did not enable crc checks. I suspect this is the root cause of this problem https://forum.handbrake.fr/viewtopic.php?f=12&t=31032 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6507 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix p-to-p start for some streamsjstebbins2014-11-051-18/+21
| | | | | | | | | The primary problem was in setting our "zero" time in reader based on a stream that is not decoded. Since this stream never reaches sync, there would appear to be a long initial frame from syncs perspective. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6506 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: fix writing outside bufferjstebbins2014-10-301-0/+15
| | | | | | | | When the rollup mode changes, check if the baserow + rollup height goes outside the screen. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6487 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fifo: add code (ifdef'd out) to assist with finding buffer leaksjstebbins2014-10-301-0/+33
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6485 b64f7644-9d1e-0410-96f1-a4d463321fa5
* param: fix compiler warningjstebbins2014-10-301-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6484 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxcommon: fix bitvec leakjstebbins2014-10-301-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6483 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: fix subtitle buffer leakjstebbins2014-10-301-0/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6482 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decavcodec: fix a 4 byte overread of extradata by libavjstebbins2014-10-291-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6480 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decpgssub: make sure all packets get marked as subtitle framesjstebbins2014-10-291-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6476 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: improve CC detectionjstebbins2014-10-281-7/+15
| | | | | | | | | We are failing to detect CCs in some sources because the CC data is not present on every frame. Makes scan always decode a few extra frames to give the decode a better chance of seeing the CC data. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6471 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix blinking of rendered closed captionsjstebbins2014-10-221-5/+16
| | | | | | | Rounding errors in timestamps caused single frame duration gaps git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6454 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix CC roll-ups that move around the screenjstebbins2014-10-221-0/+102
| | | | | | | | These were causing errors in the parser. Handle them according to recommendations in the CC spec. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6453 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Add filter parameter validation.bradleys2014-10-152-5/+72
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6447 b64f7644-9d1e-0410-96f1-a4d463321fa5
* contrib: Add libgnurx to provide POSIX regex on Windows.bradleys2014-10-151-1/+7
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6445 b64f7644-9d1e-0410-96f1-a4d463321fa5
* ilibhb: Fix reading from DVDISO files with non-ASCII filenames on Windowsjstebbins2014-10-132-8/+33
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6443 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: improve preview generateion when there are no IDRsjstebbins2014-10-024-5/+42
| | | | | | | | | | Puts the decoder into a mode that returns *all* frames. I.e. it won't just scan to the end of the file looking for an IDR. Then we decode multiple frames (up to 100) searching for an I frame. This way, the reconstructed frame we use for a preview is more likely to be complete. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6430 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: simplify avcodec extradata parsingjstebbins2014-10-021-75/+21
| | | | | | | | | Use avcodec parser->split() instead of writing our own parser. This makes extradata parsing work for stream formats other than vc1 if the need should ever arise. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6429 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608: fix rollup style CC problemsjstebbins2014-09-262-37/+38
| | | | | | | | | | | | The timing of the "erase display" command was incorrect for rollup CC and erased subtitles immediately after they were displayed. When rendering, sometimes rollup subtitles arrived at the renderer far after the frame they should be rendered on. So push rollup subtitles into the pipeline for each new character received when rendering. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6421 b64f7644-9d1e-0410-96f1-a4d463321fa5
* rendersub: fix *very* occasional blinking subtitle textjstebbins2014-09-161-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6409 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix utf8/srt sub line ending parsingjstebbins2014-09-151-1/+11
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6408 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: re-enable vobsub in mp4 supportjstebbins2014-09-131-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6401 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: thread nlmeans filterjstebbins2014-09-093-218/+449
| | | | | | | Scales well with number of CPUs, so is 4x faster on quad cores. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6397 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix scanning of video that is a single GOPjstebbins2014-09-092-29/+52
| | | | | | | | | | With this type of stream, scan only successfully decodes 1 frame. Eliminating the flush after seek allows decoding more frames. Note that there is a side effect of allowing some junk frames to be decoded, so we only skip the flush if normal scanning finds only 1 frame. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6396 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix CC text attributesjstebbins2014-09-082-16/+25
| | | | | | | The attributes (like italic) were not getting cleared when necessary. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6395 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: plug memory leaksjstebbins2014-09-053-0/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6394 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix setting thread_count for libav encodingjstebbins2014-09-041-3/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6389 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix mp4 optimizejstebbins2014-09-011-2/+3
| | | | | | | movflags were being overwritten, silly error on my part. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6386 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: don't set duration of PGS subtitlesjstebbins2014-08-301-2/+4
| | | | | | | | | | PGS subtitles are terminated by an explicit "end of sub" subtitle in the stream. The duration is not used (or known in advance). So every PGS was getting the default 10s duration assigned. This made the overall duration of the stream appear longer than it really is. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6384 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add gpl v2 copyright message do deccc608subjstebbins2014-08-292-0/+18
| | | | | | | much of this work was borrowed from ccextractor which is GPL v2 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6383 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix small error in "empty" mp4 subtitle durationjstebbins2014-08-271-3/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6376 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix tx3g styles when the entire line is one stylejstebbins2014-08-271-2/+12
| | | | | | | the style was not getting flushed if there were no style changes git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6375 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix merging of ssa subtitlesjstebbins2014-08-271-6/+34
| | | | | | | | mergeSubtitle was originally written for pure text subs. But now the subtitle buffers have extra ssa formatting that needs different treatment. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6374 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: remove emptry tx3g subtitlesjstebbins2014-08-271-3/+12
| | | | | | | We don't need the empty subtitle buffers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6373 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix stop time of subtitlesjstebbins2014-08-271-0/+4
| | | | | | | scr_offset was not accounted for in stop time git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6372 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix dimensions problem when both width and height are specifiedjstebbins2014-08-272-13/+12
| | | | | | | | | | | | | The GUI will precompute both width and height and specify both on the command line. But then the CLI recomputes width based on height which can result in the width being changed. So, in non-anamorphic mode, disable keep_aspect so that width and heigh are both kept. And in other anamorphic modes, use custom ana when computing dimensions so that both width and height are kept (i.e. recompute par). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6369 b64f7644-9d1e-0410-96f1-a4d463321fa5
* x265: enable 2-pass ABR encodingjstebbins2014-08-262-23/+50
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6366 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix accumulating rounding error in CoreAudio timestampsjstebbins2014-08-261-4/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6363 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: Fix muxing of AAC that is missing extradatajstebbins2014-08-201-26/+32
| | | | | | | | | Allocate extra byte so extradata pointer is not NULL. Fix logging of malloc failures so we can see what failed. Fix test for existence of extradata, check length NOT bytes. bytes is never NULL git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6327 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix potential crash in filtersjstebbins2014-08-201-1/+1
| | | | | | | If the job aborts right away, an uninitialized buffer is closed and crash! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6326 b64f7644-9d1e-0410-96f1-a4d463321fa5
* build: remove mp4v2 and libmkv dependenciesjstebbins2014-08-189-2218/+3
| | | | | | | ...and enable x265 by default git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6309 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Sanitize BD chapter durationsjstebbins2014-08-111-2/+43
| | | | | | | | | | | | | | It appears some BDs have invalid chapter durations, see https://forum.handbrake.fr/viewtopic.php?f=12&t=30479 This compares chapter start time deltas and title duration to chapter duration to make best guess corrections. Note that chapter events generated by libbluray are based on the chapter start times. So the start time should be trusted more than the duration. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6292 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix mp4 audio track titlesjstebbins2014-08-061-0/+7
| | | | | | | mp4 audio track titles were not being applied by libavformat git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6270 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix mp4 post tagging problemsjstebbins2014-08-061-0/+1
| | | | | | | | | | | A couple common mp4 taggers (mp3Tag and iTunes) fail to tag files that have the Nero chapter atom (chpl). This atom was added when we switched to libavformat for muxing. I haven't found any players yet that rely on this for chapters. If we ever find any, we can consider adding an option somewhere to enable chpl. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6269 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fix comment in isIframe()jstebbins2014-07-301-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6248 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add i-frame detection for mpeg4 ts/ps streamsjstebbins2014-07-301-0/+15
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6247 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix potential seg fault in hb_hexdumpjstebbins2014-07-301-1/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6246 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add new function for retrieving previewsjstebbins2014-07-296-36/+190
| | | | | | | | | | | | | | | | This new function has a couple advantages over the old one (which we should phase out). It does not require hb_job_t as a parameter, instead it uses hb_ui_geometry_t which is a smaller and simpler struct. The entire job struct is overkill as input to this function. It returns an hb_image_t that fully describes the returned image instead of just a uint8_t array. The caller does not have to make assumptions about image size, line stide, or pixel format since hb_image_t specifies these things. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6242 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui/CLI/libhb: add nlmeans denoise filter to linguijstebbins2014-07-212-0/+229
| | | | | | | Move nlmeans preset&tune parsing from cli to libhb git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6239 b64f7644-9d1e-0410-96f1-a4d463321fa5
* cli: allow user cli options to override defaults for fallback audio encoderjstebbins2014-07-162-10/+66
| | | | | | | Solves: https://forum.handbrake.fr/viewtopic.php?f=10&t=28074&sid=68d8c5bfffd7081625bcd56fb7c4dad1 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6236 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Improve handling of streams with broken video timestampsjstebbins2014-07-161-4/+11
| | | | | | | Addresses https://forum.handbrake.fr/viewtopic.php?f=12&t=30307&p=140045#p139847 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6235 b64f7644-9d1e-0410-96f1-a4d463321fa5