summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* libavcodec/libaomdec: use the matrix coefficients value from aom_imageJames Almer2018-03-29
| | | | | | "color_space" is no longer a sytax element in libaom. Signed-off-by: James Almer <jamrial@gmail.com>
* avcode/profiles: add AV1 profilesJames Almer2018-03-29
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit '43778a501f1bfbceeddc8eaeea2ea2b3506beeda'James Almer2018-03-29
|\ | | | | | | | | | | | | | | | | | | * commit '43778a501f1bfbceeddc8eaeea2ea2b3506beeda': Support AV1 encoding using libaom This contains some extra changes taken from the libvpx encoder wrapper, most of them contained in the set_pix_fmt() function. Merged-by: James Almer <jamrial@gmail.com>
| * Support AV1 encoding using libaomLuca Barbato2018-03-12
| |
* | avcodec/libaomdec: remove references to yuv440p pixfmtJames Almer2018-03-28
| | | | | | | | | | | | | | While the enums are defined in the libaom headers, it's not officially supported. Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/tableprint_vlc: Fix build failure with --enable-hardcoded-tablesMichael Niedermayer2018-03-29
| | | | | | | | | | Found-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'c438899a706422b8362a13714580e988be4d638b'James Almer2018-03-28
|\| | | | | | | | | | | | | | | | | | | * commit 'c438899a706422b8362a13714580e988be4d638b': Add AV1 video decoding support through libaom This contains some extra changes taken from the libvpx decoder wrapper, most of them contained in the set_pix_fmt() function. Merged-by: James Almer <jamrial@gmail.com>
| * Add AV1 video decoding support through libaomLuca Barbato2018-03-12
| | | | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * amf: Replace writer_id option with LIBAV_AMF_WRITER_ID constantAlexander Kravchenko2018-03-07
| | | | | | | | | | | | | | | | | | | | AMFTraceWriter is an abstraction to configure how AMF outputs its logs for the current process and can be configured to output different levels of trace output. If multiple LibavWriter objects are used in one process, there will be duplication of output in av_log. Use a constant writer_id to prevent this scenario. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | avcodec/avpacket: remove unnecessary check in av_packet_make_writable()James Almer2018-03-27
| | | | | | | | | | | | | | Zero sized packets are already handled below in the function. This is more in line with av_packet_ref(). Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/avdct: use the proper function to free AVCodecContextJames Almer2018-03-26
| | | | | | | | | | | | Fixes ticket #7074 Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mpeg4videodec: Use more specific error codesMichael Niedermayer2018-03-26
| | | | | | | | | | | | Forward error codes where possible. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/get_bits: Make sure the input bitstream with padding can be addressedMichael Niedermayer2018-03-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | movtextdec: fix handling of UTF-8 subtitleswm42018-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subtitles which contained styled UTF-8 subtitles (i.e. not just 7 bit ASCII characters) were not handled correctly. The spec mandates that styling start/end ranges are in "characters". It's not quite clear what a "character" is supposed to be, but maybe they mean unicode codepoints. FFmpeg's decoder treated the style ranges as byte idexes, which could lead to UTF-8 sequences being broken, and the common code dropping the whole subtitle line. Change this and count the codepoint instead. This also means that even if this is somehow wrong, the decoder won't break UTF-8 sequences anymore. The sample which led me to investigate this now appears to work correctly.
* | avcodec: add a subcharenc mode that disables UTF-8 checkwm42018-03-25
| | | | | | | | | | | | | | | | This is for applications which want to explicitly check for invalid UTF-8 manually, and take actions that are better than dropping invalid subtitles silently. (It's pretty much silent because sporadic avcodec error messages are so common that you can't reasonably display them in a prominent and meaningful way in a application GUI.)
* | Revert "avcodec/vp9_superframe_bsf: cache packets by creating new references ↵James Almer2018-03-24
| | | | | | | | | | | | | | | | | | | | | | | | rather than moving them" This reverts commit 7a02b364b68c0bf7f065f5c217fae458f0efdb8d. The packet fetched by ff_bsf_get_packet() and ff_bsf_get_packet_ref() is now guaranteed to be reference counted. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/avcodec.h: Add encryption info side data.Jacob Trimble2018-03-24
| | | | | | | | | | | | | | | | This new side-data will contain info on how a packet is encrypted. This allows the app to handle packet decryption. Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/noise_bsf: move the reference in the bsf internal bufferJames Almer2018-03-23
| | | | | | | | | | | | | | There's no need to allocate a new packet for it. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/bsf: make sure the AVBSFInternal stored packet is reference countedJames Almer2018-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some bitstream filters may buffer said packet in their own contexts for latter use. The documentation for av_bsf_send_packet() doesn't forbid feeding it non-reference counted packets, which depending on the way said packets were internally buffered by the bsf it may result in the data described in them becoming invalid or unavailable at any time. This was the case with vp9_superframe after commit e1bc3f4396, which was then promptly fixed in 37f4a093f7 and 7a02b364b6. It is still the case even today with vp9_reorder_raw. With this change the bitstream filters will not have to worry how to store or consume the packets fed to them. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/extract_extradata: don't uninitialize the H2645Packet on every ↵James Almer2018-03-22
| | | | | | | | | | | | | | | | | | | | processed packet Based on hevc_parser code. This prevents repeated unnecessary allocations and frees on every packet processed by the bsf. Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mpeg4_unpack_bframes: make sure the packet is writable when data ↵James Almer2018-03-22
| | | | | | | | | | | | | | | | | | | | needs to be changed Nothing currently guarantees that the packet passed to the bsf will be writable. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/cfhd: add alpha decompanding in rgba12Gagandeep Singh2018-03-22
| | | | | | | | | | Alpha decompanding curve added to post process the decoded alpha channel. Fixes ticket #6265.
* | avcodec/dxva2_vc1: add missing frame_params callback to vc1_d3d11va2 hwaccelJames Almer2018-03-22
| | | | | | | | | | | | | | Fixes ticket #7096 Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/avpacket: add av_packet_make_writable()James Almer2018-03-21
| | | | | | | | | | | | | | Useful as well to quickly make a packet reference counted when it isn't already so. Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/remove_extradata_bsf: support dump options.Jun Zhao2018-03-21
| | | | | | | | | | | | | | support dump bit stream filter options Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/noise_bsf: support dump options.Jun Zhao2018-03-21
| | | | | | | | | | | | | | support dump bit stream filter options. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | lavc/dump_extradata_bsf: support dump options.Jun Zhao2018-03-21
| | | | | | | | | | | | | | support dump bit stream filter options Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/vp9_superframe_split: fix memory leak in case of output packet ↵James Almer2018-03-21
| | | | | | | | | | | | | | | | creation failure Some function calls may fail after the output packet is initialized. Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mediacodecdec: propagate SAR to h/w framesAman Gupta2018-03-20
| | | | | | | | | | | | | | | | | | Allows consumers who are converting hardware buffers to OpenGL textures to render the frames at the intended display resolution. Signed-off-by: Aman Gupta <aman@tmm1.net> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/mpeg2_metadata: unref output packet on failureJames Almer2018-03-20
| | | | | | | | | | | | | | | | Move the check and unref call to the end to be consistent with other bsfs. Reviewed-by: jkqxz Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/h265_metadata: fix memory leak in case of output packet creation failureJames Almer2018-03-20
| | | | | | | | | | | | | | Some function calls may fail after the output packet is initialized. Reviewed-by: jkqxz Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/h264_metadata: fix memory leak in case of output packet creation failureJames Almer2018-03-20
| | | | | | | | | | | | | | Some function calls may fail after the output packet is initialized. Reviewed-by: jkqxz Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mpeg4_unpack_bframes: reduce code duplicationJames Almer2018-03-20
| | | | | | | | | | | | | | | | Also fixes one potential leak of side data in out if the av_packet_from_data() call fails. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/mp3_header_decompress: don't free the user provided packet on errorJames Almer2018-03-20
| | | | | | | | | | | | | | It's owned by the caller. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/vp9_superframe_split: move the reference in the bsf internal bufferJames Almer2018-03-19
| | | | | | | | | | | | There's no need to allocate a new packet for it. Signed-off-by: James Almer <jamrial@gmail.com>
* | h264_metadata: Fix memory leak on multiple display orientation messagesMark Thompson2018-03-19
| | | | | | | | Fixes CID #1430176.
* | lavc/mpeg2_metadata_bsf: support dump options.Jun Zhao2018-03-18
| | | | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | lavc/h265_metadata_bsf: support dump options.Jun Zhao2018-03-18
| | | | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | lavc/h264_metadata_bsf: support dump options.Jun Zhao2018-03-18
| | | | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | avcodec/aac_adtstoasc: move the reference in the bsf internal bufferJames Almer2018-03-18
| | | | | | | | | | | | There's no need to allocate a new packet for it. Signed-off-by: James Almer <jamrial@gmail.com>
* | 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.
* | 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>
* | avformat/codec2: don't include avcodec objectsJames Almer2018-03-17
| | | | | | | | | | | | They belong in avcodec. 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>
* | 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>