ffmpeg.git
6 years agoaudioconvert: add av_get_standard_channel_layout().
Nicolas George [Mon, 30 Jul 2012 08:26:40 +0000 (10:26 +0200)]
audioconvert: add av_get_standard_channel_layout().

Also bump minor version and add APIchanges entry.

6 years agoaudioconvert: add av_get_channel_description().
Nicolas George [Sun, 29 Jul 2012 22:33:38 +0000 (00:33 +0200)]
audioconvert: add av_get_channel_description().

6 years agoaudioconvert: include the description of channels in the library.
Nicolas George [Sun, 29 Jul 2012 19:53:19 +0000 (21:53 +0200)]
audioconvert: include the description of channels in the library.

6 years agoflacdec: fix memleaks
Paul B Mahol [Sun, 29 Jul 2012 14:03:37 +0000 (14:03 +0000)]
flacdec: fix memleaks

While here refactor code.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agosamplefmt: Fix warning about discarded qualifier
jamal [Fri, 27 Jul 2012 16:11:02 +0000 (13:11 -0300)]
samplefmt: Fix warning about discarded qualifier

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agooptions: Fix warning about incompatible pointer type
jamal [Fri, 27 Jul 2012 16:11:01 +0000 (13:11 -0300)]
options: Fix warning about incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 29 Jul 2012 22:56:33 +0000 (00:56 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  flvdec: remove spurious use of stream id
  lavf: deprecate r_frame_rate.
  lavf: round estimated average fps to a "standard" fps.

Conflicts:
ffmpeg.c
ffprobe.c
libavformat/avformat.h
libavformat/electronicarts.c
libavformat/flvdec.c
libavformat/rawdec.c
libavformat/utils.c
tests/ref/fate/iv8-demux

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi/avcodec: rename picref->samplesref variable in avfilter_get_audio_buffer_ref_fr...
Stefano Sabatini [Sun, 29 Jul 2012 16:56:48 +0000 (18:56 +0200)]
lavfi/avcodec: rename picref->samplesref variable in avfilter_get_audio_buffer_ref_from_frame()

The new name is more meaningful in that context.

6 years agolavfi/color: free internal context options in uninit()
Stefano Sabatini [Sun, 29 Jul 2012 15:11:35 +0000 (17:11 +0200)]
lavfi/color: free internal context options in uninit()

Keeping the set options in the context when the component is still used
can be useful for debugging purposes.

6 years agolavfi/color: cache and reuse colored picture in context
Stefano Sabatini [Sun, 29 Jul 2012 14:35:43 +0000 (16:35 +0200)]
lavfi/color: cache and reuse colored picture in context

Avoid to fill the same picture again and again with the same content.

Optimize computation, and provides an example for the use of the
AV_PERM_REUSE permission flag.

6 years agolavfi/color: reindent after the previous commit
Stefano Sabatini [Sun, 29 Jul 2012 14:26:58 +0000 (16:26 +0200)]
lavfi/color: reindent after the previous commit

6 years agolavfi/color: drop support for old deprecated syntax
Stefano Sabatini [Sun, 29 Jul 2012 14:20:14 +0000 (16:20 +0200)]
lavfi/color: drop support for old deprecated syntax

6 years agolavfi/testsrc: add comment in options
Stefano Sabatini [Sun, 29 Jul 2012 14:12:24 +0000 (16:12 +0200)]
lavfi/testsrc: add comment in options

6 years agoMerge commit 'fe1c1198e670242f3cf9e3e1eef27cff77f3ee23'
Michael Niedermayer [Sun, 29 Jul 2012 20:58:17 +0000 (22:58 +0200)]
Merge commit 'fe1c1198e670242f3cf9e3e1eef27cff77f3ee23'

* commit 'fe1c1198e670242f3cf9e3e1eef27cff77f3ee23':
  lavf: use dts difference instead of AVPacket.duration in find_stream_info()
  avf: introduce nobuffer option
  fate: make yadif tests consistent across systems
  vf_hqdn3d: support 9 and 10bit colordepth
  vf_hqdn3d: reduce intermediate precision
  vf_hqdn3d: simplify and optimize
  factor identical ff_inplace_start_frame out of two filters
  vf_hqdn3d: cosmetics
  avprobe/avconv: fix tentative declaration compile errors on MSVS.

Conflicts:
doc/APIchanges
ffmpeg.c
ffprobe.c
libavformat/avformat.h
libavformat/options_table.h
libavformat/utils.c
libavformat/version.h
tests/fate/filter.mak
tests/ref/fate/filter-yadif-mode0
tests/ref/fate/filter-yadif-mode1

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoaacenc: new default cutoff
Michael Niedermayer [Sun, 29 Jul 2012 17:49:22 +0000 (19:49 +0200)]
aacenc: new default cutoff

Improves subjective quality

Formula and testing by: kamedo2 <fujisakihir90@yahoo.co.jp>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoflvdec: remove spurious use of stream id
Luca Barbato [Thu, 26 Jul 2012 14:18:11 +0000 (16:18 +0200)]
flvdec: remove spurious use of stream id

We match streams by codec id now.

6 years agodoc/filters: document TB variable for vf_setpts.
Nicolas George [Thu, 26 Jul 2012 17:03:03 +0000 (19:03 +0200)]
doc/filters: document TB variable for vf_setpts.

6 years agolibx264: list possible profiles.
Nicolas George [Sat, 28 Jul 2012 16:29:28 +0000 (18:29 +0200)]
libx264: list possible profiles.

The values are listed if setting them fails.
Using "-profile help" or "-profile list" have that effect.
Similar to 3aba391.
Suggested by "rogerdpack" in trac ticket #1529.

6 years agolavf: deprecate r_frame_rate.
Anton Khirnov [Tue, 26 Jun 2012 11:10:01 +0000 (13:10 +0200)]
lavf: deprecate r_frame_rate.

According to its description, it is supposed to be the LCM of all the
frame durations. The usability of such a thing is vanishingly small,
especially since we cannot determine it with any amount of reliability.
Therefore get rid of it after the next bump.

Replace it with the average framerate where it makes sense.

FATE results for the wtv and xmv demux tests change. In the wtv case
this is caused by the file being corrupted (or possibly badly cut) and
containing invalid timestamps. This results in lavf estimating the
framerate wrong and making up wrong frame durations.
In the xmv case the file contains pts jumps, so again the estimated
framerate is far from anything sane and lavf again makes up different
frame durations.

In some other tests lavf starts making up frame durations from different
frame.

6 years agolavf: round estimated average fps to a "standard" fps.
Anton Khirnov [Fri, 27 Jul 2012 12:04:07 +0000 (14:04 +0200)]
lavf: round estimated average fps to a "standard" fps.

6 years agolavf: use dts difference instead of AVPacket.duration in find_stream_info()
Anton Khirnov [Thu, 28 Jun 2012 13:49:51 +0000 (15:49 +0200)]
lavf: use dts difference instead of AVPacket.duration in find_stream_info()

AVPacket.duration is mostly made up and thus completely useless, this is
especially true for video streams.
Therefore use dts difference for framerate estimation and
the max_analyze_duration check.

The asyncts test now needs -analyzeduration, because the default is 5
seconds and the audio stream in the sample appears at ~10 seconds.

6 years agoavf: introduce nobuffer option
Luca Barbato [Thu, 26 Jul 2012 23:35:12 +0000 (16:35 -0700)]
avf: introduce nobuffer option

Useful in cases where a significant analyzeduration is
still needed, while minimizing buffering before output.

An example is processing low-latency streams where all
media types won't necessarily come in if the
analyzeduration is small.

Additional changes by Josh Allmann <joshua.allmann@gmail.com>

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agolavf/apetag: move common stuff between writer and reader to single file
Paul B Mahol [Sun, 29 Jul 2012 02:17:57 +0000 (02:17 +0000)]
lavf/apetag: move common stuff between writer and reader to single file

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agodoc/general: add missed WavPack muxing support information
Paul B Mahol [Sun, 29 Jul 2012 02:26:09 +0000 (02:26 +0000)]
doc/general: add missed WavPack muxing support information

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agolavf/smacker: remove bogus video from .long_name
Paul B Mahol [Sun, 29 Jul 2012 02:22:09 +0000 (02:22 +0000)]
lavf/smacker: remove bogus video from .long_name

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agowvenc: support for ape tags
Paul B Mahol [Fri, 27 Jul 2012 09:42:46 +0000 (09:42 +0000)]
wvenc: support for ape tags

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoAPE tag writer
Paul B Mahol [Wed, 8 Feb 2012 23:58:17 +0000 (23:58 +0000)]
APE tag writer

6 years agoWavPack muxer
Paul B Mahol [Mon, 6 Feb 2012 19:50:09 +0000 (19:50 +0000)]
WavPack muxer

6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 28 Jul 2012 23:56:31 +0000 (01:56 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (35 commits)
  h264_idct_10bit: port x86 assembly to cpuflags.
  x86inc: clip num_args to 7 on x86-32.
  x86inc: sync to latest version from x264.
  fft: rename "z" to "zc" to prevent name collision.
  wv: return meaningful error codes.
  wv: return AVERROR_EOF on EOF, not EIO.
  mp3dec: forward errors for av_get_packet().
  mp3dec: remove a pointless local variable.
  mp3dec: remove commented out cruft.
  lavfi: bump minor to mark stabilizing the ABI.
  FATE: add tests for yadif.
  FATE: add a test for delogo video filter.
  FATE: add a test for amix audio filter.
  audiogen: allow specifying random seed as a commandline parameter.
  vc1dec: Override invalid macroblock quantizer
  vc1: avoid reading beyond the last line in vc1_draw_sprites()
  vc1dec: check that coded slice positions and interlacing match.
  vc1dec: Do not ignore ff_vc1_parse_frame_header_adv return value
  configure: Move parts that should not be user-selectable to CONFIG_EXTRA
  lavf: remove commented out cruft in avformat_find_stream_info()
  ...

Conflicts:
Makefile
configure
libavcodec/vc1dec.c
libavcodec/x86/h264_deblock.asm
libavcodec/x86/h264_deblock_10bit.asm
libavcodec/x86/h264dsp_mmx.c
libavfilter/version.h
libavformat/mp3dec.c
libavformat/utils.c
libavformat/wv.c
libavutil/x86/x86inc.asm

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate: make yadif tests consistent across systems
Mans Rullgard [Sat, 28 Jul 2012 17:15:56 +0000 (18:15 +0100)]
fate: make yadif tests consistent across systems

MMX-enabled systems by default use some dsputil functions differing
from the C versions.  Adding these flags ensures accurate ones are
used everywhere.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agovf_hqdn3d: support 9 and 10bit colordepth
Loren Merritt [Fri, 27 Jul 2012 01:42:05 +0000 (01:42 +0000)]
vf_hqdn3d: support 9 and 10bit colordepth

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
6 years agovf_hqdn3d: reduce intermediate precision
Loren Merritt [Thu, 26 Jul 2012 22:51:15 +0000 (22:51 +0000)]
vf_hqdn3d: reduce intermediate precision

11% faster on penryn, 7% on sandybridge, 5% on bulldozer
Negligible change to output.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
6 years agovf_hqdn3d: simplify and optimize
Loren Merritt [Thu, 26 Jul 2012 22:51:14 +0000 (22:51 +0000)]
vf_hqdn3d: simplify and optimize

14% faster on penryn, 2% on sandybridge, 9% on bulldozer

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
6 years agofactor identical ff_inplace_start_frame out of two filters
Loren Merritt [Thu, 26 Jul 2012 22:51:12 +0000 (22:51 +0000)]
factor identical ff_inplace_start_frame out of two filters

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
6 years agovf_hqdn3d: cosmetics
Loren Merritt [Thu, 26 Jul 2012 22:51:13 +0000 (22:51 +0000)]
vf_hqdn3d: cosmetics

Change code style to match the rest of libav.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
6 years agoavprobe/avconv: fix tentative declaration compile errors on MSVS.
Ronald S. Bultje [Thu, 26 Jul 2012 04:23:23 +0000 (04:23 +0000)]
avprobe/avconv: fix tentative declaration compile errors on MSVS.

6 years agofaq: suggest the concat filter.
Nicolas George [Mon, 23 Jul 2012 13:02:57 +0000 (15:02 +0200)]
faq: suggest the concat filter.

6 years agofaq: disambiguate "join".
Nicolas George [Mon, 23 Jul 2012 12:35:10 +0000 (14:35 +0200)]
faq: disambiguate "join".

6 years agoffmpeg: allow using the r_frame_rate as fundamental timebase for stream copy in avi
Michael Niedermayer [Sat, 28 Jul 2012 15:43:14 +0000 (17:43 +0200)]
ffmpeg: allow using the r_frame_rate as fundamental timebase for stream copy in avi

Fixes Ticket1434

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264_idct_10bit: port x86 assembly to cpuflags.
Ronald S. Bultje [Sat, 28 Jul 2012 15:01:12 +0000 (08:01 -0700)]
h264_idct_10bit: port x86 assembly to cpuflags.

6 years agox86inc: clip num_args to 7 on x86-32.
Loren Merritt [Fri, 27 Jul 2012 16:33:41 +0000 (09:33 -0700)]
x86inc: clip num_args to 7 on x86-32.

This allows us to unconditionally set the cglobal num_args
parameter to a bigger value, thus making writing yasm code
even easier than before.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
6 years agox86inc: sync to latest version from x264.
Ronald S. Bultje [Fri, 27 Jul 2012 03:26:17 +0000 (20:26 -0700)]
x86inc: sync to latest version from x264.

6 years agofft: rename "z" to "zc" to prevent name collision.
Ronald S. Bultje [Sat, 28 Jul 2012 15:20:19 +0000 (08:20 -0700)]
fft: rename "z" to "zc" to prevent name collision.

Without this, cglobal will expand "z" to "zh" to access the high byte
in a register's word, which causes a name collision with the ZH(x) macro
further up in this file.

6 years agoffmpeg: add code to perform ts wrap correction
Michael Niedermayer [Sat, 28 Jul 2012 14:55:12 +0000 (16:55 +0200)]
ffmpeg: add code to perform ts wrap correction

Fixes ticket1385

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate: switch rsync to fate-suite.ffmpeg.org
Michael Niedermayer [Sat, 28 Jul 2012 02:26:23 +0000 (04:26 +0200)]
fate: switch rsync to fate-suite.ffmpeg.org

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavf_concat: fix silence duration.
Nicolas George [Sat, 28 Jul 2012 12:57:52 +0000 (14:57 +0200)]
avf_concat: fix silence duration.

concat_in.pts starts at 0 for each segment, so the duration
of the silence was too long, except at the first stitch.

6 years agoasrc_flite: do not crash on multiple instances.
Nicolas George [Sat, 28 Jul 2012 09:53:18 +0000 (11:53 +0200)]
asrc_flite: do not crash on multiple instances.

The voice register functions return the same voice structure
upon multiple registration. It causes us two problems:

If we delete a voice without deregistering it, it leaves
a dangling pointer inside the library.

If we delete or unregister a voice at uninit, it may still
be in use by another instance of the filter.

The second problem is solved by keeping an usage counter inside
asrc_flite. This is not thread-safe, but neither is flite itself.

6 years agowv: return meaningful error codes.
Anton Khirnov [Sat, 28 Jul 2012 10:28:05 +0000 (12:28 +0200)]
wv: return meaningful error codes.

6 years agowv: return AVERROR_EOF on EOF, not EIO.
Anton Khirnov [Sat, 28 Jul 2012 10:23:04 +0000 (12:23 +0200)]
wv: return AVERROR_EOF on EOF, not EIO.

6 years agomp3dec: forward errors for av_get_packet().
Anton Khirnov [Sat, 28 Jul 2012 10:21:21 +0000 (12:21 +0200)]
mp3dec: forward errors for av_get_packet().

Don't invent a bogus EIO error.

The code now doesn't check for ret == 0, but that check is redundant,
av_get_packet() never returns 0.

6 years agomp3dec: remove a pointless local variable.
Anton Khirnov [Sat, 28 Jul 2012 10:20:08 +0000 (12:20 +0200)]
mp3dec: remove a pointless local variable.

6 years agomp3dec: remove commented out cruft.
Anton Khirnov [Sat, 28 Jul 2012 10:18:51 +0000 (12:18 +0200)]
mp3dec: remove commented out cruft.

6 years agolavfi: bump minor to mark stabilizing the ABI.
Anton Khirnov [Wed, 25 Jul 2012 06:34:44 +0000 (08:34 +0200)]
lavfi: bump minor to mark stabilizing the ABI.

6 years agoFATE: add tests for yadif.
Anton Khirnov [Wed, 25 Jul 2012 06:25:38 +0000 (08:25 +0200)]
FATE: add tests for yadif.

6 years agoFATE: add a test for delogo video filter.
Anton Khirnov [Mon, 9 Jul 2012 10:09:58 +0000 (12:09 +0200)]
FATE: add a test for delogo video filter.

6 years agoFATE: add a test for amix audio filter.
Anton Khirnov [Tue, 29 May 2012 10:08:58 +0000 (12:08 +0200)]
FATE: add a test for amix audio filter.

6 years agoaudiogen: allow specifying random seed as a commandline parameter.
Anton Khirnov [Wed, 4 Jul 2012 04:32:30 +0000 (06:32 +0200)]
audiogen: allow specifying random seed as a commandline parameter.

6 years agovc1dec: Override invalid macroblock quantizer
Michael Niedermayer [Sat, 28 Jul 2012 12:07:45 +0000 (18:07 +0600)]
vc1dec: Override invalid macroblock quantizer

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agovc1: avoid reading beyond the last line in vc1_draw_sprites()
Michael Niedermayer [Sat, 28 Jul 2012 10:27:55 +0000 (16:27 +0600)]
vc1: avoid reading beyond the last line in vc1_draw_sprites()

Fixes overread

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agovc1dec: check that coded slice positions and interlacing match.
Michael Niedermayer [Sat, 28 Jul 2012 11:14:50 +0000 (17:14 +0600)]
vc1dec: check that coded slice positions and interlacing match.

This fixes out of array writes

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agovc1dec: Do not ignore ff_vc1_parse_frame_header_adv return value
Michael Niedermayer [Sat, 28 Jul 2012 11:14:48 +0000 (17:14 +0600)]
vc1dec: Do not ignore ff_vc1_parse_frame_header_adv return value

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agodoc/general: add missing device support information
Stefano Sabatini [Sat, 28 Jul 2012 09:08:42 +0000 (11:08 +0200)]
doc/general: add missing device support information

6 years agoavf_concat: fix min value for v option.
Nicolas George [Sat, 28 Jul 2012 09:48:14 +0000 (11:48 +0200)]
avf_concat: fix min value for v option.

6 years agoconfigure: Move parts that should not be user-selectable to CONFIG_EXTRA
Diego Biurrun [Fri, 27 Jul 2012 00:06:29 +0000 (02:06 +0200)]
configure: Move parts that should not be user-selectable to CONFIG_EXTRA

6 years agolavfi: add flite audio source
Stefano Sabatini [Sun, 21 Aug 2011 00:29:33 +0000 (02:29 +0200)]
lavfi: add flite audio source

6 years agodoc/filters: itemize movie examples
Stefano Sabatini [Mon, 23 Jul 2012 21:30:08 +0000 (23:30 +0200)]
doc/filters: itemize movie examples

6 years agolavfi: move movie and amovie to a "multimedia sources" section
Stefano Sabatini [Mon, 23 Jul 2012 21:21:33 +0000 (23:21 +0200)]
lavfi: move movie and amovie to a "multimedia sources" section

Since the recent changes, movie and amovie are able to deal with more
than one type of stream, so they should be categorized as "multimedia
sources" rather than audio/video sources.

6 years agolavu/bprint: extend/clarify documentation for av_bprint_init() size_max value
Stefano Sabatini [Thu, 26 Jul 2012 19:37:11 +0000 (21:37 +0200)]
lavu/bprint: extend/clarify documentation for av_bprint_init() size_max value

Also define AV_BPRINT_SIZE_* macros before av_bprint_init() declaration,
and mention them in the av_bprint_init() doxy.

6 years agolavf: remove commented out cruft in avformat_find_stream_info()
Anton Khirnov [Thu, 28 Jun 2012 11:33:12 +0000 (13:33 +0200)]
lavf: remove commented out cruft in avformat_find_stream_info()

6 years agoAdd missing libavutil/time.h includes.
Anton Khirnov [Fri, 27 Jul 2012 14:28:36 +0000 (16:28 +0200)]
Add missing libavutil/time.h includes.

6 years agompegaudiodec: switch to av_assert
Michael Niedermayer [Sat, 28 Jul 2012 02:25:02 +0000 (04:25 +0200)]
mpegaudiodec: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovp3: don't compile mmx IDCT functions on x86-64.
Ronald S. Bultje [Fri, 27 Jul 2012 05:16:37 +0000 (22:16 -0700)]
vp3: don't compile mmx IDCT functions on x86-64.

64-bit CPUs always have SSE2, and a SSE2 version exists, thus the MMX
version will never be used.

6 years agoh264_loopfilter: port x86 simd to cpuflags.
Ronald S. Bultje [Sat, 28 Jul 2012 00:45:30 +0000 (17:45 -0700)]
h264_loopfilter: port x86 simd to cpuflags.

6 years agodxva2: Fix some warnings about incompatible pointer type
jamal [Fri, 27 Jul 2012 08:23:13 +0000 (05:23 -0300)]
dxva2: Fix some warnings about incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agobuild: support non-standard replacements for -c flag
Mans Rullgard [Fri, 20 Jul 2012 22:43:27 +0000 (23:43 +0100)]
build: support non-standard replacements for -c flag

This allows non-standard replacements for the -c compiler flag.
Some compilers use other flags or no flag at all in place of
the usual one.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agobuild: support non-standard replacements for -E flag
Mans Rullgard [Fri, 20 Jul 2012 21:22:41 +0000 (22:22 +0100)]
build: support non-standard replacements for -E flag

This allows using non-standard flags for running the C preprocessor.
The -o flag must be included in this setting due to strange syntax
required by some compilers.

Set the correct flags for tms470.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoh264_chromamc_10bit: port x86 simd to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 03:43:50 +0000 (20:43 -0700)]
h264_chromamc_10bit: port x86 simd to cpuflags.

6 years agovp3: port x86 SIMD to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 22:17:27 +0000 (15:17 -0700)]
vp3: port x86 SIMD to cpuflags.

