summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* lavf: Replace the ASF demuxerAlexandra Hájková2015-06-28
| | | | | | | | | | | | | | | | | The old one is the result of the reverse engineering and guesswork. The new one has been written following the now-available specification. This work is part of Outreach Program for Women Summer 2014 activities for the Libav project. The fate references had to be changed because the old demuxer truncates the last frame in some cases, the new one handles it properly. The seek-test reference is changed because seeking works differently in the new demuxer. When seeking, the packet is not read from the stream directly, but it is rather constructed by the demuxer. That is why position is -1 now in the reference. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* segafilm: Remove deplanarization hackPaul B Mahol2015-06-24
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* PCM signed 16-bit big-endian planar decoderPaul B Mahol2015-06-24
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* DirectDraw Surface image decoderVittorio Giovara2015-06-22
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Hap decoder and encoderVittorio Giovara2015-06-22
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* udp: Fix local_port managementLuca Barbato2015-06-22
| | | | | | The default value for unset is -1, not 0. Problem introduced in 66028b7ba6b411ba12ef553e9c8f1f4a4fe27710
* mp3: enable packed main_data decoding in MP4nu7742015-06-20
| | | | | | | | | | | | | | | | 14496-3 suggests packing main_data of MP3 that is usually scattered into multiple frames due to bit reservoir. However, after packing main_data into a access unit, bitrate index in the MPEG audio frame header doesn't match with actual frame size. In order to accept this, this patch removes unnecessary frame size checking on mp3 decoder. Also, mov demuxer was changed to use MP3 parser only on special cases (QT MOV with specific sample description) to avoid re-packetizing. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* nut: Drop doxygen markersLuca Barbato2015-06-15
|
* riff: Add MNM4 FourCC as mpeg4Vittorio Giovara2015-06-15
|
* tls_gnutls: fix hang on disconnectionwm42015-06-14
| | | | | | | | | | | GNUTLS_SHUT_RDWR means GnuTLS will keep waiting for the server's termination reply. But since we don't shutdown the TCP connection at this point yet, GnuTLS will just keep skipping actual data from the server, which basically is perceived as hang. Use GNUTLS_SHUT_WR instead, which doesn't have this problem. Signed-off-by: Martin Storsjö <martin@martin.st>
* flv: Name an enum and use its typeVittorio Giovara2015-06-12
|
* segment: Check open_null_ctx() return valueVittorio Giovara2015-06-12
| | | | Reported-By: infer
* movenc: fixes a questionable valgrind uninitialized value warningJanne Grunau2015-06-10
| | | | | | | display_matrix_size is only initialized when av_stream_get_side_data() returns a side data pointer. The code is safe since the only effect this has is setting the display_matrix pointer to NULL which it was already anyway.
* mkv: Correctly report the latest packet had been flushedLuca Barbato2015-06-09
| | | | | Bug-Id: 865 CC: libav-stable@libav.org
* mpjpegdec: don't try to alloc an AVIOContext when probe is guaranteed to failJames Almer2015-06-09
| | | | | | | The first check is done without the AVIOContext, so alloc it only if said check succeeds Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* rtpdec_asf: Check memory allocation and free memory on errorVittorio Giovara2015-06-08
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1257774
* mov: Check memory allocationVittorio Giovara2015-06-08
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1292518
* audiointerleave: Always initialize new_pktVittorio Giovara2015-06-08
| | | | | CC: libav-stable@libav.org Bug-Id: CID 609333
* sctp: Always initialize outmsg structVittorio Giovara2015-06-08
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1302711
* mpjpgdec: free AVIOContext leak on early probe failJanne Grunau2015-06-08
|
* avio: Add avio_put_str16beLuca Barbato2015-06-07
|
* mpjpeg: Initial implementationLuca Barbato2015-06-07
| | | | | | Support only streams with Content-Length. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtmpdh: Use GMP functions directly, instead of nettle wrappersMartin Storsjö2015-06-01
| | | | | | | | | mpz_import and mpz_export were added in GMP 4.1, in 2002. This simplifies the DH code by clarifying that it only uses pure bignum functions, no other parts of nettle/hogweed. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Fix the indentation in a structMartin Storsjö2015-06-01
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: always check avio_read return valueAndreas Cadhalpun2015-05-31
| | | | | | | | | | | If avio_read fails, the buffer can contain uninitialized data. This fixes 'Conditional jump or move depends on uninitialised value(s)' valgrind warnings, and addresses a few memleaks. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avio: Add avio_read wrapper to simplify error checkingVittorio Giovara2015-05-31
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: reject zero bytes_per_frame with non-zero samples_per_frameAndreas Cadhalpun2015-05-31
| | | | | | | In this case the mov demuxer can return a large number of empty packets. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: abort on EOF in ff_mov_read_chanAndreas Cadhalpun2015-05-31
| | | | | | | Otherwise the loop can take a lot of time if num_descr is very large. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: Correctly allocate ctts_dataLuca Barbato2015-05-31
| | | | | | It can be reallocated. CC: libav-stable@libav.org
* mov: Fix two memleaksAndreas Cadhalpun2015-05-31
| | | | | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> CC: libav-stable@libav.org
* 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>