ffmpeg.git
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 12 May 2012 22:13:49 +0000 (00:13 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavfi: autoinsert resample filter when necessary.
  lavfi: add lavr-based audio resampling filter.
  x86: vc1: drop MMX loop filter implementation, which uses MMX2 instructions.

Conflicts:
configure
doc/filters.texi
libavcodec/x86/vc1dsp_mmx.c
libavfilter/Makefile
libavfilter/allfilters.c
libavfilter/avfiltergraph.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter: fix regression since addition of extended_data to audio
Michael Niedermayer [Sat, 12 May 2012 21:46:43 +0000 (23:46 +0200)]
avfilter: fix regression since addition of extended_data to audio

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: preserve bits_per_coded sample on stream copy.
Michael Niedermayer [Sat, 12 May 2012 19:09:32 +0000 (21:09 +0200)]
ffmpeg: preserve bits_per_coded sample on stream copy.

Fixes Ticket1124

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc/examples: add libswresample in the libraries.
Clément Bœsch [Wed, 9 May 2012 21:45:16 +0000 (23:45 +0200)]
doc/examples: add libswresample in the libraries.

It is required for audio filtering.

7 years agodoc/examples: use buffersrc.h instead of deprecated asrc_abuffer.h.
Clément Bœsch [Wed, 9 May 2012 21:47:08 +0000 (23:47 +0200)]
doc/examples: use buffersrc.h instead of deprecated asrc_abuffer.h.

7 years agodoc/examples: add programs to .gitignore.
Clément Bœsch [Wed, 9 May 2012 21:59:40 +0000 (23:59 +0200)]
doc/examples: add programs to .gitignore.

7 years agoh263enc: check w/h for validity
Michael Niedermayer [Sat, 12 May 2012 16:47:42 +0000 (18:47 +0200)]
h263enc: check w/h for validity

Fixes Ticket1063

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi: autoinsert resample filter when necessary.
Anton Khirnov [Fri, 4 May 2012 13:35:12 +0000 (15:35 +0200)]
lavfi: autoinsert resample filter when necessary.

7 years agolavfi: add lavr-based audio resampling filter.
Anton Khirnov [Fri, 4 May 2012 13:09:17 +0000 (15:09 +0200)]
lavfi: add lavr-based audio resampling filter.

7 years agodoc/examples: fix typo.
Clément Bœsch [Sat, 12 May 2012 16:08:26 +0000 (18:08 +0200)]
doc/examples: fix typo.

7 years agodoc/examples: add -O2 in CFLAGS.
Clément Bœsch [Wed, 9 May 2012 21:08:17 +0000 (23:08 +0200)]
doc/examples: add -O2 in CFLAGS.

7 years agodoc/examples: add missing math.h include in decoding/encoding example.
Clément Bœsch [Sat, 12 May 2012 15:24:08 +0000 (17:24 +0200)]
doc/examples: add missing math.h include in decoding/encoding example.

The header is required for the sin() function.

7 years agodoc/examples: link decoding_encoding and muxing with math lib.
Clément Bœsch [Wed, 9 May 2012 21:06:43 +0000 (23:06 +0200)]
doc/examples: link decoding_encoding and muxing with math lib.

These two examples use the sin() function.

7 years agodoc/examples: rename LDFLAGS to LDLIBS.
Clément Bœsch [Wed, 9 May 2012 21:05:12 +0000 (23:05 +0200)]
doc/examples: rename LDFLAGS to LDLIBS.

7 years agolavfi: remove audio.h include from avfilter.h.
Clément Bœsch [Sat, 12 May 2012 15:58:14 +0000 (17:58 +0200)]
lavfi: remove audio.h include from avfilter.h.

avfilter.h is a public header and the unexported audio.h header contains
only internal prototypes.

7 years agox86: vc1: drop MMX loop filter implementation, which uses MMX2 instructions.
Michael Kostylev [Fri, 11 May 2012 10:26:44 +0000 (12:26 +0200)]
x86: vc1: drop MMX loop filter implementation, which uses MMX2 instructions.

7 years agoFix flashsv2 encoder error message.
Carl Eugen Hoyos [Sat, 12 May 2012 11:11:56 +0000 (13:11 +0200)]
Fix flashsv2 encoder error message.

7 years agoflashsv2enc: fix division by zero
Michael Niedermayer [Sat, 12 May 2012 10:03:47 +0000 (12:03 +0200)]
flashsv2enc: fix division by zero

Fixes other half of Ticket1105

Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoflashsvenc: fix image sizes below 192x192
Michael Niedermayer [Sat, 12 May 2012 10:03:23 +0000 (12:03 +0200)]
flashsvenc: fix image sizes below 192x192

Fixes half of Ticket1105

Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agotiffenc: fix out of array read
Michael Niedermayer [Sat, 12 May 2012 08:57:15 +0000 (10:57 +0200)]
tiffenc: fix out of array read

Fixes ticket1112

Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosnow: fix 32x32 encoding
Michael Niedermayer [Sat, 12 May 2012 01:35:19 +0000 (03:35 +0200)]
snow: fix 32x32 encoding

Fixes ticket1083

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 11 May 2012 18:43:41 +0000 (20:43 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  fate: employ better names and add a convenient shorthand for vp6 tests
  arm/neon: dsputil: use correct size specifiers on vld1/vst1
  arm: dsputil: prettify some conditional instructions in put_pixels macros
  vqavideo: change x/y loop counters to the usual pattern
  avconv: use lrint() for rounding double timestamps

Conflicts:
tests/ref/fate/vc1-ism

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompeg12: fix logic that prevents extradata from being parsed twice.
Michael Niedermayer [Fri, 11 May 2012 16:37:41 +0000 (18:37 +0200)]
mpeg12: fix logic that prevents extradata from being parsed twice.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompeg12: print an error when there was a frame in extradata.
Michael Niedermayer [Fri, 11 May 2012 16:37:03 +0000 (18:37 +0200)]
mpeg12: print an error when there was a frame in extradata.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoAllow decoding of j2k images with bpp<8 and 8<bpp<16 with libopenjpeg.
Carl Eugen Hoyos [Fri, 11 May 2012 15:50:28 +0000 (17:50 +0200)]
Allow decoding of j2k images with bpp<8 and 8<bpp<16 with libopenjpeg.

Fixes one of several problems described in ticket #1279.

7 years agolavf: extend the avi raw hack to mov
Michael Niedermayer [Fri, 11 May 2012 14:53:22 +0000 (16:53 +0200)]
lavf: extend the avi raw hack to mov

Fixes ticket1194

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: print a matching tag in case of code tag validation failure
Michael Niedermayer [Fri, 11 May 2012 14:52:47 +0000 (16:52 +0200)]
lavf: print a matching tag in case of code tag validation failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfutils: ff_load_image: Initialize context
Michael Niedermayer [Fri, 11 May 2012 13:04:38 +0000 (15:04 +0200)]
lavfutils: ff_load_image: Initialize context

should fix  ticket1264

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegtsenc: fix 10l typo, wrong stream
Michael Niedermayer [Fri, 11 May 2012 12:04:33 +0000 (14:04 +0200)]
mpegtsenc: fix 10l typo, wrong stream

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegtsenc: check max_delay in write_packet_internal().
Michael Niedermayer [Fri, 11 May 2012 11:41:06 +0000 (13:41 +0200)]
mpegtsenc: check max_delay in write_packet_internal().

Checking it during PES writing is too late.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegtsenc: fix delay type
Michael Niedermayer [Fri, 11 May 2012 11:40:40 +0000 (13:40 +0200)]
mpegtsenc: fix delay type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agofate: employ better names and add a convenient shorthand for vp6 tests
Diego Biurrun [Wed, 9 May 2012 02:02:01 +0000 (04:02 +0200)]
fate: employ better names and add a convenient shorthand for vp6 tests

7 years agodcaenc: fix out of array read
Michael Niedermayer [Fri, 11 May 2012 01:33:59 +0000 (03:33 +0200)]
dcaenc: fix out of array read

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: fix deinterlace
Michael Niedermayer [Fri, 11 May 2012 00:45:34 +0000 (02:45 +0200)]
ffmpeg: fix deinterlace

Fixes ticket1295

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoarm/neon: dsputil: use correct size specifiers on vld1/vst1
Mans Rullgard [Thu, 10 May 2012 16:40:30 +0000 (17:40 +0100)]
arm/neon: dsputil: use correct size specifiers on vld1/vst1

Change the size specifiers to match the actual element sizes
of the data.  This makes no practical difference with strict
alignment checking disabled (the default) other than somewhat
documenting the code.  With strict alignment checking on, it
avoids trapping the unaligned loads.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoarm: dsputil: prettify some conditional instructions in put_pixels macros
Mans Rullgard [Thu, 10 May 2012 15:24:33 +0000 (16:24 +0100)]
arm: dsputil: prettify some conditional instructions in put_pixels macros

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agovqavideo: change x/y loop counters to the usual pattern
Mans Rullgard [Mon, 23 Apr 2012 11:51:28 +0000 (12:51 +0100)]
vqavideo: change x/y loop counters to the usual pattern

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoavconv: use lrint() for rounding double timestamps
Mans Rullgard [Thu, 10 May 2012 11:19:10 +0000 (12:19 +0100)]
avconv: use lrint() for rounding double timestamps

Converting the double to float for lrintf() loses precision when
the value is not exactly representable as a single-precision float.
Apart from being inaccurate, this causes discrepancies in some
configurations due to differences in rounding.

Note that the changed timestamp in the vc1-ism test is a bogus,
made-up value.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 10 May 2012 20:41:29 +0000 (22:41 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (25 commits)
  rv40dsp x86: MMX/MMX2/3DNow/SSE2/SSSE3 implementations of MC
  ape: Use unsigned integer maths
  arm: dsputil: fix overreads in put/avg_pixels functions
  h264: K&R formatting cosmetics for header files (part II/II)
  h264: K&R formatting cosmetics for header files (part I/II)
  rtmp: Implement check bandwidth notification.
  rtmp: Support 'rtmp_swfurl', an option which specifies the URL of the SWF player.
  rtmp: Support 'rtmp_flashver', an option which overrides the version of the Flash plugin.
  rtmp: Support 'rtmp_tcurl', an option which overrides the URL of the target stream.
  cmdutils: Add fallback case to switch in check_stream_specifier().
  sctp: be consistent with socket option level
  configure: Add _XOPEN_SOURCE=600 to Solaris preprocessor flags.
  vcr1enc: drop pointless empty encode_init() wrapper function
  vcr1: drop pointless write-only AVCodecContext member from VCR1Context
  vcr1: group encoder code together to save #ifdefs
  vcr1: cosmetics: K&R prettyprinting, typos, parentheses, dead code, comments
  mov: make one comment slightly more specific
  lavr: replace the SSE version of ff_conv_fltp_to_flt_6ch() with SSE4 and AVX
  lavfi: move audio-related functions to a separate file.
  lavfi: remove some audio-related function from public API.
  ...

Conflicts:
cmdutils.c
libavcodec/h264.h
libavcodec/h264_mvpred.h
libavcodec/vcr1.c
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/defaults.c
libavfilter/internal.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_lut: fix pointer type (const) warning
Michael Niedermayer [Thu, 10 May 2012 18:09:37 +0000 (20:09 +0200)]
vf_lut: fix pointer type (const) warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: remove unused variables
Michael Niedermayer [Thu, 10 May 2012 18:06:46 +0000 (20:06 +0200)]
vf_idet: remove unused variables

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: fix pointer type (const) warning
Michael Niedermayer [Thu, 10 May 2012 18:06:24 +0000 (20:06 +0200)]
vf_idet: fix pointer type (const) warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: fix pointer type (const) warning
Michael Niedermayer [Thu, 10 May 2012 18:03:29 +0000 (20:03 +0200)]
ffmpeg: fix pointer type (const) warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: remove unused variables
Michael Niedermayer [Thu, 10 May 2012 18:03:13 +0000 (20:03 +0200)]
ffmpeg: remove unused variables

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: fix uninitialized variable warning
Michael Niedermayer [Thu, 10 May 2012 18:02:49 +0000 (20:02 +0200)]
ffmpeg: fix uninitialized variable warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoRevert "Remove libvorbis Vorbis decoding support. Our native decoder is complete"
Michael Niedermayer [Sat, 5 May 2012 08:45:30 +0000 (10:45 +0200)]
Revert "Remove libvorbis Vorbis decoding support.  Our native decoder is complete"

Its useful to support the official decoder for comparission and debugging.

This reverts commit f9def9ccc6ecfe1778d4daa62a7ada27b5f79bfc.

Conflicts:

Changelog
configure
libavcodec/allcodecs.c
libavcodec/libvorbis.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavutil/log: allow av_log_set_callback (NULL)
Michael Niedermayer [Thu, 10 May 2012 17:11:23 +0000 (19:11 +0200)]
avutil/log: allow av_log_set_callback (NULL)

Idea-by: Don Moir <donmoir@comcast.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agorv40dsp x86: MMX/MMX2/3DNow/SSE2/SSSE3 implementations of MC
Christophe Gisquet [Thu, 19 Apr 2012 20:36:17 +0000 (22:36 +0200)]
rv40dsp x86: MMX/MMX2/3DNow/SSE2/SSSE3 implementations of MC

Code mostly inspired by vp8's MC, however:
- its MMX2 horizontal filter is worse because it can't take advantage of
  the coefficient redundancy
- that same coefficient redundancy allows better code for non-SSSE3 versions

Benchmark (rounded to tens of unit):
        V8x8  H8x8  2D8x8  V16x16  H16x16  2D16x16
C       445    358   985    1785    1559    3280
MMX*    219    271   478     714     929    1443
SSE2    131    158   294     425     515     892
SSSE3   120    122   248     387     390     763

End result is overall around a 15% speedup for SSSE3 version (on 6 sequences);
all loop filter functions now take around 55% of decoding time, while luma MC
dsp functions are around 6%, chroma ones are 1.3% and biweight around 2.3%.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agolavc/utils: fix division by 0
Michael Niedermayer [Thu, 10 May 2012 15:36:49 +0000 (17:36 +0200)]
lavc/utils: fix division by 0

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoomadec: Check geob datasize more completely
Michael Niedermayer [Thu, 10 May 2012 15:22:27 +0000 (17:22 +0200)]
omadec: Check geob datasize more completely

Fixes out of heap array read.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoape: Use unsigned integer maths
Christophe Gisquet [Tue, 28 Feb 2012 16:42:12 +0000 (17:42 +0100)]
ape: Use unsigned integer maths

This involves a division that should be a shift.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoarm: dsputil: fix overreads in put/avg_pixels functions
Mans Rullgard [Wed, 9 May 2012 23:55:18 +0000 (00:55 +0100)]
arm: dsputil: fix overreads in put/avg_pixels functions

The vertically interpolating variants of these functions read
ahead one line to optimise the loop.  On the last line processed,
this might be outside the buffer.  Fix these invalid reads by
processing the last line outside the loop.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoh264: K&R formatting cosmetics for header files (part II/II)
Diego Biurrun [Mon, 7 May 2012 12:13:57 +0000 (14:13 +0200)]
h264: K&R formatting cosmetics for header files (part II/II)

7 years agoh264: K&R formatting cosmetics for header files (part I/II)
Diego Biurrun [Mon, 7 May 2012 12:13:23 +0000 (14:13 +0200)]
h264: K&R formatting cosmetics for header files (part I/II)

7 years agortmp: Implement check bandwidth notification.
Samuel Pitoiset [Tue, 8 May 2012 22:58:09 +0000 (00:58 +0200)]
rtmp: Implement check bandwidth notification.

According to the behaviour of librtmp, it is recommended to send this
message to the server after receiving the 'onBWDone' callback in order
to do bandwidth checking and improve compatibility with some servers.

7 years agortmp: Support 'rtmp_swfurl', an option which specifies the URL of the SWF player.
Samuel Pitoiset [Wed, 9 May 2012 00:12:16 +0000 (02:12 +0200)]
rtmp: Support 'rtmp_swfurl', an option which specifies the URL of the SWF player.

7 years agortmp: Support 'rtmp_flashver', an option which overrides the version of the Flash...
Samuel Pitoiset [Wed, 9 May 2012 00:12:15 +0000 (02:12 +0200)]
rtmp: Support 'rtmp_flashver', an option which overrides the version of the Flash plugin.

7 years agortmp: Support 'rtmp_tcurl', an option which overrides the URL of the target stream.
Samuel Pitoiset [Wed, 9 May 2012 00:12:14 +0000 (02:12 +0200)]
rtmp: Support 'rtmp_tcurl', an option which overrides the URL of the target stream.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agocdg: fix pts
Michael Niedermayer [Thu, 10 May 2012 02:13:25 +0000 (04:13 +0200)]
cdg: fix pts

Fixes Ticket1226

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfiltergraph: improve pick_format()
Michael Niedermayer [Wed, 9 May 2012 23:32:51 +0000 (01:32 +0200)]
avfiltergraph: improve pick_format()

without this the recent changes to format/sink handling would cause a regression in fate

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 10 May 2012 00:14:44 +0000 (02:14 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (27 commits)
  libxvid: Give more suitable names to libxvid-related files.
  libxvid: Separate libxvid encoder from libxvid rate control code.
  jpeglsdec: Remove write-only variable in ff_jpegls_decode_lse().
  fate: cosmetics: lowercase some comments
  fate: Give more consistent names to some RealVideo/RealAudio tests.
  lavfi: add avfilter_get_audio_buffer_ref_from_arrays().
  lavfi: add extended_data to AVFilterBuffer.
  lavc: check that extended_data is properly set in avcodec_encode_audio2().
  lavc: pad last audio frame with silence when needed.
  samplefmt: add a function for filling a buffer with silence.
  samplefmt: add a function for copying audio samples.
  lavr: do not try to copy to uninitialized output audio data.
  lavr: make avresample_read() with NULL output discard samples.
  fate: split idroq audio and video into separate tests
  fate: improve dependencies
  fate: add convenient shorthands for ea-vp6, libavcodec, libavutil tests
  fate: split some combined tests into separate audio and video tests
  fate: fix dependencies for probe tests
  mips: intreadwrite: fix inline asm for gcc 4.8
  mips: intreadwrite: remove unnecessary inline asm
  ...

Conflicts:
cmdutils.h
configure
doc/APIchanges
doc/filters.texi
ffmpeg.c
ffplay.c
libavcodec/internal.h
libavcodec/jpeglsdec.c
libavcodec/libschroedingerdec.c
libavcodec/libxvid.c
libavcodec/libxvid_rc.c
libavcodec/utils.c
libavcodec/version.h
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/buffersink.h
tests/Makefile
tests/fate/aac.mak
tests/fate/audio.mak
tests/fate/demux.mak
tests/fate/ea.mak
tests/fate/image.mak
tests/fate/libavutil.mak
tests/fate/lossless-audio.mak
tests/fate/lossless-video.mak
tests/fate/microsoft.mak
tests/fate/qt.mak
tests/fate/real.mak
tests/fate/screen.mak
tests/fate/video.mak
tests/fate/voice.mak
tests/fate/vqf.mak
tests/ref/fate/ea-mad
tests/ref/fate/ea-tqi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoAdd tools/ffeval to .gitignore.
Clément Bœsch [Wed, 9 May 2012 22:07:20 +0000 (00:07 +0200)]
Add tools/ffeval to .gitignore.

7 years agocmdutils: Add fallback case to switch in check_stream_specifier().
Diego Biurrun [Wed, 11 Apr 2012 08:31:02 +0000 (10:31 +0200)]
cmdutils: Add fallback case to switch in check_stream_specifier().

This fixes the warning:
cmdutils.c:897: warning: ‘type’ may be used uninitialized in this function

7 years agosctp: be consistent with socket option level
Sean McGovern [Wed, 9 May 2012 06:13:16 +0000 (02:13 -0400)]
sctp: be consistent with socket option level

Replace SOL_SCTP by the more portable IPPROTO_SCTP.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoconfigure: Add _XOPEN_SOURCE=600 to Solaris preprocessor flags.
Sean McGovern [Wed, 9 May 2012 06:13:15 +0000 (02:13 -0400)]
configure: Add _XOPEN_SOURCE=600 to Solaris preprocessor flags.

This is needed to expose some networking APIs.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agovcr1enc: drop pointless empty encode_init() wrapper function
Diego Biurrun [Thu, 12 Apr 2012 16:55:25 +0000 (18:55 +0200)]
vcr1enc: drop pointless empty encode_init() wrapper function

7 years agovcr1: drop pointless write-only AVCodecContext member from VCR1Context
Diego Biurrun [Thu, 12 Apr 2012 16:52:16 +0000 (18:52 +0200)]
vcr1: drop pointless write-only AVCodecContext member from VCR1Context

7 years agovcr1: group encoder code together to save #ifdefs
Diego Biurrun [Mon, 9 Apr 2012 16:11:35 +0000 (18:11 +0200)]
vcr1: group encoder code together to save #ifdefs

7 years agovcr1: cosmetics: K&R prettyprinting, typos, parentheses, dead code, comments
Diego Biurrun [Sun, 8 Apr 2012 11:05:17 +0000 (13:05 +0200)]
vcr1: cosmetics: K&R prettyprinting, typos, parentheses, dead code, comments

7 years agomov: make one comment slightly more specific
Diego Biurrun [Thu, 23 Feb 2012 10:34:28 +0000 (11:34 +0100)]
mov: make one comment slightly more specific

7 years agolavr: replace the SSE version of ff_conv_fltp_to_flt_6ch() with SSE4 and AVX
Justin Ruggles [Thu, 3 May 2012 19:23:32 +0000 (15:23 -0400)]
lavr: replace the SSE version of ff_conv_fltp_to_flt_6ch() with SSE4 and AVX

The current SSE version is slower than the MMX version on Athlon64 and Sandy
Bridge, but the SSE4 and AVX versions are faster on Sandy Bridge.

7 years agolavfi: move audio-related functions to a separate file.
Anton Khirnov [Mon, 7 May 2012 09:21:38 +0000 (11:21 +0200)]
lavfi: move audio-related functions to a separate file.

This is easier to follow than having them randomly scattered in
avfilter.c and defaults.c.

7 years agolavfi: remove some audio-related function from public API.
Anton Khirnov [Mon, 7 May 2012 08:51:23 +0000 (10:51 +0200)]
lavfi: remove some audio-related function from public API.

Those functions are only useful inside filters. It is better to not
support user filters until the API is more stable.

This breaks audio filtering API and ABI in theory, but since it's
unusable right now this shouldn't be a problem.

7 years agolavfi: change AVFilterLink.sample_rate from int64_t to int on next bump
Anton Khirnov [Wed, 9 May 2012 06:43:07 +0000 (08:43 +0200)]
lavfi: change AVFilterLink.sample_rate from int64_t to int on next bump

There is no real reason for it to be 64bit, it's just a plain int in the
rest of Libav.

7 years agolavfi: change AVFilterBufferRefAudioProps.sample_rate from uint32_t to int
Anton Khirnov [Sun, 6 May 2012 08:40:11 +0000 (10:40 +0200)]
lavfi: change AVFilterBufferRefAudioProps.sample_rate from uint32_t to int

There's no reason for it to be explicitly 32 bits. It's declared as a
plain int in all other places in Libav.

This breaks audio filtering API and ABI in theory, but since it's
unusable right now this shouldn't be a problem.

7 years agolavfi: simplify signature for avfilter_get_audio_buffer() and friends
Stefano Sabatini [Tue, 30 Aug 2011 21:22:29 +0000 (23:22 +0200)]
lavfi: simplify signature for avfilter_get_audio_buffer() and friends

The additional parameters are just complicating the function interface.

Assume that a requested samples buffer will *always* have the format
specified in the requested link.

This breaks audio filtering API and ABI in theory, but since it's
unusable right now this shouldn't be a problem.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavfi: use avfilter_get_audio_buffer_ref_from_arrays() in avfilter_default_get_audio_...
Stefano Sabatini [Sat, 15 Jan 2011 17:48:37 +0000 (18:48 +0100)]
lavfi: use avfilter_get_audio_buffer_ref_from_arrays() in avfilter_default_get_audio_buffer

7 years agolavfi: cleanup avfilter_get_audio_buffer() and pals.
Stefano Sabatini [Tue, 1 Feb 2011 11:34:23 +0000 (12:34 +0100)]
lavfi: cleanup avfilter_get_audio_buffer() and pals.

Remove AVFilterBufferRefAudioProps.size, and use nb_samples in its place
everywhere.
This is required as the size in the audio buffer may be aligned, so it
may not contain a well defined number of samples.

Also remove the useless planar parameter, which can be deduced from the
sample format.

This is technically an API and ABI break, but since the audio part of
lavfi is not usable now, this should not be a problem in practice.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoffmpeg: fix frame duration used for video sync.
Michael Niedermayer [Wed, 9 May 2012 16:15:03 +0000 (18:15 +0200)]
ffmpeg: fix frame duration used for video sync.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosrc_buffer: ifdef->if CONFIG_*
Michael Niedermayer [Sat, 5 May 2012 00:49:10 +0000 (02:49 +0200)]
src_buffer: ifdef->if CONFIG_*

Reviewed-by: Stefano
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibxvid: Give more suitable names to libxvid-related files.
Diego Biurrun [Wed, 9 May 2012 15:20:36 +0000 (17:20 +0200)]
libxvid: Give more suitable names to libxvid-related files.

7 years agolibxvid: Separate libxvid encoder from libxvid rate control code.
Diego Biurrun [Tue, 10 Apr 2012 23:11:08 +0000 (01:11 +0200)]
libxvid: Separate libxvid encoder from libxvid rate control code.

This allows compiling the Xvid rate control code without the encoder.

7 years agojpeglsdec: Remove write-only variable in ff_jpegls_decode_lse().
Diego Biurrun [Thu, 19 Apr 2012 12:55:49 +0000 (14:55 +0200)]
jpeglsdec: Remove write-only variable in ff_jpegls_decode_lse().

libavcodec/jpeglsdec.c:54:9: warning: variable ‘len’ set but not used

7 years agofate: cosmetics: lowercase some comments
Diego Biurrun [Thu, 26 Apr 2012 13:04:20 +0000 (15:04 +0200)]
fate: cosmetics: lowercase some comments

7 years agofate: Give more consistent names to some RealVideo/RealAudio tests.
Diego Biurrun [Thu, 26 Apr 2012 12:55:37 +0000 (14:55 +0200)]
fate: Give more consistent names to some RealVideo/RealAudio tests.

7 years agolavfi: add avfilter_get_audio_buffer_ref_from_arrays().
Stefano Sabatini [Sun, 30 Jan 2011 23:07:41 +0000 (00:07 +0100)]
lavfi: add avfilter_get_audio_buffer_ref_from_arrays().

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavfi: add extended_data to AVFilterBuffer.
Anton Khirnov [Mon, 16 Apr 2012 12:01:26 +0000 (14:01 +0200)]
lavfi: add extended_data to AVFilterBuffer.

This is similar to what has previously been done in AVFrame to allow
dealing with more than 8 channels.

7 years agolavc: check that extended_data is properly set in avcodec_encode_audio2().
Anton Khirnov [Mon, 7 May 2012 14:56:20 +0000 (16:56 +0200)]
lavc: check that extended_data is properly set in avcodec_encode_audio2().

7 years agolavc: pad last audio frame with silence when needed.
Anton Khirnov [Mon, 7 May 2012 11:55:03 +0000 (13:55 +0200)]
lavc: pad last audio frame with silence when needed.

7 years agosamplefmt: add a function for filling a buffer with silence.
Anton Khirnov [Tue, 8 May 2012 11:56:37 +0000 (13:56 +0200)]
samplefmt: add a function for filling a buffer with silence.

7 years agosamplefmt: add a function for copying audio samples.
Anton Khirnov [Sun, 6 May 2012 12:10:38 +0000 (14:10 +0200)]
samplefmt: add a function for copying audio samples.

7 years agolavr: do not try to copy to uninitialized output audio data.
Anton Khirnov [Wed, 9 May 2012 04:36:29 +0000 (06:36 +0200)]
lavr: do not try to copy to uninitialized output audio data.

This would happen at least when lavr is used as a fifo with no
conversion.

7 years agolavr: make avresample_read() with NULL output discard samples.
Anton Khirnov [Wed, 9 May 2012 04:35:13 +0000 (06:35 +0200)]
lavr: make avresample_read() with NULL output discard samples.

7 years agofate: split idroq audio and video into separate tests
Mans Rullgard [Tue, 8 May 2012 23:59:40 +0000 (00:59 +0100)]
fate: split idroq audio and video into separate tests

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agofate: improve dependencies
Mans Rullgard [Tue, 8 May 2012 21:07:26 +0000 (22:07 +0100)]
fate: improve dependencies

This makes only tests actually using avconv depend on it.
The remaining tests already depend on what they need.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agofate: add convenient shorthands for ea-vp6, libavcodec, libavutil tests
Diego Biurrun [Thu, 26 Apr 2012 12:05:57 +0000 (12:05 +0000)]
fate: add convenient shorthands for ea-vp6, libavcodec, libavutil tests

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agofate: split some combined tests into separate audio and video tests
Diego Biurrun [Fri, 27 Apr 2012 14:17:42 +0000 (14:17 +0000)]
fate: split some combined tests into separate audio and video tests

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agofate: fix dependencies for probe tests
Mans Rullgard [Tue, 8 May 2012 10:29:09 +0000 (11:29 +0100)]
fate: fix dependencies for probe tests

Only the probe tests should depend on avprobe and these should
be enabled only if avprobe is configured.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agomips: intreadwrite: fix inline asm for gcc 4.8
Mans Rullgard [Sat, 5 May 2012 22:38:15 +0000 (23:38 +0100)]
mips: intreadwrite: fix inline asm for gcc 4.8

Just like gcc 4.6 and later on ARM, gcc 4.8 on MIPS generates
inefficient code when a known-unaligned location is used as a
memory input operand.  This applies the same fix as has been
previously done to the ARM version of the code.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agomips: intreadwrite: remove unnecessary inline asm
Mans Rullgard [Sat, 5 May 2012 22:24:51 +0000 (23:24 +0100)]
mips: intreadwrite: remove unnecessary inline asm

GCC actually handles unaligned accesses correctly in all cases
except, absurdly, 32-bit loads on mips64.  The remaining asm is
thus not needed, and removing it results in better code.

Signed-off-by: Mans Rullgard <mans@mansr.com>