6 years agobuild: Use portable compiler flag constructs in header compilation rule
Diego Biurrun [Fri, 27 Jul 2012 10:06:01 +0000 (12:06 +0200)]
build: Use portable compiler flag constructs in header compilation rule

6 years agox11grab: cosmetics: consistent naming for x11grab-related things
Diego Biurrun [Sat, 21 Jul 2012 19:28:54 +0000 (21:28 +0200)]
x11grab: cosmetics: consistent naming for x11grab-related things

6 years agobuild: Rename YASMDEP variable to DEPYASM for consistency
Diego Biurrun [Wed, 25 Jul 2012 11:25:58 +0000 (13:25 +0200)]
build: Rename YASMDEP variable to DEPYASM for consistency

6 years agodvdsubenc: switch to av_assert
Michael Niedermayer [Fri, 27 Jul 2012 23:18:04 +0000 (01:18 +0200)]
dvdsubenc: switch to av_assert

we use av_assert0() because the previous code unconditionally
enabled the assert.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavio: Document that write_packet() is not allowed to change its input
Michael Niedermayer [Fri, 27 Jul 2012 23:15:48 +0000 (01:15 +0200)]
avio: Document that write_packet() is not allowed to change its input

Found-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agohls: Proceed to the next segment at any error code
Martin Storsjö [Fri, 27 Jul 2012 17:24:53 +0000 (20:24 +0300)]
hls: Proceed to the next segment at any error code

