summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* libhb: don't use av_log.Tim Walker2016-12-172-18/+16
| | | | qsv_libav.[ch] was previosuly use from libavcodec.
* libhb: fix build with --enable-qsvTim Walker2016-12-179-72/+26
| | | | | | | | | | Convert qsv_livav.[ch] to be built within libhb. Convert other files to use qsv_libav.h in place of libavcodec/qsv.h Don't attempt to build libav with QSV support (not available in unpatched release/11 branch). QSV-accelerated decoding is broken, so disable it for the time being.
* libhb: add code to support our QSV-accelerated encoder.Tim Walker2016-12-172-0/+1140
| | | | | | The files are copied verbatim from the patch we just removed, where they were known as: libavcodec/qsv.h libavcodec/qsv.c
* preset: Revise Gmail presets.Bradley Sepos2016-12-161-32/+32
| | | | | | | | Longer durations, better resolutions. Gmail Large 3 Minutes 720p30: Up to 3 minutes of 720p video in 25 MB or less. Gmail Medium 5 Minutes 480p30: Up to 5 minutes of 480p video in 25 MB or less. Gmail Small 10 Minutes 288p30: Up to 10 minutes of 288p video in 25 MB or less.
* sync: don't delay subtitles when duration is knownJohn Stebbins2016-12-151-5/+9
| | | | | | | | | | | | | | Delayed subtitles were causing incorrect muxing in mkv. The mkv muxer writes chunks where all samples should be relative to a chunk's base timestamp. When the subtitle is delayed long enough for a new chunk to start before it gets muxed, the calculated offset to the chunk's base time is negative (which is illegal). Note that this is still a possibility with subtitles that must be delayed (e.g. CC and VOBSUB) because the duration is not known until the next subtitle's start time is known. The only fix for this would be to add a special subtitle parsing pass that caches subtitle timestamps before the main encoding pass is performed.
* preset: Set default to false for Gmail presets.Bradley Sepos2016-12-151-3/+3
|
* sync: fix compiler warningJohn Stebbins2016-12-151-1/+1
|