summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* rtpdec_jpeg: Disallow using the reserved q valuesMartin Storsjö2012-09-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Fold the default qtables case into an existing if statementMartin Storsjö2012-09-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Store and reuse old qtables for q values 128-254Martin Storsjö2012-09-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Simplify the calculation of the number of qtablesMartin Storsjö2012-09-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Add more comments about the fields in the SOF0 sectionMartin Storsjö2012-09-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Clarify where the subsampling magic numbers come fromMartin Storsjö2012-09-12
| | | | | | | Write out the numbers the way they are constructed, not just the final values. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Don't use a bitstream writer for the EOI markerMartin Storsjö2012-09-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Don't needlessly use a bitstream writer for the headerMartin Storsjö2012-09-12
| | | | | | | | Everything written with this bitstream writer is 8/16 bit units (except for a pair of 4 bit values), so using a bitstream writer isn't necessary. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Simplify writing of the jpeg headerMartin Storsjö2012-09-12
| | | | | | | Generalize writing of any number of qtables. Don't manually write 16 bit values in two separate calls. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Merge two if statementsMartin Storsjö2012-09-12
| | | | | | This makes the code more readable and robust. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Write the DHT section properlyMartin Storsjö2012-09-12
| | | | | | | | | Currently the size header of the generated DHT section is incorrect, making the mjpeg decoder just skip it. Since the written huffman tables are the default ones, this failure had gone undetected. Signed-off-by: Martin Storsjö <martin@martin.st>
* utvideoenc: Add missing AV_ prefix to codec IDDiego Biurrun2012-09-11
|
* avserver: Add missing #include for av_gettime()Diego Biurrun2012-09-11
|
* configure: Only disable aligned stack on MSVC on 32 bitMartin Storsjö2012-09-11
| | | | | | On 64 bit, the stack seems to be aligned enough for our needs. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: indentation cosmeticsDiego Biurrun2012-09-11
|
* rtpdec_jpeg: Add support for default quantizersSamuel Pitoiset2012-09-11
| | | | | | | Generate quantization tables when they are not present in the first chunk. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: dsputil: Move specific optimization settings out of global init functionDiego Biurrun2012-09-11
| | | | They belong in the init functions specific to each CPU capability.
* avplay: get rid of ugly casts in the options tableAnton Khirnov2012-09-11
|
* avplay: fix prototypes for option callbacks.Anton Khirnov2012-09-11
| | | | They have been wrong since 11d957fbd81288e64408e79ed369446346000b29
* flvdec: always set AVFMTCTX_NOHEADER.Anton Khirnov2012-09-11
| | | | New streams may be created at any time, e.g. on codec change.
* file: Use a normal private context for storing the file descriptorMartin Storsjö2012-09-10
| | | | | | Previously the file descriptor was stored in the priv_data pointer. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Adjust the xgetbv instrinsic checkMartin Storsjö2012-09-10
| | | | | | | | | | | | The 64 bit cl.exe version 16.00.30319.01 crashes with an internal compiler error on the current check (and thus deduces it isn't supported, even if the actual usage in libavuil/x86/cpu.c works fine), but by assigning the value from the intrinsic to a variable, or returning it, it works fine. This error is fixed in cl.exe version 16.00.40219.01. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Add --disable-inline-asm command line optionDiego Biurrun2012-09-10
| | | | This can come in handy for testing and possibly other purposes.
* configure: Don't try to enable the log2 function on msvcrtMartin Storsjö2012-09-10
| | | | | | | | | | | | Some msvcrt versions (the static 64 bit libc in MSVC 10) have a log2 function, but there is no declaration for it in the headers. Therefore, the normal configure check might find it, but it can fail during build or at runtime, depending on whether implicit function declarations are an error or not. Therefore simply ignore this function on this platform. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: dsputil: Only compile motion_est code when encoders are enabledDiego Biurrun2012-09-10
|
* mem: fix typo in check for __ICCMans Rullgard2012-09-10
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: mp3: drop redundant CMP settingMans Rullgard2012-09-10
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* rtp: Depacketization of JPEG (RFC 2435)Samuel Pitoiset2012-09-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Rename ff_put_string to avpriv_put_stringMartin Storsjö2012-09-09
| | | | | | | This allows using it from libavformat as well. This will be used by the RTP/JPEG depacketizer. Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpeg: Rename some symbols to avpriv_* instead of ff_*Samuel Pitoiset2012-09-09
| | | | | | These symbols will be used from the RTP/JPEG depacketizer. Signed-off-by: Martin Storsjö <martin@martin.st>
* yadif: cosmeticsLuca Barbato2012-09-09
|
* swscale: Provide the right alignment for external mmx asmMartin Storsjö2012-09-09
| | | | | | | | | | This reverts parts of e0c6cce4472. There is external mmx asm that requires this alignment. This fixes crashes when using swscale in builds with external mmx, without inline assembly. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: Replace checks for CPU extensions and flags by convenience macrosDiego Biurrun2012-09-08
| | | | | This separates code relying on inline from that relying on external assembly and fixes instances where the coalesced check was incorrect.
* configure: msvc: fix/simplify setting of flags for hostccMans Rullgard2012-09-08
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: mlpdsp: mlp_filter_channel_x86 requires inline asmHendrik Leppkes2012-09-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov_chan: Only set the channel_layout if setting it to a nonzero valueMartin Storsjö2012-09-08
| | | | | | | | If regularly parsing new chan atoms (as in rtpdec_qt), but the chan atoms don't actually contain any channel layout, don't reset the value that the caller has filled in (by guessing). Signed-off-by: Martin Storsjö <martin@martin.st>
* mov_chan: Reindent an incorrectly indented lineMartin Storsjö2012-09-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mp2 muxer: mark as AVFMT_NOTIMESTAMPS.Carl Eugen Hoyos2012-09-07
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* x86: float_dsp: fix ff_vector_fmac_scalar_avx() on Win64Justin Ruggles2012-09-07
| | | | | The SWAP macro does not work for explicit xmm/ymm usage, so instead just move the scalar value from xmm2 to xmm0.
* x86: more specific checks for availability of required assembly capabilitiesDiego Biurrun2012-09-07
|
* x86: avcodec: Drop silly "_mmx" suffix from dsputil template namesDiego Biurrun2012-09-07
|
* fate: Drop redundant setting of FUZZ to 1Diego Biurrun2012-09-07
|
* cavsdsp: set idct permutation independently of dsputilMans Rullgard2012-09-07
| | | | | | | CAVS uses its own idct so using dsputil to set the permutation is fragile. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: allow using add_hfyu_median_prediction_cmov on any cpu with cmovMans Rullgard2012-09-07
| | | | | | | | | For some reason add_hfyu_median_prediction_cmov is only selected on 3Dnow-capable CPUs, even though it uses no 3Dnow instructions. This patch allows it to be selected on any cpu with cmov with the possibility of being overridden by the mmxext version. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mov_chan: Pass a separate AVIOContext for readingSamuel Pitoiset2012-09-07
| | | | | | | This fixes crashes when called from rtpdec_qt, where AVFormatContext->pb is null, a crash present since 3bab7cd128. Signed-off-by: Martin Storsjö <martin@martin.st>
* af_asyncts: check return value from lavr when flushing.Anton Khirnov2012-09-07
| | | | | Fixes an infinite loop on flush when avresample_get_delay() still reports some samples but avresample_convert() doesn't return any data.
* mss2: simplify loop in decode_rle()Alberto Delmás2012-09-06
| | | | | | | | It calculates the sum of power of two series, which can be done in one step. Suggested by Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss12: avoid unnecessary division in arith*_get_bit()Alberto Delmás2012-09-06
| | | | | | | | | | | | That division can be replaced with a comparison: ((c->value - c->low) << 1) + 1 >= range By expanding 'range' definition and simplifying this inequation we obtain the final expression. Suggested by Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss2: do not try to read too many palette entriesAlberto Delmás2012-09-06
| | | | | | Reported by Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mpegvideo: set AVFrame fields to NULL after freeing the base memoryJanne Grunau2012-09-06
| | | | | | Prevents dangling pointers and makes access after free more obvious. Setting AVFrame.qscale_table to NULL is required for successfully allocating a previously freed Picture with ff_alloc_picture().