summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* qsv: Allocate planes contiguously.maxd2017-02-021-6/+4
| | | | | | Better performance and less prone to crashing. Fixes #540 and closes #558.
* preset: fix behavior of AudioSecondaryEncoderModeJohn Stebbins2017-01-291-2/+2
| | | | | When true, this is meant to use the secondary encoder only for the first selected audio track. It was completely broken :(
* encca_aac: Fix initial start timeJohn Stebbins2017-01-251-2/+8
| | | | | encca_aac assumed the first packet start time is 0 which is no longer the case. We now use edit lists to adjust non-zero start times.
* decavcodec: fix avcodec_open failure upon bad extradataJohn Stebbins2017-01-241-2/+6
| | | | | | | If extradata is improperly parsed, avcodec_open may fail. Keep trying avcodec_open as long as there is more data to parse. Fixes https://github.com/HandBrake/HandBrake/issues/542
* decavcodec: fix crash in decavcodecvInfoJohn Stebbins2017-01-241-1/+1
| | | | | If avcodec_open fails, pv->context->codec is NULL, but work->info may still be called by scan.
* libhb: force title rescan after completing a job encode (#488)John Stebbins2017-01-163-0/+12
| | | Fixes https://forum.handbrake.fr/viewtopic.php?f=12&t=35583
* opencl: Workaround broken drivers that crash when you call clGetPlatformIDs ↵Scott2017-01-153-4/+28
| | | | with valid inputs. #496
* qsv: fix building with qsv disabledJohn Stebbins2017-01-112-2/+13
|
* json: revise range "End" for time and frame rangesJohn Stebbins2017-01-111-11/+30
| | | | | "End" was a duration. It is now the actual "End" position in 90khz ticks or frames.
* json: Decoding JSON now checks if QSV is available before setting QSV… (#509)Scott2017-01-111-0/+4
| | | json: Decoding JSON now checks if QSV is available before setting QSV… #509
* reader: fix incorrect duration of UTF8 subtitlesJohn Stebbins2017-01-111-0/+4
| | | | The stop time for these was not getting adjusted by the scr_offset
* preset: fix "all" AudioTrackSelectionBehaviorJohn Stebbins2017-01-111-5/+10
| | | | | When all tracks are requested, do not filter out secondary audio types. This should only be done when only the "first" track is requested.
* added support of Kaby Lake CPU recognitionmaxd2017-01-113-1/+10
|
* libhb: check if decvobsub.c private_data is not null before accessing one of ↵Damiano Galassi2017-01-091-1/+1
| | | | its member. Fix a crash when calling decsubClose if the decoder had not been initialized yet.
* json: fix use of freed memoryJohn Stebbins2017-01-081-18/+23
| | | | | | | | audio.out.name was getting assigned a string from a json object that could be freed resulting in a double free. also make unpack_s check for const char * type to help prevent such abuses in the future.
* qsv: Fix a crash that can occur in hb_qsv_info_print() when QSV hardware ↵sr552017-01-061-13/+15
| | | | exists in the system but is disabled in the bios.
* decsrtsub: fix extra blank linesJohn Stebbins2017-01-041-1/+1
| | | | This only happened with embedded UTF8 subtitles in mkv.
* libhb: better bound checking in ParseControls.Damiano Galassi2017-01-041-2/+37
|
* libhb: allow removal of tagsJohn Stebbins2017-01-031-18/+81
| | | | | | Setting an empty string tag allows removal of existing tags. Note that setting a NULL string does not remove an existing tag but instead results in the tag getting passed through from the source.
* qsv: fix for memory leak for decodemaxd2017-01-031-1/+1
| | | | Closes #490.
* Update copyright dates to 2017.Bradley Sepos2017-01-0192-92/+92
|
* presets: fix hb_preset_moveJohn Stebbins2016-12-301-1/+1
| | | | | Moving between different folder levels was broken. This broke preset drag-and-drop in LinGui.
* libhb: fix audio bitrate when using fallback encoderJohn Stebbins2016-12-291-31/+1
| | | | | | | Fixes https://github.com/HandBrake/HandBrake/issues/462 hb_audio_add was overwriting the desired output bitrate before we discovered that we needed to use the fallback encoder.
* encavcodec: fix 2 pass vp8 and vp9 encodingJohn Stebbins2016-12-271-0/+9
| | | | | libvpx only supplies the stats upon the final flush of the encoder. So we must also write stats after final flush.
* encavcodec: fix crash during 2 pass encodeJohn Stebbins2016-12-271-2/+2
| | | | This affect mpeg4, mpeg2, vp8 and vp9 encoding
* qsv: Fix a memory leak in enc_qsv.c Patch by maxim_d33sr552016-12-231-1/+1
|
* libhb: pass through BT.2020 transfer flagsJohn Stebbins2016-12-222-0/+6
|
* stream: fix SRT subtitle durationJohn Stebbins2016-12-221-0/+1
|
* fix unreachable code, really fix boolean logic this timeJohn Stebbins2016-12-211-1/+2
| | | | Thanks Rodeo for pointing this out
* fix compiler warning and operator precedence problemJohn Stebbins2016-12-211-1/+1
|
* libhb: add new color tags for Bt 2020 and SMPTE ST 2084Damiano Galassi2016-12-217-22/+60
|
* libhb: immediately set hb_state_t pass and pass_count to -1 in hb_start(), ↵Damiano Galassi2016-12-201-0/+2
| | | | so a UI can check if pass_count has been set or not yet, to avoid displaying a random value for half a second if it tries to display the pass state before the work thread has been initialized.
* fix memory leaksJohn Stebbins2016-12-173-2/+3
| | | | | | The series of commits starting with Tim's "libav: remove our custom QSV wrapper." Closes #46, closes #276, and closes #416.
* stream: fix SRT detectionJohn Stebbins2016-12-171-0/+1
| | | | libav changed the codec id they use for SRT in mkv
* unref AVPackets, fix merge issuesJohn Stebbins2016-12-172-3/+6
|
* qsv: rename av_qsv* to hb_qsv*John Stebbins2016-12-1715-435/+435
|
* qsv: fix more compiler warningsJohn Stebbins2016-12-174-6/+6
|
* qsv_memory: fix compiler warningsJohn Stebbins2016-12-171-4/+4
|
* qsv_libav: silence compiler warningJohn Stebbins2016-12-171-1/+1
| | | | | warning: "/*" within comment It's very noisy since this header gets pulled into everything.
* encavcodecaudio: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-111/+100
| | | | | avcodec_encode_audio2 is deprecated, use avcodec_send_frame and avcodec_receive_packet
* encavcodec: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-141/+136
| | | | | | | AVCodecContext.coded_frame is deprecated. We didn't really need it. avcodec_encode_video2 is deprecated, use avcodec_send_frame and avcodec_receive_packet
* decavcodec: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-164/+222
| | | | | | | avcodec_decode_audio4 is deprecated, use avcodec_send_packet and avcodec_receive_frame av_bitstream_filter is deprecated, use av_bsf
* stream: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-91/+87
| | | | AVStream.codec is deprecated, use AVStream.codecpar
* muxavformat: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-90/+106
| | | | | AVStream.codec is deprecated, use AVStream.codecpar av_bitstream_filter is deprecated, use av_bsf
* decpgssub: fix use of deprecated rect->pictJohn Stebbins2016-12-171-2/+2
|
* fix chapter markers when encoding with libav video encoderJohn Stebbins2016-12-171-1/+1
| | | | | | encavcodec saved the chapter mark and set the buffers new_chap to 0. Then work copied the zero'd new_chap over the good mark that encavcodec set.
* potential fix for hard to reproduce crashJohn Stebbins2016-12-171-3/+12
|
* qsv: Update condition under which context is closed.Tim Walker2016-12-171-2/+6
|
* decavcodec: enable QSV-accelerated H.264 decoding with libavcodec.Tim Walker2016-12-174-43/+51
| | | | | | Videos get decoded to NV12 in system memory and converted to our internal colorspace via libswscale. It should be noted that QSV- accelerated decoding now works with all our videos encoders :-)
* qsv: Fix crash attempting to destroy mutex.Tim Walker2016-12-171-2/+6
| | | | Originally part of a2d31ec1c6109424d193832aa83db6958292d797.