Samuel Pitoiset
3c19815416
rtp: Depacketization of JPEG (RFC 2435)
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
aefea4d0de
Rename ff_put_string to avpriv_put_string
...
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>
13 years ago
Samuel Pitoiset
a0845bae49
mjpeg: Rename some symbols to avpriv_* instead of ff_*
...
These symbols will be used from the RTP/JPEG depacketizer.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Luca Barbato
28165fee1b
yadif: cosmetics
13 years ago
Martin Storsjö
75c37c5ace
swscale: Provide the right alignment for external mmx asm
...
This reverts parts of e0c6cce447
. 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>
13 years ago
Diego Biurrun
e0c6cce447
x86: Replace checks for CPU extensions and flags by convenience macros
...
This separates code relying on inline from that relying on external
assembly and fixes instances where the coalesced check was incorrect.
13 years ago
Mans Rullgard
6a0200f24d
configure: msvc: fix/simplify setting of flags for hostcc
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Hendrik Leppkes
fb4e983e0c
x86: mlpdsp: mlp_filter_channel_x86 requires inline asm
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
7b699d8136
mov_chan: Only set the channel_layout if setting it to a nonzero value
...
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>
13 years ago
Martin Storsjö
5f72bc02f8
mov_chan: Reindent an incorrectly indented line
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Carl Eugen Hoyos
407eeb3474
mp2 muxer: mark as AVFMT_NOTIMESTAMPS.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Justin Ruggles
7327525997
x86: float_dsp: fix ff_vector_fmac_scalar_avx() on Win64
...
The SWAP macro does not work for explicit xmm/ymm usage, so instead just move
the scalar value from xmm2 to xmm0.
13 years ago
Diego Biurrun
1169f0d0af
x86: more specific checks for availability of required assembly capabilities
13 years ago
Diego Biurrun
8cb7ed5562
x86: avcodec: Drop silly "_mmx" suffix from dsputil template names
13 years ago
Diego Biurrun
74c8414462
fate: Drop redundant setting of FUZZ to 1
13 years ago
Mans Rullgard
6efb698883
cavsdsp: set idct permutation independently of dsputil
...
CAVS uses its own idct so using dsputil to set the permutation
is fragile.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
5fe64d88f6
x86: allow using add_hfyu_median_prediction_cmov on any cpu with cmov
...
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>
13 years ago
Samuel Pitoiset
9afb7061f9
mov_chan: Pass a separate AVIOContext for reading
...
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>
13 years ago
Anton Khirnov
91a84a5247
af_asyncts: check return value from lavr when flushing.
...
Fixes an infinite loop on flush when avresample_get_delay() still
reports some samples but avresample_convert() doesn't return any data.
13 years ago
Alberto Delmás
290d1022b2
mss2: simplify loop in decode_rle()
...
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>
13 years ago
Alberto Delmás
9699b3a2d7
mss12: avoid unnecessary division in arith*_get_bit()
...
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>
13 years ago
Alberto Delmás
6ceef07b21
mss2: do not try to read too many palette entries
...
Reported by Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Janne Grunau
59383d5740
mpegvideo: set AVFrame fields to NULL after freeing the base memory
...
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().
13 years ago
Martin Storsjö
a224b2cb30
configure: Set the right cc_e flags for msvc
...
The default ones work, but outputs the preprocessed file on stdout
(into config.log).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
2b3660084f
fate: Allow setting the ld parameter from the config file
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
ef6ba1f237
x86: dsputil: Do not redundantly check for CPU caps before calling init funcs
...
The init functions check for CPU capabilities on their own already.
13 years ago
Martin Storsjö
4a185ed2d4
configure: Disable some warnings in MSVC
...
This disables the following warnings:
C4100: unreferenced formal parameter
(1035 occurrances)
C4214: nonstandard extension used : bit field types other than int
(609 occurances)
C4996: 'avpriv_snprintf': This function or variable may be unsafe.
Consider using _snprintf_s instead. To disable deprecation,
use _CRT_SECURE_NO_WARNINGS. See online help for details.
(351 occurrances)
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Hendrik Leppkes
d914ea6fd8
x86: vp56: cmov version of vp56_rac_get_prob requires inline asm
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Michael Niedermayer
42e63ec8dc
avopt: fix examples to match the same style about default values as the actual code.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
dfa559bcbd
configure: Add support for MSVC cl.exe/link.exe
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
4fa661a857
lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Luca Barbato
0db2d94280
dsputil: workaround __VA_ARGS__ missing tokenization for MSVC
...
A second expansion forces the preprocessor to tokenize properly.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Mans Rullgard
b797f3c4d0
configure: add section for libc-specific hacks
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Mans Rullgard
a3222470de
build: disable ranlib on mingw
...
Using ranlib is not required but prevents using the libraries with
msvc.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
6d65496990
parser: Don't use pc as context for av_dlog
...
The ParserContext class doesn't have an AVClass, required for
using it as a logging class.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
5e997688f8
h264: Remove an assert on current_picture_ptr being null
...
It is possible in various error paths as well as gap handling
that this has already been allocated. It is not clear why that
would be a problem with the current code, thus disable the
assert to avoid a common assert failure when asserts are enabled.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
6980453569
build: eamad: Add missing dependency on mpegvideo code
13 years ago
Diego Biurrun
aa66111365
build: utvideoenc: Add missing dependency on Huffman code
13 years ago
Martin Storsjö
686a329395
avopt: Reorder the default_val struct, making i64 the first field
...
Also mention this change in APIchanges.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
21bc440384
avopt: Explicitly store rational option defaults in .dbl
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
c7b610aa0b
avopt: Explicitly store float/double option defaults in .dbl
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
d58dd4b5b5
avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
124134e424
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
2d7d91f06d
svq1enc: Set picture_structure correctly
...
This fixes assert failures when running in debug mode.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
91672504a4
mpegvideo: remove last_picture_ptr / h264 assert.
...
This assert is no longer true since h264 error concealment needs
last_picture_ptr to be set.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
19000122a4
mpegvideo_enc: remove assert that has become obsolete with the new API
...
It now just checks uninitialized and unused data.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
2c340596ca
elbg: Fix an assert
...
It seems the condition was flipped from what was intended.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Elio Pettenò
b36f87ff90
configure: add support for bdver1 and bdver2 CPU types.
...
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Luca Barbato
3093939077
avio: make avio_close NULL the freed buffer
13 years ago