summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* theora: Skip zero-sized headersMartin Storsjö2013-01-17
| | | | | | | | | | | | | This fixes a regression since d9cf5f51 with theora over RTP (possibly with other variants of theora as well). In theora over RTP, the second of the 3 headers turns out to be 0 bytes long, which prior to d9cf5f51 worked just fine. After d9cf5f51, reading from the bitstream reader fails (since the reader wasn't initialized but returned an error if initialized with 0 bits). CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* idcin: fix memleaks in idcin_read_packet()Justin Ruggles2013-01-16
| | | | Fixes fate-id-cin-video failures when running FATE with valgrind.
* lavc: Move vector_fmul_window to AVFloatDSPContextJustin Ruggles2013-01-16
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtpdec_mpeg4: Check the remaining amount of data before readingMartin Storsjö2013-01-16
| | | | | | This fixes possible buffer overreads. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_mpeg4: Check the return value from mallocMartin Storsjö2013-01-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* srtp: Mark a few variables as uninitializedMartin Storsjö2013-01-15
| | | | | | | This squelches false positive warnings (with gcc) about them being used uninitalized. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Make the new srtp protocol depend on the rtp protocolMartin Storsjö2013-01-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Add a fate test for the SRTP functionsMartin Storsjö2013-01-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu: Add a fate test for the HMAC APIMartin Storsjö2013-01-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: add 3 pixels below for subpixel filter wait positionRonald S. Bultje2013-01-15
| | | | | | | | | | | | | | | | | | | If the motion vector is at a subpixel position, we need 3 pixels below the motion vector's wholepel position available, not 2, since the MC filter is a sixtap filter for the hpel position, and then a bilin filter for the qpel position. This patch fixes highly irreproducible (0.1%) fate failures in frame 2 and 4 of h264-conformance-cama2_vtc_b (e.g. first P-frame, first field, last line of MB x=40,y=2 and second field and last lines of MBs x=39-40, y=3). These used pre-loopfilter instead of post-loopfilter data because the await_progress() waited for one line too little in that field, and the motion vector of these particular MBs happened to align exactly to a position where that demonstrates the bug. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dvdsubdec: Support palette in mkvJoakim Plate2013-01-15
| | | | | | | Matroska stores palette information as plain text in extradata. Signed-off-by: Alexandra Khirnova <alexandra.khirnova@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86: Add PAVGB macro to abstract pavgb/pavgusb instruction via cpuflagsDiego Biurrun2013-01-15
|
* vf_fps: add final flushed frames to the dropped frame countJustin Ruggles2013-01-15
|
* rv34_parser: Adjust #if for disabling individual parsersDiego Biurrun2013-01-15
| | | | As CONFIG_ values are always defined, they have to be checked via #if.
* x86: ABSB2: port to cpuflagsDiego Biurrun2013-01-15
|
* x86: ABSB: port to cpuflagsDiego Biurrun2013-01-15
|
* sdp: Include SRTP crypto params if using the srtp protocolMartin Storsjö2013-01-15
| | | | | | Also print port numbers for this protocol. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Add a protocol for SRTP encryption/decryptionMartin Storsjö2013-01-15
| | | | | | | | This is mostly useful for encryption together with the RTP muxer, but could also be set up as IO towards the peer with the SDP demuxer with custom IO. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Support decryption of SRTP signalled via RFC 4568 (SDES)Martin Storsjö2013-01-15
| | | | | | | | | | | | | | This only takes care of decrypting incoming packets; the outgoing RTCP packets are not encrypted. This is enough for some use cases, and signalling crypto keys for use with outgoing RTCP packets doesn't fit as simply into the API. If the SDP demuxer is hooked up with custom IO, the return packets can be encrypted e.g. via the SRTP protocol. If the SRTP keys aren't available within the SDP, the decryption can be handled externally as well (when using custom IO). Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Add functions for SRTP decryption/encryptionMartin Storsjö2013-01-15
| | | | | | | | | | This supports the AES_CM_128_HMAC_SHA1_80 and AES_CM_128_HMAC_SHA1_32 cipher suites (from RFC 4568) at the moment. The main missing features are replay protection (which can be added later without changing the internal API), and the F8 and null ciphers. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu: Add an API for calculating HMAC (RFC 2104)Martin Storsjö2013-01-15
| | | | | | | This supports HMAC-MD5 and HMAC-SHA1 for now, other hashes are simple to add. Signed-off-by: Martin Storsjö <martin@martin.st>
* libx264: use the library specific default rc_initial_buffer_occupancyLuca Barbato2013-01-15
| | | | | | | | By default libav sets it to 3/4 while x264 sets it to 9/10. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: set the default rc_initial_buffer_occupancyLuca Barbato2013-01-15
| | | | | | | | | | | rc_buffer_size is not set before. Solve the initial the rate control underflow issue reported in bug 222. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* nutdec: Always return a value from nut_read_timestamp()Diego Biurrun2013-01-15
| | | | | | | | | The function is a callback that is called by ff_gen_search with a constant stream index. Avoid a false positive on older gcc version. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* configure: Make warnings from -Wreturn-type fatal errorsDiego Biurrun2013-01-14
| | | | These warnings have no false positives and point to serious bugs.
* x86: ABS2: port to cpuflagsDiego Biurrun2013-01-14
|
* vdpau: Remove av_unused attribute from function declarationRémi Denis-Courmont2013-01-14
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: fix ff_generate_sliding_window_mmcos() prototype.Anton Khirnov2013-01-14
| | | | | | | It's been returning an error value since bad446e251405dc250c3cbee199072e083a1e4b9 Also check for the errors it returns.
* suncc: Replace more GCC flags by their equivalents in suncc_flags()Sean McGovern2013-01-14
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* libtheoraenc: fix granularity of video qualityMaximilian Seesslen2013-01-14
| | | | | | | | The floating point version of av_clip has to be used when converting the quality level. Signed-off-by: Maximilian Seesslen <mes@seesslen.net> Signed-off-by: Martin Storsjö <martin@martin.st>
* oggparsetheora: fix comment header parsingGiorgio Vazzana2013-01-14
| | | | | | Pass the correct header size to ff_vorbis_comment() Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: don't clobber mmco opcode tables for non-first slice headers.Ronald S. Bultje2013-01-14
| | | | | | | | | | | | | | | | | | | | | Clobbering these tables will temporarily clobber the template used as a basis for other threads to start decoding from. If the other decoding thread updates from the template right at that moment, subsequent threads will get invalid (or, usually, none at all) mmco tables. This leads to invalid reference lists and subsequent decode failures. Therefore, instead, decode the mmco tables only for the first slice in a field or frame. For other slices, decode the bits and ensure they are identical to the mmco tables in the first slice, but don't ever clobber the context state. This prevents other threads from using a clobbered/invalid template as starting point for decoding, and thus fixes decoding in these cases. This fixes occasional (~1%) failures of h264-conformance-mr1_bt_a with frame-multithreading enabled. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libvpx: make vp8 and vp9 selectableLuca Barbato2013-01-14
| | | | Support older libvpx versions.
* libvpx: support vp9Luca Barbato2013-01-14
| | | | This feature is experimental use at your risk
* nut: support vp9 tagLuca Barbato2013-01-14
|
* mkv: support vp9 tagTom Finegan2013-01-14
|
* rtpdec: Make variables that should wrap unsignedMartin Storsjö2013-01-14
| | | | | | | This makes the behaviour defined when they wrap around. The value assigned to expected_prior was a uint32_t already. Signed-off-by: Martin Storsjö <martin@martin.st>
* build: Remove stray Makefile entry for non-existent VCR1 encoderDiego Biurrun2013-01-14
|
* rtpdec: Handle more received packets than expected when sending RRMartin Storsjö2013-01-14
| | | | | | | | | | Without this, we'd signal a huge loss rate (due to unsigned wraparound) if we had received one packet more than expected (that is, one seq number sent twice). The code has a check for lost_interval <= 0, but that doesn't do what was intended as long as the variable is unsigned. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Simplify insertion into the linked list queueMartin Storsjö2013-01-14
| | | | | | | By using a pointer-to-pointer, we avoid having to keep track of the previous packet separately. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Remove a woefully misplaced commentMartin Storsjö2013-01-14
| | | | | | | | The code below the comment does not at all relate to statistics, and even if moved to the right place, the comment adds little value. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Fix assignments in if()Michael Niedermayer2013-01-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Fix assignments in if()Michael Niedermayer2013-01-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* svq1enc: Fix assignments in if()Michael Niedermayer2013-01-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Fix assignments in if() when calling ff_af_queue_addMichael Niedermayer2013-01-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: Fix assignments in if()Michael Niedermayer2013-01-14
| | | | | | | | Fixes null pointer dereference later, since if this function failed, a positive return value was returned to the caller. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Martin Storsjö <martin@martin.st>
* truemotion2: cosmetics, reformatAnton Khirnov2013-01-14
|
* truemotion2: return meaningful error codes.Anton Khirnov2013-01-14
|
* tscc: remove some pointless comments and empty lines.Anton Khirnov2013-01-14
|
* tscc: return meaningful error codes.Anton Khirnov2013-01-14
|