summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* build: Add explanatory comments to (optimization) blocks in the MakefilesDiego Biurrun2014-08-15
|
* mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixesDiego Biurrun2014-08-15
|
* vfwcap: Replace deprecated av_destruct_packet() by av_free_packet()Diego Biurrun2014-08-15
|
* atomic_win32: Drop unnecessary atomic.h #includeDiego Biurrun2014-08-15
| | | | The file does not require atomic.h. Also kills function redefinition warnings.
* w32pthreads: Mark functions in compatibility wrapper as av_unusedDiego Biurrun2014-08-15
| | | | | | This avoids annoying warnings about unused functions. The compatibility wrapper is designed to provide a complete (stub) API, so some functions being unused by some files is natural and no reason for a warning.
* http: Reduce scope of a variable in parse_content_encoding()Diego Biurrun2014-08-15
| | | | Also fixes an unused variable warning with zlib disabled.
* h261dec: Fix order of initializationJohn Stebbins2014-08-14
| | | | | ff_MPV_common_init requires the frame dimensions which get parsed in h261_decode_picture_header.
* h263dec: Fix order of initializationJohn Stebbins2014-08-14
| | | | | ff_MPV_common_init requires the frame dimensions which get parsed in *_decode_picture_header.
* idct: remove call to ff_idctdsp_init from ff_MPV_common_initJohn Stebbins2014-08-14
| | | | | One step in untangling the mpegvideo code and fixing some problems in the order that initialization is being done in h263dec and h261dec.
* mpeg4video: Fix doxygen comment syntax to document correct struct memberNidhi Makhijani2014-08-14
| | | | | | Also fix some comment typos. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* a64: Return correct error code on invalid data streamNidhi Makhijani2014-08-14
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* frame: Remove some FF_API_AVFRAME_COLORSPACE leftoversDiego Biurrun2014-08-14
|
* vaapi: set the scaling list correctly.Edgar Hucek2014-08-14
| | | | | | | | Fixes VAAPI decoding artefacts. CC:libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegts: Do not try to write a PMT larger than SECTION_SIZELuca Barbato2014-08-13
| | | | | | | | | | | Prevent out of array writes. Similar to what Michael Niedermayer did to address the same issue. Bug-Id: CVE-2014-2263 CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cpu-test: Add unistd.h #include for getopt()Diego Biurrun2014-08-13
|
* lavf: eliminate ff_get_audio_frame_size()Anton Khirnov2014-08-13
| | | | | | | | | | | | | | | It is basically a wrapper around av_get_audio_frame_duration(), with a fallback to AVCodecContext.frame_size. However, that field is set only when the stream codec context is actually used for encoding or decoding, which is discouraged. For muxing, it is generally the responsibility of the caller to set the packet duration. For demuxing, if the duration is not stored at the container level, it should be set by the parser. Therefore, removing the frame_size fallback should not break any important case.
* cmdutils: allow matching by metadata in stream specifiersAnton Khirnov2014-08-13
|
* mem: add av_strndup() for duplicating substringsAnton Khirnov2014-08-13
|
* avconv: rename output_packet() to process_input_packet()Anton Khirnov2014-08-13
| | | | It more accurately describes what this function does
* stereo3d: initialize AVStereo3D to zeroFelix Abecassis2014-08-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* http: Fix authentication, broken since 6a463e7fbMartin Storsjö2014-08-13
| | | | | | | | | | The cur_*auth_type variables were set before the http_connect call prior to 6a463e7fb - their sole purpose is to record the authentication type used to do the latest request, since parsing the http response sets the new type in the auth state. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* ogg: update event_flags with STREAM_/METADATA_UPDATED whenever metadata changes.Andrew Stone2014-08-13
| | | | | | | | | | | | | | Originally, AVFormatContext and a metadata dict were provided to ff_vorbis_comment(), but this presented issues if an AVStream was being updated or the metadata on AVFormatContext wasn't actually being updated. To remedy this, ff_vorbis_stream_comment() explicitly updates a stream's metadata and sets any necessary flags. ff_vorbis_comment() does not modify any flags, and any calls to it that update AVFormatContext's metadata (just a single call) must also update AVFormatContext.event_flags after detecting any metadata changes to the provided dictionary, as signaled by a positive return value. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mov: update AVFormatContext.event_flags with METADATA_UPDATED whenever ↵Andrew Stone2014-08-13
| | | | | | metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nutdec: update AVFormatContext.event_flags with STREAM_/METADATA_UPDATED ↵Andrew Stone2014-08-13
| | | | | | whenever metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* flvdec: update AVFormatContext.event_flags with METADATA_UPDATED whenever ↵Andrew Stone2014-08-13
| | | | | | metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Expose metadata found in onCuePoint events in .flv files.Andrew Stone2014-08-13
| | | | | | | | | | | | | | | | Currently, only onMetaData is used, but some providers (wrongly) put metadata into onCuePoint events, and it's still nice to be able to use that data. onCuePoint events also present metadata slightly differently than onMetaData events: all metadata is found inside an object called "parameters". In order to extract this metadata, it's easiest to recurse through the object tree and pull out anything found in child objects and put it in the top-level metadata. Reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/2/help.html?content=00001404.html Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Set protocol-level metadata in AVFormatContext any time a packet is read.Andrew Stone2014-08-13
| | | | | | | If any option named "metadata" is set inside the context, it is pulled up to the context and then the option is cleared. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* http: enable icy metadata by default.Andrew Stone2014-08-13
| | | | | | | It won't hurt servers that don't care about the header, and those that do will include it by default. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* http: export icecast metadata as an option with name "metadata".Andrew Stone2014-08-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* AVOption: add support for dictionary types.Andrew Stone2014-08-13
| | | | | | | In order to support metadata being set as an option, it's necessary to be able to set dictionaries as values. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: add AVFormatContext/AVStream fields for signaling to the user when ↵Andrew Stone2014-08-13
| | | | | | | | | | | events happen. The only flags, for now, indicate if metadata was updated and are set after each call to av_read_frame(). This comes with the caveat that, on stream start, it might not be set properly as packets might be buffered in AVFormatContext.packet_buffer before being given to the user in av_read_frame(). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* configure: Check for nanosleep in headers as well, not only in libsMartin Storsjö2014-08-13
| | | | | | | | | On mingw64 with c++11 support, the link libraries do contain a nanosleep function, while it isn't exposed via the headers. Using check_func_headers instead of a plain check_func fixes this misdetection. Signed-off-by: Martin Storsjö <martin@martin.st>
* w32threads: Use newer thread synchronization functions when targeting VistaMartin Storsjö2014-08-13
| | | | | | | | | | | | | | | | | When explicitly targeting Vista or newer (which only happens if the caller explicitly sets _WIN32_WINNT to a high enough value via the extra cflags option - otherwise configure script sets -D_WIN32_WINNT=0x0502), we already unconditionally link to the ConditionVariable functions, since 4622f11f9. Similarly use the newer -Ex versions of CreateEvent, CreateSemaphore, InitializeCriticalSection and WaitForSingleObject, that all appeared in Vista. When building Windows Store applications, the older versions of these functions aren't available, only the -Ex functions. When doing such a build, the user can set -D_WIN32_WINNT=0x0600 to forcibly use the newer functions instead. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Stop reading after receiving the whole file for non-chunked transfersMartin Storsjö2014-08-13
| | | | | | | | | | | | | | | | | | | | | | | | Previously this logic was only used if the server didn't respond with Connection: close, but use it even for that case, if the server response is non-chunked. Originally the http code has relied on Connection: close to close the socket when the file/stream is received - the http protocol code just kept reading from the socket until the socket was closed. In f240ed18 we added a check for the file size, because some http servers didn't respond with Connection: close (and wouldn't close the socket) even though we requested it, which meant that the http protocol blocked for a long time at the end of files, waiting for a socket level timeout. When reading over tls, trying to read at the end of the connection, when the peer has closed the connection, can produce spurious (but harmless) warnings. Therefore always voluntarily stop reading when the specified file size has been received, if not using a chunked transfer encoding. (For chunked transfers, we already return 0 as soon as we get the chunk header indicating end of stream.) Signed-off-by: Martin Storsjö <martin@martin.st>
* ffv1dec: check that global parameters do not change in version 0/1Michael Niedermayer2014-08-12
| | | | | | | | | Such changes are neither allowed nor supported Found-by: ami_stuff Bug-Id: CVE-2013-7020 CC: libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc_mvs: avoid deriving tmvp in amvpChristophe Gisquet2014-08-12
| | | | | | | | Reduces the number of calls to tmvp derivation from 933685 to 586271 on a sequence. Reviewed-by: Mickaël Raulet <mraulet@insa-rennes.fr> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: wait proper position for tmvpChristophe Gisquet2014-08-12
| | | | | | | | | The position is either rounded or not checked, so delay the wait to check the proper value. Reviewed-by: Mickaël Raulet <mraulet@insa-rennes.fr> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: use intreadwriteChristophe Gisquet2014-08-12
| | | | | | When dealing with MVs, both components may be processed at a time. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: derive partial merge listChristophe Gisquet2014-08-12
| | | | | | The merge list only needs to be derived up to the merge index. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: derive partially amvp listChristophe Gisquet2014-08-12
| | | | | | When the candidate has been found, no need to derive others. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: simplify roundingChristophe Gisquet2014-08-12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: reorder loopsChristophe Gisquet2014-08-12
| | | | | | iterate over memory in a more continuous order Signed-off-by: Anton Khirnov <anton@khirnov.net>
* configure: Don't pass MSVC compiler options -M[TD] to armasmMartin Storsjö2014-08-10
| | | | | | | | | | | The -MD option (for enabling a dynamically linked crt) gets interpreted as a cpp option for generating dependency information (into a file named '-.d', when preprocessing to a pipe). We shouldn't be passing any and all C compiler flags to armasm (which is a plain assembler, only with cpp bolted on via gas-preprocessor), but these are the main conflicting ones. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: Postpone FF_IDCT_XVIDMMX removal until the next version bumpDiego Biurrun2014-08-10
|
* lavc: drop the av_fast_{re,m}alloc compatibility wrappersAnton Khirnov2014-08-10
| | | | They were only needed until the bump.
* mpegts: Return proper error code on invalid input dataNidhi Makhijani2014-08-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Prepare for 11_alpha2 ReleaseReinhard Tartler2014-08-10
|
* configure: Suggest upgrading gas-preprocessor instead of just installingMartin Storsjö2014-08-10
| | | | | | Older versions don't support all the features we test for now. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Enable gas-preprocessor on all OSes but only if availableDiego Biurrun2014-08-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Add probe identification of MS armasmMartin Storsjö2014-08-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>