]>
git.sesse.net Git - ffmpeg/log
Michael Niedermayer [Sun, 9 Sep 2012 12:11:34 +0000 (14:11 +0200)]
ass: assert that the timsstamps fitted in the buffers
Failure of the assert would cause various problems later
if we continue.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 12:11:03 +0000 (14:11 +0200)]
ffmpeg_filter: fix unsafe snprintf() usage
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 12:10:11 +0000 (14:10 +0200)]
ffserver: fix unsafe snprintf() return usage.
Found-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 11:35:01 +0000 (13:35 +0200)]
ffserver: increase buffer size in http_send_too_busy_reply()
also add a assert0 to make sure the data is not truncated (which
should be impossible now)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 11:27:42 +0000 (13:27 +0200)]
Merge remote-tracking branch 'qatar/master'
* qatar/master:
swscale: Provide the right alignment for external mmx asm
x86: Replace checks for CPU extensions and flags by convenience macros
configure: msvc: fix/simplify setting of flags for hostcc
x86: mlpdsp: mlp_filter_channel_x86 requires inline asm
Conflicts:
libavcodec/x86/fft_init.c
libavcodec/x86/h264_intrapred_init.c
libavcodec/x86/h264dsp_init.c
libavcodec/x86/mpegaudiodec.c
libavcodec/x86/proresdsp_init.c
libavutil/x86/float_dsp_init.c
libswscale/utils.c
libswscale/x86/swscale.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 10:59:55 +0000 (12:59 +0200)]
aacpsy: use exp2(f) instead of pow(f)(2,...)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 10:59:11 +0000 (12:59 +0200)]
ffprobe: use exp2 instead of pow(2, ...)
Michael Niedermayer [Sun, 9 Sep 2012 10:58:43 +0000 (12:58 +0200)]
imc: use exp2 instead of pow(2,...)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Stefano Sabatini [Fri, 7 Sep 2012 23:18:09 +0000 (01:18 +0200)]
lavu/samplefmt: fix/clarify documentation for av_samples_fill_arrays()
In particular, avoid improper use of the term "channels" in place of
"planes", and fix erroneous documentation for the linesize parameter.
Stefano Sabatini [Fri, 7 Sep 2012 23:19:37 +0000 (01:19 +0200)]
lavu/samplefmt: add note regarding buf validity in av_samples_fill_arrays() doxy
Stefano Sabatini [Fri, 7 Sep 2012 09:21:06 +0000 (11:21 +0200)]
lavfi: drop deprecated and pointless avfilter_default_end_frame() function
Fix warning when compiling boxblur.
While this is technically a major API break, practically there will be no
one using that function since the filtering API is mostly private, so
that function alone is not usable.
Derek Buitenhuis [Fri, 7 Sep 2012 13:39:12 +0000 (09:39 -0400)]
dsputil/me/pixels: Actually use av_restrict
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 01:15:46 +0000 (03:15 +0200)]
mpeg4videodec: Fix "warning: dc_pred_dir may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 00:36:57 +0000 (02:36 +0200)]
smush: read subversion for version==1 too.
This avoids a gcc warning, otherwise it should have no effect.
its a bit more consistent too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sun, 9 Sep 2012 00:26:20 +0000 (02:26 +0200)]
swr: add av_cold to init/free functions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Martin Storsjö [Sat, 8 Sep 2012 22:43:53 +0000 (01:43 +0300)]
swscale: Provide the right alignment for external mmx asm
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>
Michael Niedermayer [Sat, 8 Sep 2012 21:57:37 +0000 (23:57 +0200)]
dct-test: fix order of evaluation bug
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 8 Sep 2012 21:56:26 +0000 (23:56 +0200)]
ffserver: fix order of evaluation bugs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 8 Sep 2012 19:18:47 +0000 (21:18 +0200)]
swr/auto_matrix: treat a single channel as mono instead of failing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 8 Sep 2012 19:11:45 +0000 (21:11 +0200)]
swr/auto_matrix: treat stereo downmix like stereo.
Based on code by John Stebbins
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 8 Sep 2012 19:10:19 +0000 (21:10 +0200)]
swr/auto_matrix: add clean layout function
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 8 Sep 2012 18:55:15 +0000 (20:55 +0200)]
swr/auto_matrix: move layouts to local variables
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diego Biurrun [Wed, 29 Aug 2012 17:01:05 +0000 (19:01 +0200)]
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.
Derek Buitenhuis [Sat, 8 Sep 2012 12:31:33 +0000 (08:31 -0400)]
random_seed: Replace a VLA with a normal array
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Mans Rullgard [Fri, 7 Sep 2012 10:13:36 +0000 (11:13 +0100)]
configure: msvc: fix/simplify setting of flags for hostcc
Signed-off-by: Mans Rullgard <mans@mansr.com>
Hendrik Leppkes [Sat, 8 Sep 2012 06:40:19 +0000 (08:40 +0200)]
x86: mlpdsp: mlp_filter_channel_x86 requires inline asm
Signed-off-by: Martin Storsjö <martin@martin.st>
Michael Niedermayer [Sat, 8 Sep 2012 11:37:35 +0000 (13:37 +0200)]
yuv4mpeg: fix potential alignment bug
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 8 Sep 2012 10:53:44 +0000 (12:53 +0200)]
Merge remote-tracking branch 'qatar/master'
* qatar/master:
mov_chan: Only set the channel_layout if setting it to a nonzero value
mov_chan: Reindent an incorrectly indented line
mp2 muxer: mark as AVFMT_NOTIMESTAMPS.
x86: float_dsp: fix ff_vector_fmac_scalar_avx() on Win64
x86: more specific checks for availability of required assembly capabilities
x86: avcodec: Drop silly "_mmx" suffix from dsputil template names
fate: Drop redundant setting of FUZZ to 1
cavsdsp: set idct permutation independently of dsputil
x86: allow using add_hfyu_median_prediction_cmov on any cpu with cmov
Conflicts:
libavcodec/x86/dsputil_mmx.c
libavformat/mp3enc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 8 Sep 2012 10:08:25 +0000 (12:08 +0200)]
ffio_read: dont spam the user at EOF with a truncation error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Daniel Verkamp [Sat, 8 Sep 2012 02:43:56 +0000 (19:43 -0700)]
flashsv2enc: only encode diff blocks when needed
A flashsv2 block may have a "diff block" to indicate which scan lines of
the block are actually encoded. However, this diff block need not be
used when the entire block is coded.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 8 Sep 2012 02:32:25 +0000 (04:32 +0200)]
mpegts: Fix potential memory leak in mpegts_read_packet()
This leak can happen in case of some error paths.
Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Wed, 5 Sep 2012 22:30:58 +0000 (00:30 +0200)]
avio: replace ETIMEDOUT by EIO
ETIMEDOUT is not available on all platforms
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Martin Storsjö [Fri, 7 Sep 2012 07:45:16 +0000 (10:45 +0300)]
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>
Martin Storsjö [Fri, 7 Sep 2012 07:41:37 +0000 (10:41 +0300)]
mov_chan: Reindent an incorrectly indented line
Signed-off-by: Martin Storsjö <martin@martin.st>
Carl Eugen Hoyos [Sun, 28 Aug 2011 17:43:04 +0000 (19:43 +0200)]
mp2 muxer: mark as AVFMT_NOTIMESTAMPS.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
Michael Niedermayer [Fri, 7 Sep 2012 20:53:21 +0000 (22:53 +0200)]
flashsv2enc: remove experimental flag, the encoder seems working now
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 20:31:37 +0000 (22:31 +0200)]
libswr: remove redundant ARCH_X86, MMX* implicates X86
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Derek Buitenhuis [Fri, 7 Sep 2012 14:48:28 +0000 (10:48 -0400)]
swsresample: Fix unprotected inline asm
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Derek Buitenhuis [Fri, 7 Sep 2012 17:58:26 +0000 (13:58 -0400)]
vf_mp: Do not build if inline assembly is not available
Rather than modify the mplayer filter sources, just disable
vf_mp if inline assembly is not available.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Derek Buitenhuis [Fri, 7 Sep 2012 12:16:30 +0000 (08:16 -0400)]
dshow: Change WINBOOL to BOOL
WINBOOL is MinGW-specific, and since both MSVC and MinGW
have BOOL, use that instead.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 19:28:29 +0000 (21:28 +0200)]
flashsv2enc: move blockbuffer realloc to reconfigure_at_keyframe()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 19:24:33 +0000 (21:24 +0200)]
flashv2enc: reallocate not only on block count changes but on dimension changes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Derek Buitenhuis [Fri, 7 Sep 2012 14:38:15 +0000 (10:38 -0400)]
flashsv2enc: Replace a VLA with a heap alloc
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 19:05:18 +0000 (21:05 +0200)]
flashsv2enc: fix prev-Z-prime encoding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Justin Ruggles [Fri, 3 Aug 2012 21:38:49 +0000 (17:38 -0400)]
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.
Derek Buitenhuis [Fri, 7 Sep 2012 17:50:13 +0000 (13:50 -0400)]
vf_idet: Remove emms
There is no MMX code anyway.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 17:38:23 +0000 (19:38 +0200)]
proresdec2: avoid VLA and use SliceContext instead.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Derek Buitenhuis [Fri, 7 Sep 2012 17:20:42 +0000 (13:20 -0400)]
cache: Only include unistd.h if it exists
This follows suite from
f3be3597079be7cd7adbb8392c32e408cadd3da2 .
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Ronald S. Bultje [Sun, 24 Jun 2012 21:42:27 +0000 (00:42 +0300)]
file: Only include unistd.h if it exists
It is included for the open/read/write/close functions. On
MSVC, where this header does not exist, the same functions
are provided by io.h, which is already included.
On windows, these functions are provided by io.h. Make sure
io.h is included if it exists, regardless of the setmode
function.
Signed-off-by: Martin Storsjö <martin@martin.st>
Conflicts:
configure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Ronald S. Bultje [Sun, 24 Jun 2012 18:26:31 +0000 (21:26 +0300)]
random_seed: Only read /dev/*random if we have unistd.h
unistd.h is used for open/read/close, but if this header does not
exist, there's probably no use in trying to open /dev/*random
at all.
Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Ronald S. Bultje [Sun, 24 Jun 2012 18:05:21 +0000 (21:05 +0300)]
rtpdec: Don't explicitly include unistd.h any longer
unistd.h used to be required for gethostname. On windows, gethostname
is provided by winsock2.h. Now network.h includes both unistd.h and
winsock2.h if they exist.
Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Derek Buitenhuis [Fri, 7 Sep 2012 12:54:21 +0000 (08:54 -0400)]
wtvdec: Remove unused strings.h header
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Derek Buitenhuis [Fri, 7 Sep 2012 12:54:20 +0000 (08:54 -0400)]
vf_colormatrix: Drop unused strings.h header
It already uses av_strcasecmp.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diego Biurrun [Tue, 4 Sep 2012 06:30:16 +0000 (08:30 +0200)]
x86: more specific checks for availability of required assembly capabilities
Michael Niedermayer [Fri, 7 Sep 2012 12:58:30 +0000 (14:58 +0200)]
Makefile: remove old codec_names.h on distclean
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 12:58:04 +0000 (14:58 +0200)]
gitignore: codec_names.h is no more
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Stefano Sabatini [Fri, 7 Sep 2012 12:04:04 +0000 (14:04 +0200)]
lavd/sdl: decrease debug info notice log level from AV_LOG_INFO to VERBOSE
Decrease log spam.
Stefano Sabatini [Fri, 7 Sep 2012 11:58:31 +0000 (13:58 +0200)]
lavd/sdl: remove trailing dot in messages
This is consistent with the apparently prevailing convention.
Stefano Sabatini [Fri, 7 Sep 2012 12:27:47 +0000 (14:27 +0200)]
lavf/utils: fix typo in has_codec_parameters
Replace "unspecified sample size" with "unspecified frame size". +10l.
Tomas Härdin [Fri, 7 Sep 2012 11:28:48 +0000 (13:28 +0200)]
img2dec: Don't leave AVIOContexts open on zero byte files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diego Biurrun [Sat, 11 Aug 2012 20:35:27 +0000 (22:35 +0200)]
x86: avcodec: Drop silly "_mmx" suffix from dsputil template names
Michael Niedermayer [Fri, 7 Sep 2012 11:37:19 +0000 (13:37 +0200)]
Merge remote-tracking branch 'qatar/master'
* qatar/master:
mov_chan: Pass a separate AVIOContext for reading
af_asyncts: check return value from lavr when flushing.
mss2: simplify loop in decode_rle()
mss12: avoid unnecessary division in arith*_get_bit()
mss2: do not try to read too many palette entries
mpegvideo: set AVFrame fields to NULL after freeing the base memory
configure: Set the right cc_e flags for msvc
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 11:16:04 +0000 (13:16 +0200)]
lavf: factor codec id forcing out
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 11:00:47 +0000 (13:00 +0200)]
lavfi: add qp_table_size
This avoid recalculating it and in case w/h changed avoids crashes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diego Biurrun [Sun, 26 Aug 2012 11:02:40 +0000 (13:02 +0200)]
fate: Drop redundant setting of FUZZ to 1
Mans Rullgard [Tue, 4 Sep 2012 12:52:01 +0000 (13:52 +0100)]
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>
Mans Rullgard [Sun, 2 Sep 2012 15:05:56 +0000 (16:05 +0100)]
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>
Michael Niedermayer [Fri, 7 Sep 2012 10:35:41 +0000 (12:35 +0200)]
faxcompr: fix out of array read
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Stefano Sabatini [Thu, 6 Sep 2012 21:20:10 +0000 (23:20 +0200)]
lavc/libx264: remap X264_LOG_INFO loglevel from AV_LOG_INFO to VERBOSE
AV_LOG_INFO is more geared towards messages to be read by the user, the
statistics shown by libx264 with X264_LOG_INFO are more useful at the
debugging level.
Help reducing the log spam.
Ramiro Polla [Thu, 6 Sep 2012 23:50:06 +0000 (20:50 -0300)]
lavd/dshow: use AV_OPT_TYPE_IMAGE_SIZE
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Ramiro Polla [Thu, 6 Sep 2012 23:41:19 +0000 (20:41 -0300)]
lavd/dshow: support video codec and pixel format selection
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Stefano Sabatini [Fri, 7 Sep 2012 07:39:58 +0000 (09:39 +0200)]
lavu/opt: reindent after last commit
Samuel Pitoiset [Thu, 6 Sep 2012 10:46:37 +0000 (12:46 +0200)]
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>
Anton Khirnov [Tue, 4 Sep 2012 20:01:38 +0000 (22:01 +0200)]
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.
Michael Niedermayer [Fri, 7 Sep 2012 04:53:11 +0000 (06:53 +0200)]
lavfi: 10l fix () placement
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Fri, 7 Sep 2012 01:24:55 +0000 (03:24 +0200)]
lavfi: factor copy_video_props() out
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Wed, 5 Sep 2012 02:41:22 +0000 (04:41 +0200)]
libavfilter: pass QP table through the filter chain
Any volunteers to port the pp and spp filters from libmpcodec?
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Ben Jackson [Thu, 6 Sep 2012 21:30:39 +0000 (14:30 -0700)]
lavc/vp6: Disable deblock filtering for Simple Profile
In vp6 Advanced Profile, deblock filtering is conditionally enabled in
each frame header. In Simple Profile it should always be off. vp6 was
inheriting the wrong default from ff_vp56_init.
Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Sat, 9 Jun 2012 20:45:49 +0000 (13:45 -0700)]
Add Dolby/DPLII downmix support to libswresample
Based on code by John Stebbins <jstebbins.hb@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Thu, 6 Sep 2012 20:32:39 +0000 (22:32 +0200)]
swr: update rematrix coeffs to match AC-3
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Thu, 6 Sep 2012 19:23:09 +0000 (21:23 +0200)]
swr: update copyright years
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Stefano Sabatini [Thu, 6 Sep 2012 14:16:11 +0000 (16:16 +0200)]
lavc/raw-test: invert the order of key/value when printing the fourcc->pix_fmt map
Print
FOURCC: PIX_FMT
rather than
PIX_FMT: FOURCC
This seems more consistent with the help message:
-l list the pixel format for each fourcc
Remove possibly redundant/confusing comment.
Stefano Sabatini [Thu, 6 Sep 2012 13:10:21 +0000 (15:10 +0200)]
lavf/flvenc: apply various log fixes/clarifications
Should improve user feedback in case of errors.
Stefano Sabatini [Thu, 6 Sep 2012 12:54:57 +0000 (14:54 +0200)]
lavf/flvenc: return meaningful error codes
Alberto Delmás [Mon, 3 Sep 2012 15:32:01 +0000 (17:32 +0200)]
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>
Alberto Delmás [Mon, 3 Sep 2012 15:32:01 +0000 (17:32 +0200)]
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>
Alberto Delmás [Mon, 3 Sep 2012 15:28:01 +0000 (17:28 +0200)]
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>
Janne Grunau [Wed, 5 Sep 2012 18:25:48 +0000 (20:25 +0200)]
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().
Michael Niedermayer [Thu, 6 Sep 2012 14:22:18 +0000 (16:22 +0200)]
Merge remote-tracking branch 'qatar/master'
* qatar/master:
fate: Allow setting the ld parameter from the config file
x86: dsputil: Do not redundantly check for CPU caps before calling init funcs
configure: Disable some warnings in MSVC
x86: vp56: cmov version of vp56_rac_get_prob requires inline asm
avopt: fix examples to match the same style about default values as the actual code.
configure: Add support for MSVC cl.exe/link.exe
lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.
Conflicts:
libavutil/opt.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Thu, 6 Sep 2012 14:14:34 +0000 (16:14 +0200)]
Revert "lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime."
This reverts commit
ba537202801d71711f1ef9306a6248dd2d426fa0 .
A better implementation has been commited by the same author to qatar
Conflicts:
configure
Found-by: jamal <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Thu, 6 Sep 2012 14:05:40 +0000 (16:05 +0200)]
Merge commit '
0db2d94280e260af5f3ad7993c5a6357462f17c9 '
* commit '
0db2d94280e260af5f3ad7993c5a6357462f17c9 ':
dsputil: workaround __VA_ARGS__ missing tokenization for MSVC
configure: add section for libc-specific hacks
build: disable ranlib on mingw
parser: Don't use pc as context for av_dlog
h264: Remove an assert on current_picture_ptr being null
Conflicts:
configure
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Martin Storsjö [Thu, 6 Sep 2012 11:44:07 +0000 (14:44 +0300)]
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>
Stefano Sabatini [Tue, 4 Sep 2012 09:49:15 +0000 (11:49 +0200)]
lavfi/mp: drop rotate wrapper
The native filter transpose is perfectly equivalent.
Martin Storsjö [Wed, 5 Sep 2012 19:57:40 +0000 (22:57 +0300)]
fate: Allow setting the ld parameter from the config file
Signed-off-by: Martin Storsjö <martin@martin.st>
Diego Biurrun [Wed, 5 Sep 2012 14:02:17 +0000 (16:02 +0200)]
x86: dsputil: Do not redundantly check for CPU caps before calling init funcs
The init functions check for CPU capabilities on their own already.
rogerdpack [Wed, 5 Sep 2012 22:22:58 +0000 (16:22 -0600)]
eliminate some mingw warnings
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer [Wed, 5 Sep 2012 22:41:51 +0000 (00:41 +0200)]
amrnbdec: silence a warning about unsigned cant be negative
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Stefano Sabatini [Wed, 5 Sep 2012 23:09:36 +0000 (01:09 +0200)]
tests/lavfi-regression: name temporary files after $testname in do_lavfi_pixfmts()
Fix a failure when running do_lavfi_pixfmts() for the
lavfi-tinterlace_merge and lavfi-tinterlace_pad tests concurrently.
Since they were using the same names for the temporary files, the first
ending test was removing them, and the second test was failing at
removing unexisting files.
Stefano Sabatini [Wed, 5 Sep 2012 09:23:42 +0000 (11:23 +0200)]
tests: add tinterlace filter tests
Only the merge and pad modes are tested.
Stefano Sabatini [Wed, 5 Sep 2012 21:45:35 +0000 (23:45 +0200)]
tests/lavfi-regressions: support user-specified test name in do_lavfi_pixfmts()
Make do_lavfi_pixfmts() support an user-specified name for the test.
This allows to specify two pixfmts tests for the same filter, e.g. to
test a filter with different parameters. Useful for the pending
tinterlace tests.