summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* lavc: Add filter_units bitstream filterMark Thompson2018-03-18
| | | | | | This can remove units with types in or not in a given set from a stream. For example, it can be used to remove all non-VCL NAL units from an H.264 or H.265 stream.
* hwcontext_vaapi: Fix condition for DRM device derivationMark Thompson2018-03-18
| | | | vaGetDisplayDRM() is required for this code to work, libdrm is not.
* cbs: Add a table of all supported codec IDsMark Thompson2018-03-18
| | | | Use it as the set of codec IDs supported by the trace_headers BSF.
* h264_metadata: Remove unused fieldsMark Thompson2018-03-18
| | | | | The SEI NAL is unused since 69062d0f9b6aef5d9d9b8c9c9b5cfb23037caddb, while the AUD NAL is small and would more sensibly be on the stack.
* h264_metadata: Add support for display orientation SEI messagesMark Thompson2018-03-18
|
* cbs_h265: Use helper macro for maximum values of fixed-width elementsMark Thompson2018-03-18
| | | | | Apply the same logic as the previous patch to H.265. There are no cases which currently overflow here, but this is still more consistent.
* cbs_h264: Fix overflow in shiftsMark Thompson2018-03-18
| | | | | | | | | The type of the result of a shift operation is unaffected by the type of the right operand, so some existing code overflows with undefined behaviour when the element length is 32. Add a helper macro to calculate the maximum value correctly and then use it everywhere this pattern appears. Found-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
* lavd: fix iterating of input and output devicesFelix Matouschek2018-03-18
| | | | | | | | In the previous implementation the first input or output device was skipped when device_next was called with prev = NULL Signed-off-by: Felix Matouschek <felix@matouschek.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avfilter/vf_premultiply : fix unpremultiply_offset for rgb inputMartin Vignali2018-03-18
|
* fate/hapqa_extract : add test for hapqa_extract bsfMartin Vignali2018-03-18
| | | | | | | | | | | test extract color and alpha with the three main kind of hap frame : - no snappy compression - snappy compression and one chunk - snappy compression and several chunks (16 here) like the bsf filter need to be used with vtag and encoder edition also test the information of the target mov for color and alpha
* http: fix potentially dangerous whitespace skipping codewm42018-03-18
| | | | | | | | | | | | | If the string consists entirely of whitespace, this could in theory continue to write '\0' before the start of the memory allocation. In practice, it didn't really happen: the generic HTTP header parsing code already skips leading whitespaces, so the string is either empty, or consists a non-whitespace. (The generic code and the cookie code actually have different ideas about what bytes are whitespace: the former uses av_isspace(), the latter uses WHITESPACES. Fortunately, av_isspace() is a super set of the http.c specific WHITESPACES, so there's probably no case where the above assumption could have been broken.)
* http: avoid out of bound accesses on broken Set-Cookie headerswm42018-03-18
| | | | | | | | It's trivial to craft a HTTP response that will make the code for skipping trailing whitespace access and possibly overwrite bytes outside of the memory allocation. Why this can happen is blindingly obvious: it accesses cstr[strlen(cstr)-1] without checking whether the string is empty.
* http: do not print a warning message for expired cookieswm42018-03-18
| | | | | | | libavformat prints a warning that the cookie couldn't be parsed (see callers of parse_cookie()). This is obviously not true - it could be parsed, but was simply ignored. Don't return an error to avoid the warning.
* lavu/frame: add QP side datawm42018-03-18
| | | | | | | | | | | | | | | | | | | This adds a way for an API user to transfer QP data and metadata without having to keep the reference to AVFrame, and without having to explicitly care about QP APIs. It might also provide a way to finally remove the deprecated QP related fields. In the end, the QP table should be handled in a very similar way to e.g. AV_FRAME_DATA_MOTION_VECTORS. There are two side data types, because I didn't care about having to repack the QP data so the table and the metadata are in a single AVBufferRef. Otherwise it would have either required a copy on decoding (extra slowdown for something as obscure as the QP data), or would have required making intrusive changes to the codecs which support export of this data. The new side data types are added under deprecation guards, because I don't intend to change the status of the QP export as being deprecated (as it was before this patch too).
* lavu/frame: fix inconsistent qp_table_buf deprecationwm42018-03-18
| | | | | | Everything related to the QP data is deprecated, with qp_table_buf being an inconsistent exception. Some parts were under the deprecation guards, some not. It probably didn't even compile.
* avformat/hlsenc: reindent after previous commitsSteven Liu2018-03-18
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: fix fmp4 single init file problemSteven Liu2018-03-18
| | | | | | fix ticket: #7021 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: fix memleak problem about fmp4_init_filenameSteven Liu2018-03-18
| | | | | | | move fmp4_init_filename init in if else for first fmp4_init_filename set value operation. Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: reindent after previous commitsSteven Liu2018-03-18
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: fix write wrong init file URI string problemSteven Liu2018-03-18
| | | | | | fmp4_init_filename should append after base_output_dirname Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* lavf/dashenc: remove unneeded call to dash_freeRodger Combs2018-03-18
|
* libavformat/dashenc: Option to set timeout for socket I/O operationRavindra2018-03-18
|
* avformat/codec2: don't include avcodec objectsJames Almer2018-03-17
| | | | | | They belong in avcodec. Signed-off-by: James Almer <jamrial@gmail.com>
* configure: revert changes to the schannel checkJames Almer2018-03-17
| | | | | | | check_cpp_condition was not being called on some targets, which made schannel remain enabled even when it was not available Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit '83fef16b6a8dbbcbd80d159ba3ebe818dbbb2776'James Almer2018-03-17
|\ | | | | | | | | | | | | * commit '83fef16b6a8dbbcbd80d159ba3ebe818dbbb2776': configure: Add check_cpp_condition() helper function to simplify some expressions Merged-by: James Almer <jamrial@gmail.com>
| * configure: Add check_cpp_condition() helper function to simplify some ↵Diego Biurrun2018-03-07
| | | | | | | | expressions
* | Merge commit 'a5e011c8dcbf6968cc60f883d33382ba46147e90'James Almer2018-03-17
|\| | | | | | | | | | | | | * commit 'a5e011c8dcbf6968cc60f883d33382ba46147e90': configure: Add check_cmd() helper function to simplify some expressions Merged-by: James Almer <jamrial@gmail.com>
| * configure: Add check_cmd() helper function to simplify some expressionsDiego Biurrun2018-03-07
| |
* | fate/hapenc : remove test which use libsnappyMartin Vignali2018-03-17
| | | | | | | | the test in none mode can be let (they don't use libsnappy)
* | fate: add a dca_core bitstream filter testJames Almer2018-03-17
| | | | | | | | | | Reviwed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | Partially revert "avcodec/hapqa_extract: remove the AVOption flagsJames Almer2018-03-17
| | | | | | | | | | | | | | Re add AVOptions flags, using the new one meant for bsfs. This partially reverts commit f706cdda56. Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/extract_extradata_bsf: support dump options.Jun Zhao2018-03-17
| | | | | | | | | | | | | | support dump bit stream filter options Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | cmdutils: remove a superfluous line breakJames Almer2018-03-17
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/null_bsf: move the reference in the bsf internal bufferJames Almer2018-03-16
| | | | | | | | | | | | There's no need to allocate a new packet for it. Signed-off-by: James Almer <jamrial@gmail.com>
* | avfilter/af_surround: drain input at EOFPaul B Mahol2018-03-16
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avutil/log: print level prefix also when no AVClass context is availableTobias Rapp2018-03-16
| | | | | | | | | | | | | | | | Adds the level prefix to all log messages, except those with level <= AV_LOG_QUIET as they seem to be used for flushing the log buffer. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* | avutil: bump version after the latest AVOption flag additionJames Almer2018-03-16
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | ffmpeg: support dump bit stream filter options.Jun Zhao2018-03-16
| | | | | | | | | | | | | | | | Support dump bit stream filter option in ffmpeg -h full and ffmpeg -h bsf=FooBar. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavu/opt: add bit stream filter option dump support.Jun Zhao2018-03-16
| | | | | | | | | | | | | | enable dump bit stream filter and update opt fate test ref. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavu/opt: add AV_OPT_FLAG_BSF_PARAMJun Zhao2018-03-16
| | | | | | | | | | | | | | add AV_OPT_FLAG_BSF_PARAM for bit stream filter options. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/movenc: move the concatenated eac3 packet referenceJames Almer2018-03-15
| | | | | | | | | | | | | | Simplifies code. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | configure: add missing adts_header to aac_fixed decoderJames Almer2018-03-15
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '49804dc2baec009577e6b4ee827ae562188fbc2f'James Almer2018-03-15
|\| | | | | | | | | | | | | * commit '49804dc2baec009577e6b4ee827ae562188fbc2f': configure: Use test_ prefix for helper functions that do not set variables Merged-by: James Almer <jamrial@gmail.com>
| * configure: Use test_ prefix for helper functions that do not set variablesDiego Biurrun2018-03-07
| |
* | Merge commit '8c893aa3cd5f2d73896c72af330dcbfe299fbc5a'James Almer2018-03-15
|\| | | | | | | | | | | | | * commit '8c893aa3cd5f2d73896c72af330dcbfe299fbc5a': configure: Drop unnecessary variables, shifts, and quotes in helper functions Merged-by: James Almer <jamrial@gmail.com>
| * configure: Drop unnecessary variables, shifts, and quotes in helper functionsDiego Biurrun2018-03-07
| |
* | Merge commit '121314895f6360852b2807d5dfafea576b2e6fed'James Almer2018-03-15
|\| | | | | | | | | | | | | | | | | * commit '121314895f6360852b2807d5dfafea576b2e6fed': configure: Fix logic of AMF external library check This commit is a noop. AMF is meant to be autodetected. Merged-by: James Almer <jamrial@gmail.com>
| * configure: Fix logic of AMF external library checkDiego Biurrun2018-03-07
| | | | | | | | | | Fail if AMF is requested but unavailable, as we do for all other external libraries that need to be explicitly enabled.
* | Merge commit '0711d142997b2662ba9198e607015b06c6eed0d8'James Almer2018-03-15
|\| | | | | | | | | | | | | * commit '0711d142997b2662ba9198e607015b06c6eed0d8': examples: Use new API for transcoding example Merged-by: James Almer <jamrial@gmail.com>
| * examples: Use new API for transcoding exampleAndreas Unterweger2018-03-07
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>