Previously, we returned any error code except AVERROR_EOF to the
caller - only if AVERROR_EOF or 0 was returned, we proceeded to
the next segment.

With some setups of web servers, using Connection: close in https
and GnuTLS, we don't get a clean error code at the end of segments.
In those cases, just proceed to the next segment.

Tested-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agotls: Return AVERROR_EOF if the TLS_read/write functions return 0
Martin Storsjö [Fri, 27 Jul 2012 17:22:51 +0000 (20:22 +0300)]
tls: Return AVERROR_EOF if the TLS_read/write functions return 0

OpenSSL returns 0 when the peer has closed the connection. GnuTLS
doesn't return that though, but returns
GNUTLS_E_UNEXPECTED_PACKET_LENGTH if the connection simply is closed
without a clean close notify packet.

Tested-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agorv34: port x86 SIMD to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 05:19:19 +0000 (22:19 -0700)]
rv34: port x86 SIMD to cpuflags.

6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 27 Jul 2012 21:42:19 +0000 (23:42 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  proresdsp: port x86 assembly to cpuflags.
  lavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro
  lavfi: better channel layout negotiation
  alac: check for truncated packets
  alac: reverse lpc coeff order, simplify filter
  lavr: add x86-optimized mixing functions
  x86: add support for fmaddps fma4 instruction with abstraction to avx/sse
  tscc2: fix typo in array index
  build: use COMPILE template for HOSTOBJS
  build: do full flag handling for all compiler-type tools
  eval: fix printing of NaN in eval fate test.
  build: Rename aandct component to more descriptive aandcttables
  mpegaudio: bury inline asm under HAVE_INLINE_ASM.
  x86inc: automatically insert vzeroupper for YMM functions.
  rtmp: Check the buffer length of ping packets
  rtmp: Allow having more unknown data at the end of a chunk size packet without failing
  rtmp: Prevent reading outside of an allocate buffer when receiving server bandwidth packets

Conflicts:
Makefile
configure
libavcodec/x86/proresdsp.asm
libavutil/eval.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovp56: only compile MMX SIMD on x86-32.
Ronald S. Bultje [Fri, 27 Jul 2012 05:09:46 +0000 (22:09 -0700)]
vp56: only compile MMX SIMD on x86-32.

All x86-64 CPUs have SSE2, so the MMX version will never be used. This
leads to smaller binaries.

6 years agovp56: port x86 simd to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 05:07:29 +0000 (22:07 -0700)]
vp56: port x86 simd to cpuflags.

