summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* network: prevent SIGPIPE on OSXwm42015-05-31
| | | | | | | | OSX does not know MSG_NOSIGNAL. BSD (which OSX is based on) has got the socket option SO_NOSIGPIPE (even if modern BSDs also support MSG_NOSIGNAL). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Generate the whole private exponent using av_get_random_seed() with ↵Martin Storsjö2015-05-29
| | | | | | | | | nettle/gmp Don't use a PRNG for generating it; that defies the intended use within the cryptograhic handshake. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Create sufficiently long private keys for gcrypt/nettleMartin Storsjö2015-05-29
| | | | | | | There was a misunderstanding betewen bits and bytes for the parameter value for generating random big numbers. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_keyMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Add fate test for the DH handshake routineMartin Storsjö2015-05-29
| | | | | | | This helps if these functions need to be implemented using another crypto API. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Pass the actual buffer size of the output secret keyMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Check the output buffer size in the openssl version of dh_compute_keyMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Fix a local variable name in the nettle/gcrypt codepathMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Make sure ret is initialized in the nettle version of bn_hex2bnMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* tls_gnutls: Add missing includes for the gcrypt thread safety callbacksMartin Storsjö2015-05-28
| | | | | | | This fixes building with gcrypt-backed gnutls versions, broken in 57cde2b180. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: move TLS-related ifdeffery to library specific fileswm42015-05-26
| | | | | | There is no need to have this mess in network.c. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: split tls.cwm42015-05-26
| | | | | | | | Move the OpenSSL and GnuTLS implementations to their own files. Other than the connection code (including options) and some boilerplate, no code is actually shared. Signed-off-by: Martin Storsjö <martin@martin.st>
* tls: fix compilation when both gnutls and openssl are enabledJames Almer2015-05-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* tls: Remove all the local polling loopsMartin Storsjö2015-05-22
| | | | | | These aren't necessary any longer. Signed-off-by: Martin Storsjö <martin@martin.st>
* tls: Remove the nonblocking codeMartin Storsjö2015-05-22
| | | | | | | | Since the underlying URLContext read functions are used, they handle interruption, without having to handle it at this level. Signed-off-by: Martin Storsjö <martin@martin.st>
* tls: Use custom IO to read from the URLContextMartin Storsjö2015-05-22
| | | | | | | | | | | | | | This avoids hijacking the fd, by reading using the normal URLContext functions instead. This allowing reading data that has been buffered in the underlying URLContext. This avoids using the libraries own send functions that can cause SIGPIPE. The fd is still used for polling the lowlevel socket, for waiting for retries. Signed-off-by: Martin Storsjö <martin@martin.st>
* mkv: Print unsupported mov tags when foundVittorio Giovara2015-05-12
|
* riff: Add MultiScope II fourcc MSC2 as MJPEGCarl Eugen Hoyos2015-05-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dashenc: Reduce the segment duration if cutting out parts with edit listsMartin Storsjö2015-05-10
| | | | | | | | This makes sure that the time + duration of the first segment matches the start time of the next segment for e.g. AAC audio with encoder delay. Signed-off-by: Martin Storsjö <martin@martin.st>
* dashenc: replace attribute id with contentType for the AdaptationSet elementJames Almer2015-05-10
| | | | | | | | | | id should be an integer, not a string. It is also optional, so use contentType instead which is the proper attribute for these values. This fixes an MPD validation error. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* id3v2: Do not export empty APIC descriptionwm42015-05-09
| | | | | | APIC tags always have a description. Tag writers obviously leave it empty if there is no description. In this case, libavformat would export "" as title. Do not set the title instead.
* nut: Make sure to clean up on read_header failureLuca Barbato2015-05-09
| | | | | | Based on Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> work. CC: libav-stable@libav.org
* avi: Validate sample_sizeAndreas Cadhalpun2015-05-09
| | | | | | | And either error out or set it to 0 if it is negative. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* nut: Check chapter creation in decode_info_headerAndreas Cadhalpun2015-05-08
| | | | | | | | This fixes a segmentation fault when accessing the metadata. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> CC: libav-stable@libav.org
* mux: Do not leave stale side data pointers in ff_interleave_add_packet()Michael Niedermayer2015-05-06
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dump: Print AVAudioServiceType side dataVittorio Giovara2015-05-06
|
* lavf: Open PICT images with QuickdrawVittorio Giovara2015-05-06
| | | | | Update the pictor test to use the pictor codec, as both formats share the .pic file extension.
* mpegts: Update the PSI/SI table only if the version changeJohn Högberg2015-04-28
| | | | | | | | | | | | | | | | | | | | | | | | If a PAT is finished while a PMT section filter is opened but not yet finished, the PMT section filter is closed and all the received data is discarded. This is usually not an issue but some multiplexers (With very quick PAT/PMT repetition settings) consistently emit a PMT section start, then a PAT, and then the rest of the PMT, causing the aforementioned behavior to result in no PMT being finished. In the most pathologic situation the stream information are lost and the probe fallback miscategorizes subtitles as mp3 audio. Avoid the issue through eliminating redundant PSI/SI table updates by checking their version field, which is required by the standard to be incremented on every change no matter how minor. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* riff: Add GMP4 fourcc for mpeg4Vittorio Giovara2015-04-24
|
* riff: Add GLV4 fourcc for mpeg4Vittorio Giovara2015-04-24
|
* rtsp: Make sure we don't write too many transport entries into a fixed-size ↵Martin Storsjö2015-04-24
| | | | | | | array CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc_jpeg: Handle case of picture dimensions not dividing by 8Andrey Utkin2015-04-23
| | | | | | | This fixes the calculation of the number of needed blocks to make sure that ALL pixels are represented by the result. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Don't warn about unparsed time rangesMartin Storsjö2015-04-23
| | | | | | | | | | | | | | | | | | | This removes the error logging added in 4e54432164. This avoids warnings about "Invalid interval start specification 'now'" for live rtsp streams. We only try to parse some of the many valid values for time ranges in RTSP - the other ones are fully valid but not interesting for the use case in rtsp.c, so we shouldn't warn about them. (Parsing the time ranges is needed to allow seeking, but e.g. setting the current realtime clock for the start time doesn't make sense. av_parse_time has got a different mode for parsing absolute times as well, which can handle the special case "now", but that doesn't make much sense for this particular use in rtsp.c.) Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Fix variables constness in ff_iso8601_to_unix_time()Vittorio Giovara2015-04-20
| | | | | | warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
* rmenc: Drop the temporary buffer for ac3 byteswapLuca Barbato2015-04-20
| | | | | | Use direcly avio_w8(). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* ogg: Forward errors furtherLuca Barbato2015-04-20
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dashenc: Add a publishTime field in dynamic manifestsMartin Storsjö2015-04-20
| | | | | | This field is mandatory in dynamic manifests. Signed-off-by: Martin Storsjö <martin@martin.st>
* g2meet: Support G2M5 codec variantEric Zimmerman2015-04-19
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* mov: Double-check that alias path is not an absolute pathVittorio Giovara2015-04-19
| | | | | | | nlvl_to and nlvl_from can be set to 1 if both alias and target files are in the same directory, so actually check the first character of the string. We can do this because MacOS filepaths (alis type 2) are always converted to UNIX filepaths (alis type 18).
* mov: Read alternate absolute path in dref alisVittorio Giovara2015-04-19
| | | | | | | Absolute paths can be stored in alis type 2 and 18 according to my research: the first is the canonical MacOS filepath, with path level separated by colons, and the volume name within the filepath, while the second should be the absolute filesystem path from the mount point.
* Canopus HQ/HQA decoderVittorio Giovara2015-04-19
| | | | | | Based on work by Kostya Shishkov <kostya.shishkov@gmail.com>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Replace av_dlog with normal av_log at trace levelVittorio Giovara2015-04-19
| | | | This applies to every library where performance is not critical.
* matroskadec: fix crash when parsing invalid mkvThomas Guillem2015-04-18
| | | | | | CC: libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avisynth: Simplify shared library name constructionDiego Biurrun2015-04-15
|
* avisynth: Bump minimum required version to interface version 6Stephen Hutchinson2015-04-14
| | | | | | | The AVSC_API changes in the new headers mean that the 2.6 alphas are just as incompatible as 2.5 is. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avisynth: Fix detection of AviSynth 2.5Stephen Hutchinson2015-04-14
| | | | | | | | | In order to safely exit when the user tries to use AviSynth 2.5, the continue_on_fail value for 2.6's functions need to be set to 1. Otherwise, the library loader fails before the 'upgrade to 2.6' log message appears. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rtsp: Fix unchecked return valueHimangi Saraogi2015-04-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Check a malloc return valueHimangi Saraogi2015-04-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Handle error return from ff_listen_bindAnders Nystrom2015-04-09
| | | | | | | Handle error return from ff_listen_bind without leaking file descriptors. Signed-off-by: Anders Nystrom <anders.nystrom@southpole.se> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* riff: Add 'M705' FourCC for mpeg2videoVittorio Giovara2015-04-09
|