summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* lavu: Add av_strnstr()Vladimir Pantelic2013-01-25
| | | | | | | This is a length limited version of strstr() Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h264: Allow discarding the cropping information from SPSVittorio Giovara2013-01-25
| | | | | | Some 3D systems overload the meaning of the field for other purposes. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* arm: Add mathops.h to ARCH_HEADERS listDiego Biurrun2013-01-24
| | | | It is an arch-specific header not suitable for standalone compilation.
* avstring: K&R formatting cosmeticsLuca Barbato2013-01-24
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* build: Make the H.264 parser select h264qpelDiego Biurrun2013-01-24
| | | | It is required for building the shared H.264 code.
* x86: h264qpel: add cpu flag checks for init functionJanne Grunau2013-01-24
| | | | | The code was copied from per cpu extension init function so the checks for supported extensions was overlooked.
* h264: copy h264qpel dsp context to slice thread copiesJanne Grunau2013-01-24
|
* arm: h264qpel: use neon h264 qpel functions only if supportedJanne Grunau2013-01-24
|
* dsputil: Separate h264 qpelMans Rullgard2013-01-24
| | | | | | | | | | The sh4 optimizations are removed, because the code is 100% identical to the C code, so it is unlikely to provide any real practical benefit. Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* doc: fix dependencies in pod generationLuca Barbato2013-01-24
| | | | The script can and will change.
* openbsd: configure: Stop enabling PIC by defaultDiego Biurrun2013-01-24
| | | | | | Previously PIC was enabled as a magic workaround for binaries that built fine, but failed to function at all. This problem no longer exists, possibly since the introduction of symbol versioning.
* rtpenc_chain: Use the original AVFormatContext for getting payload typeMartin Storsjö2013-01-24
| | | | | | | | | | | | | | | | | In ff_rtp_get_payload_type, the AVFormatContext is used for checking whether the payload_type or rtpflags options are set. In rtpenc_chain, the rtpctx struct is a newly initialized struct where no options have been set yet, so no options can be fetched from there. All muxers that internally chain rtp muxers have the "rtpflags" field that allows passing such options on (which is how this worked before 8034130e06), so this works just as intended. This makes it possible to produce H263 in RFC2190 format with chained RTP muxers. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rtp: Make sure the output format pointer is setMartin Storsjö2013-01-24
| | | | | | | | Not sure if this actually happens, but we do the same check when checking payload_type further above in the function, so it might be needed. Signed-off-by: Martin Storsjö <martin@martin.st>
* wmv2: Propagate the wmv2 idct permutation type to the dsputils contextMartin Storsjö2013-01-24
| | | | | | | | | | This fixes encoding where the idct setting originally was set to FF_IDCT_AUTO and dsputil chose a default idct with a non-null permutation - even if the permutation tables were updated, dct_quantize in x86/mpegvideoenc_template.c also checked the value of this type variable. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtp: Make sure priv_data is set before reading itMartin Storsjö2013-01-23
| | | | | | | This fixes crashes with muxing H263 into RTSP. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: fix overflow checking in avc_mp4_find_startcode()Xi Wang2013-01-23
| | | | | | | | | | | | The check `start + res < start' is broken since pointer overflow is undefined behavior in C. Many compilers such as gcc/clang optimize away this check. Use `res > end - start' instead. Also change `res' to unsigned int to avoid signed left-shift overflow. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: fix buffer overflows in ff_amf_tag_contents()Xi Wang2013-01-23
| | | | | | | | | | | | | | A negative `size' will bypass FFMIN(). In the subsequent memcpy() call, `size' will be considered as a large positive value, leading to a buffer overflow. Change the type of `size' to unsigned int to avoid buffer overflow, and simplify overflow checks accordingly. Also change a literal buffer size to use sizeof, and limit the amount of data copied in another memcpy call as well. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: fix multiple broken overflow checksXi Wang2013-01-23
| | | | | | | | | | | | Sanity checks like `data + size >= data_end || data + size < data' are broken, because `data + size < data' assumes pointer overflow, which is undefined behavior in C. Many compilers such as gcc/clang optimize such checks away. Use `size < 0 || size >= data_end - data' instead. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* float_dsp: Include config.h for redefining restrictMartin Storsjö2013-01-23
| | | | | | | | This makes sure that the restrict keyword is mapped to whatever keyword the compiler prefers/supports. This fixes building on MSVC (and possibly on GCC 2.x as well). Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: remove one array dimension from avg_no_rnd_pixels_tab.Ronald S. Bultje2013-01-22
|
* dsputil: remove 9/10 bits hpel functions.Ronald S. Bultje2013-01-22
| | | | These are never used.
* dsputil: remove some never-assigned function pointers from the struct.Ronald S. Bultje2013-01-22
|
* dsputil: remove avg_no_rnd_pixels8.Ronald S. Bultje2013-01-22
| | | | This is never used.
* Drop DCTELEM typedefDiego Biurrun2013-01-22
| | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vorbisdsp: convert x86 simd functions from inline asm to yasm.Ronald S. Bultje2013-01-22
|
* vp3dsp: don't do aligned reads on input.Ronald S. Bultje2013-01-22
| | | | The input is not guaranteed to be aligned.
* mlp_parser: cosmetics: re-indent.Tim Walker2013-01-22
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlp: implement support for AVCodecContext.request_channel_layout.Tim Walker2013-01-22
| | | | | | Also wrap usage of AVCodecContext.request_channels in FF_API_REQUEST_CHANNELS directives. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlp_parser: account for AVCodecContext.request_channels when setting the ↵Tim Walker2013-01-22
| | | | | | | | channel layout. Allows users to configure the output based on what's actually decoded, rather than the full native layout. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mlpdec: set the channel layout.Tim Walker2013-01-22
| | | | | | | | Fixes bug 401. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> CC:libav-stable@libav.org
* mlpdec: TrueHD: use Libav channel order.Tim Walker2013-01-22
| | | | | | | | Fixes bug 208. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> CC:libav-stable@libav.org
* mlp: store the channel layout for each substream.Tim Walker2013-01-22
| | | | | | | | Also stop storing the channel arrangement in the header info, as it's unused outside of ff_mlp_read_major_sync. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> CC:libav-stable@libav.org
* arm: Add some missing header #includesDiego Biurrun2013-01-22
|
* floatdsp: move scalarproduct_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | This makes the aac decoder and all voice codecs independent of dsputil.
* floatdsp: move butterflies_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | | This makes wmadec/enc, twinvq and mpegaudiodec (i.e. mp2/mp3) independent of dsputil.
* floatdsp: move vector_fmul_reverse from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | | | Now, nellymoserenc and aacenc no longer depends on dsputil. Independent of this patch, wmaprodec also does not depend on dsputil, so I removed it from there also.
* floatdsp: move vector_fmul_add from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
|
* proresdec: support mixed interlaced/non-interlaced contentMichael Smith2013-01-22
| | | | | | Set interlaced to false if we don't have an interlaced frame Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vp3/5: move put_no_rnd_pixels_l2 from dsputil to VP3DSPContext.Ronald S. Bultje2013-01-21
| | | | | The function is only used in VP3 and VP5, so no need to have it in DSPContext.
* x86: ac3: Fix HAVE_MMXEXT condition to only refer to external assemblyDiego Biurrun2013-01-21
| | | | CC: libav-stable@libav.org
* rtpenc: Start the sequence numbers from a random offsetMartin Storsjö2013-01-22
| | | | | | | | Expose the current sequence number via an AVOption - this can be used both for setting the initial sequence number, or for querying the current number. Signed-off-by: Martin Storsjö <martin@martin.st>
* Revert "fate: Use wmv2 IDCT for wmv2 tests"Luca Barbato2013-01-21
| | | | This reverts commit ce378f0dd0c4e5350b3280e6b3e8d6b46fe4b0a3.
* get_bits/put_bits: K&R formatting cosmeticsDiego Biurrun2013-01-21
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avidec: use sensible error codes instead of -1Jindrich Makovicka2013-01-21
| | | | | | | | Use AVERROR_INVALIDDATA on invalid inputs, and AVERROR_EOF when no more frames are available in an interleaved AVI. Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* dsputilenc: x86: Convert pixel inline asm to yasmDaniel Kang2013-01-21
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libgsm: detect libgsm header pathBrad Smith2013-01-21
| | | | | | | Libgsm header can reside either in the base include dir or in the gsm subdir. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* fate: Use wmv2 IDCT for wmv2 testsRonald S. Bultje2013-01-21
|
* vorbisdsp: change block_size type from int to intptr_t.Ronald S. Bultje2013-01-20
| | | | This saves one instruction in the x86-64 assembly.
* lavc: put FF_IDCT_{VP3,H264,CAVS,BINK,EA,WMV2} under FF_API_IDCT.Ronald S. Bultje2013-01-20
| | | | | | This allows us to get rid of them on the next major bump. All of the above are functionally irrelevant, and most of them are unused, except the vp3 one, which is used wrongly in the bfin arch optimizations.
* wmv2: move IDCT to its own DSP context.Ronald S. Bultje2013-01-20
| | | | | | | | | | | This allows us to remove FF_IDCT_WMV2, which serves no practical purpose other than to be able to select the WMV2 IDCT for MPEG (or vice versa) and get corrupt output. Fate tests for all wmv2-related tests change, because (for some obscure reason) they forced use of the MPEG IDCT. You would get the same changes previously by not using -idct simple in the fate test (or replacing it with -idct auto).