6 years agoimgutils: Fix warnings about incompatible pointer type and discarded qualifiers
jamal [Fri, 27 Jul 2012 08:23:15 +0000 (05:23 -0300)]
imgutils: Fix warnings about incompatible pointer type and discarded qualifiers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoproresdsp: port x86 assembly to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 03:38:27 +0000 (20:38 -0700)]
proresdsp: port x86 assembly to cpuflags.

6 years agoFix aiff demuxer dependencies.
Carl Eugen Hoyos [Fri, 27 Jul 2012 18:42:35 +0000 (20:42 +0200)]
Fix aiff demuxer dependencies.

6 years agolavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro
Justin Ruggles [Tue, 26 Jun 2012 20:50:10 +0000 (16:50 -0400)]
lavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro

Removes a false dependency on existing contents of the 2nd dst register,
giving better performance for OOE.

6 years agolavfi: better channel layout negotiation
Justin Ruggles [Sat, 14 Jul 2012 00:22:08 +0000 (20:22 -0400)]
lavfi: better channel layout negotiation

Allow substitution of channel pairs in the input for nearby channel pairs in
the output in order to get a closer match. Also weigh LFE channel mismatch
differently to favor matching the same layout without LFE over one less
channel with LFE.

6 years agoalac: check for truncated packets
Justin Ruggles [Fri, 20 Jul 2012 00:04:40 +0000 (20:04 -0400)]
alac: check for truncated packets

This will give a clearer error message when the error is caused by a
truncated packet.

6 years agoalac: reverse lpc coeff order, simplify filter
Justin Ruggles [Thu, 19 Jul 2012 18:08:22 +0000 (14:08 -0400)]
alac: reverse lpc coeff order, simplify filter

Reversing the lpc coefficient order simplifies indexing in the filter.

6 years agodwt: Fix several warnings about incompatible pointer type
jamal [Fri, 27 Jul 2012 08:23:17 +0000 (05:23 -0300)]
dwt: Fix several warnings about incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavr: add x86-optimized mixing functions
Justin Ruggles [Mon, 7 May 2012 13:56:33 +0000 (09:56 -0400)]
lavr: add x86-optimized mixing functions

Adds optimized functions for mixing 3 through 8 input channels to 1 and 2
output channels in fltp or s16p format with flt coeffs.

6 years agox86: add support for fmaddps fma4 instruction with abstraction to avx/sse
Justin Ruggles [Tue, 19 Jun 2012 03:39:14 +0000 (23:39 -0400)]
x86: add support for fmaddps fma4 instruction with abstraction to avx/sse

6 years agovf_alphamerge: Fix reversed conditional
Steven Robertson [Fri, 27 Jul 2012 12:00:04 +0000 (14:00 +0200)]
vf_alphamerge: Fix reversed conditional

Reviewed-by: Nicolas George