ffmpeg.git
6 years agox86/mpegaudiodec: drop likely now unneeded #if HAVE_AVX_EXTERNAL
Michael Niedermayer [Tue, 18 Sep 2012 14:15:17 +0000 (16:15 +0200)]
x86/mpegaudiodec: drop likely now unneeded #if HAVE_AVX_EXTERNAL

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agompegaudiodec: add prototypes for all functions that may need them
Michael Niedermayer [Tue, 18 Sep 2012 14:10:09 +0000 (16:10 +0200)]
mpegaudiodec: add prototypes for all functions that may need them

fixes compile failure

Found-by: kriegerod
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoallcodecs: re-enable sonic
Michael Niedermayer [Tue, 18 Sep 2012 13:45:20 +0000 (15:45 +0200)]
allcodecs: re-enable sonic

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosonic: update to encode2() API
Michael Niedermayer [Tue, 18 Sep 2012 13:45:07 +0000 (15:45 +0200)]
sonic: update to encode2() API

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 18 Sep 2012 13:06:43 +0000 (15:06 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  flvenc: silence bogus warning
  configure: include flags in nm variable
  alsdec: fix misplaced parentheses.
  alsdec: check return values.
  alsdec: fix number of decoded samples in first sub-block in BGMC mode.
  alsdec: Fix out of ltp_gain_values read.
  alsdec: Check that quantized parcor coeffs are within range.
  alsdec: check opt_order.

Conflicts:
configure
libavcodec/alsdec.c
libavformat/flvenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '23aae62c2cb4504a09ceb8cd0cabc1c8b260f521'
Michael Niedermayer [Tue, 18 Sep 2012 12:30:31 +0000 (14:30 +0200)]
Merge commit '23aae62c2cb4504a09ceb8cd0cabc1c8b260f521'

* commit '23aae62c2cb4504a09ceb8cd0cabc1c8b260f521':
  alsdec: Check k used for rice decoder.
  avfiltergraph: silence an uninitialized variable warning
  xsubenc: reindent
  lavc: replace AVCodecContext.encode with subtitle-specific callback
  lavc: add const to private codec class initialization.
  avconv: don't pass a bogus parameter to avfilter_graph_create_filter().
  id3v2: strdup the genre name explicitly.
  lavf/id3v2: do not export empty fields.
  buffersrc: add const to the AVFrame* argument of av_buffersrc_write_frame()
  lavfi: replace empty input/output lists with null pointers

Conflicts:
ffmpeg_filter.c
libavcodec/alsdec.c
libavcodec/dvdsubenc.c
libavcodec/utils.c
libavcodec/v210dec.h
libavfilter/af_channelsplit.c
libavfilter/avfiltergraph.c
libavfilter/buffersrc.c
libavfilter/src_movie.c
libavfilter/vf_ass.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agotargaenc: Use named TGA_RLE constant instead of magic number
Bobby Bingham [Tue, 18 Sep 2012 08:45:09 +0000 (10:45 +0200)]
targaenc: Use named TGA_RLE constant instead of magic number

6 years agoFix typo in targa encoder comment
Bobby Bingham [Tue, 18 Sep 2012 08:44:32 +0000 (10:44 +0200)]
Fix typo in targa encoder comment

6 years agoflvenc: silence bogus warning
Benjamin Larsson [Mon, 17 Sep 2012 19:14:58 +0000 (21:14 +0200)]
flvenc: silence bogus warning

The compiler fails to figure out that enc->codec_type can only
have 3 different values.
Thus when an if/else is encountered it triggers on the possibility
of the else case has not initialized the flags variable.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agodoc: fix typos in filter documentation
Bobby Bingham [Tue, 18 Sep 2012 05:38:30 +0000 (00:38 -0500)]
doc: fix typos in filter documentation

Signed-off-by: Bobby Bingham <uhmmmm@gmail.com>
6 years agodsputil: change assert(8) to av_assert2(8)
Michael Niedermayer [Tue, 18 Sep 2012 03:27:23 +0000 (05:27 +0200)]
dsputil: change assert(8) to av_assert2(8)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswscale: change assert() to av_assert()
Michael Niedermayer [Tue, 18 Sep 2012 03:19:11 +0000 (05:19 +0200)]
swscale: change assert() to av_assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agonsvdec: change 2 commented assert() to av_assert()
Michael Niedermayer [Tue, 18 Sep 2012 03:08:32 +0000 (05:08 +0200)]
nsvdec: change 2 commented assert() to av_assert()

they keep showing up if i grep for non av assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoget_cabac_inline_x86: workaround clang bug with disabled optimizations
Michael Niedermayer [Thu, 13 Sep 2012 20:24:47 +0000 (22:24 +0200)]
get_cabac_inline_x86: workaround clang bug with disabled optimizations

gcc produces binary identical output relative to before this change

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoconfigure: include flags in nm variable
Mans Rullgard [Sun, 16 Sep 2012 20:47:16 +0000 (21:47 +0100)]
configure: include flags in nm variable

This simplifies ensuring proper flags are used when the default
is overridden by the system or on the command line.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoWhen copying pkt side_data, don't forget size, type
Andrey Utkin [Mon, 17 Sep 2012 16:55:02 +0000 (19:55 +0300)]
When copying pkt side_data, don't forget size, type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibx264: feed x264_param_apply_profile from AVCodecContext.profile in absence of...
Lyubomir Marinov [Sun, 16 Sep 2012 19:53:49 +0000 (22:53 +0300)]
libx264: feed x264_param_apply_profile from AVCodecContext.profile in absence of other information

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibx264: connect AVCodecContext.rtp_payload_size to x264_params_t.i_slice_max_size
Lyubomir Marinov [Sun, 16 Sep 2012 09:46:27 +0000 (12:46 +0300)]
libx264: connect AVCodecContext.rtp_payload_size to x264_params_t.i_slice_max_size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoRemove code that duplicates existing code a few lines down.
Reimar Döffinger [Mon, 17 Sep 2012 19:16:32 +0000 (21:16 +0200)]
Remove code that duplicates existing code a few lines down.

This also fixes a potential crash since s->pb can be NULL.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
6 years agodirac_arith: Fix unprotected inline asm
Derek Buitenhuis [Sun, 16 Sep 2012 23:46:02 +0000 (19:46 -0400)]
dirac_arith: Fix unprotected inline asm

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agoalsdec: fix misplaced parentheses.
Clément Bœsch [Tue, 4 Sep 2012 18:30:14 +0000 (14:30 -0400)]
alsdec: fix misplaced parentheses.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
6 years agoalsdec: check return values.
Thilo Borgmann [Tue, 27 Mar 2012 16:06:54 +0000 (18:06 +0200)]
alsdec: check return values.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
6 years agoalsdec: fix number of decoded samples in first sub-block in BGMC mode.
Thilo Borgmann [Sun, 15 Apr 2012 16:07:12 +0000 (18:07 +0200)]
alsdec: fix number of decoded samples in first sub-block in BGMC mode.

Fixes CVE-2012-2790

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
6 years agoalsdec: Fix out of ltp_gain_values read.
Thilo Borgmann [Sun, 11 Mar 2012 15:56:23 +0000 (16:56 +0100)]
alsdec: Fix out of ltp_gain_values read.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
6 years agoalsdec: Check that quantized parcor coeffs are within range.
Michael Niedermayer [Wed, 29 Feb 2012 05:10:17 +0000 (06:10 +0100)]
alsdec: Check that quantized parcor coeffs are within range.

ALS spec:
11.6.3.1.1 Quantization and encoding of parcor coefficients
...
In all cases the resulting quantized values ak are restricted to the range [-64,63].

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
6 years agoalsdec: Check k used for rice decoder.
Michael Niedermayer [Sat, 7 Apr 2012 15:25:47 +0000 (17:25 +0200)]
alsdec: Check k used for rice decoder.

Values that fail this check will cause failure of decode_rice()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
6 years agoalsdec: check opt_order.
Michael Niedermayer [Sat, 24 Mar 2012 00:39:13 +0000 (01:39 +0100)]
alsdec: check opt_order.

Fixes out of array write in quant_cof.
Also make sure no invalid opt_order stays in the context.

Fixes CVE-2012-2775

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
6 years agoavfiltergraph: silence an uninitialized variable warning
Anton Khirnov [Sat, 18 Aug 2012 14:51:32 +0000 (16:51 +0200)]
avfiltergraph: silence an uninitialized variable warning

The warning is:
libavfilter/avfiltergraph.c: In function ‘avfilter_graph_config’:
libavfilter/avfiltergraph.c:528:9: warning: ‘best_idx’ may be used uninitialized in this function [-Wuninitialized]
libavfilter/avfiltergraph.c:479:13: note: ‘best_idx’ was declared here

Initialize it to an invalid value and add an assert that it's properly
set later.

6 years agoxsubenc: reindent
Anton Khirnov [Sat, 18 Aug 2012 14:42:50 +0000 (16:42 +0200)]
xsubenc: reindent

6 years agolavc: replace AVCodecContext.encode with subtitle-specific callback
Anton Khirnov [Sat, 18 Aug 2012 14:41:24 +0000 (16:41 +0200)]
lavc: replace AVCodecContext.encode with subtitle-specific callback

AVCodecContext.encode is currently used only for subtitles, encode2 is
used for audio and video.

6 years agolavc: add const to private codec class initialization.
Anton Khirnov [Sat, 18 Aug 2012 14:21:00 +0000 (16:21 +0200)]
lavc: add const to private codec class initialization.

Silences a warning about discarding const.

6 years agoavconv: don't pass a bogus parameter to avfilter_graph_create_filter().
Anton Khirnov [Sat, 18 Aug 2012 14:15:42 +0000 (16:15 +0200)]
avconv: don't pass a bogus parameter to avfilter_graph_create_filter().

The buffer sink does not take any parameters.

Fixes an uninitialized variable warning.

6 years agoid3v2: strdup the genre name explicitly.
Clément Bœsch [Sat, 12 May 2012 20:39:30 +0000 (22:39 +0200)]
id3v2: strdup the genre name explicitly.

It would have been done anyway in the av_dict_set() call.

This simplifies the code and avoid a warning because of assigning a
const string from ff_id3v1_genre_str to a non-const variable.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agolavf/id3v2: do not export empty fields.
Clément Bœsch [Sat, 12 May 2012 20:31:11 +0000 (22:31 +0200)]
lavf/id3v2: do not export empty fields.

This also avoids a memleak.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agobuffersrc: add const to the AVFrame* argument of av_buffersrc_write_frame()
Anton Khirnov [Sat, 18 Aug 2012 06:58:09 +0000 (08:58 +0200)]
buffersrc: add const to the AVFrame* argument of av_buffersrc_write_frame()

6 years agolavfi: replace empty input/output lists with null pointers
Mans Rullgard [Sun, 16 Sep 2012 11:58:49 +0000 (12:58 +0100)]
lavfi: replace empty input/output lists with null pointers

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 17 Sep 2012 13:12:25 +0000 (15:12 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avconv: flush filtered frames before reconfiguring filters
  mov: stsd entries must be at least 16 byte
  mov: detect EOF in mov_read_dref()
  file: return proper error on seek failures

Conflicts:
libavformat/file.c
libavformat/mov.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate: add av_small_strptime() test to fate-parseutils
Stefano Sabatini [Sun, 16 Sep 2012 22:49:31 +0000 (00:49 +0200)]
fate: add av_small_strptime() test to fate-parseutils

6 years agolavu/parseutils: fix av_small_strptime() whitespace directive parsing
Stefano Sabatini [Sun, 16 Sep 2012 13:22:31 +0000 (15:22 +0200)]
lavu/parseutils: fix av_small_strptime() whitespace directive parsing

According to POSIX, strptime() should consume whitespaces in the date
string everytime a whitespace conversion specification is found in the
date format specification. Make av_small_strptime() conform with this
behavior.

In particular, should fix trac ticket #1739.

6 years agoavconv: flush filtered frames before reconfiguring filters
Janne Grunau [Thu, 6 Sep 2012 19:51:31 +0000 (21:51 +0200)]
avconv: flush filtered frames before reconfiguring filters

This prevents lost frames after a resolution change.

6 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Sun, 16 Sep 2012 22:40:55 +0000 (00:40 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: dont wait 100ms if data is not yet ready

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffplay: dont wait 100ms if data is not yet ready
Marton Balint [Sun, 16 Sep 2012 17:00:51 +0000 (19:00 +0200)]
ffplay: dont wait 100ms if data is not yet ready

Also signal the wait if audio buffer is empty. This fixes jerky audio with
realtime sources.

Signed-off-by: Marton Balint <cus@passwd.hu>
6 years agoarm/dca: Fix compilation of decode_blockcodes() with --enable-thumb
Michael Niedermayer [Sun, 16 Sep 2012 17:05:23 +0000 (19:05 +0200)]
arm/dca: Fix compilation of decode_blockcodes() with --enable-thumb

Fix Suggested-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf/oggdec: reword stream creation error message.
Clément Bœsch [Sat, 15 Sep 2012 00:59:23 +0000 (02:59 +0200)]
lavf/oggdec: reword stream creation error message.

6 years agolavf/oggdec: reindent and comment blocks.
Clément Bœsch [Fri, 14 Sep 2012 22:42:25 +0000 (00:42 +0200)]
lavf/oggdec: reindent and comment blocks.

6 years agolavf/oggdec: make stream replacement less convoluted.
Clément Bœsch [Fri, 14 Sep 2012 22:41:08 +0000 (00:41 +0200)]
lavf/oggdec: make stream replacement less convoluted.

Also re-use the allocated buffer instead of re-allocating a new one.

6 years agolavf/oggdec: more explicit zeroing of the new ogg stream.
Clément Bœsch [Fri, 14 Sep 2012 21:54:19 +0000 (23:54 +0200)]
lavf/oggdec: more explicit zeroing of the new ogg stream.

6 years agolavf/oggdec: rework allocations in ogg_new_streams().
Clément Bœsch [Fri, 14 Sep 2012 21:51:30 +0000 (23:51 +0200)]
lavf/oggdec: rework allocations in ogg_new_streams().

6 years agomov: stsd entries must be at least 16 byte
Michael Niedermayer [Thu, 15 Dec 2011 19:51:00 +0000 (20:51 +0100)]
mov: stsd entries must be at least 16 byte

Fix near infinite loop in stsd parsing.
Bug found by: Diana Elena Muscalu

The size is unsigned according the specification.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agolavf/oggdec: simplify destroying streams with chained audio streams.
Clément Bœsch [Tue, 21 Aug 2012 18:39:14 +0000 (20:39 +0200)]
lavf/oggdec: simplify destroying streams with chained audio streams.

nstreams is assumed to be 1 at that point, so the loop is pointless.

6 years agolavf/oggdec: rename str to sid.
Clément Bœsch [Fri, 14 Sep 2012 21:10:38 +0000 (23:10 +0200)]
lavf/oggdec: rename str to sid.

"str" is misleading here (it's often used for string). "sid" makes more
sense to identify a stream id.

6 years agolavf/oggdec: remove a comment not matching anything.
Clément Bœsch [Fri, 14 Sep 2012 21:07:23 +0000 (23:07 +0200)]
lavf/oggdec: remove a comment not matching anything.

6 years agolavf/oggdec: inline ogg_get_headers().
Clément Bœsch [Fri, 14 Sep 2012 21:05:57 +0000 (23:05 +0200)]
lavf/oggdec: inline ogg_get_headers().

There is no point in a distant definition of a small function like this
used only once.

Additional spacing to distinguish better the block.

6 years agovda_h264.c: Change header inclusion order.
Carl Eugen Hoyos [Sun, 16 Sep 2012 14:43:27 +0000 (16:43 +0200)]
vda_h264.c: Change header inclusion order.

Fixes compilation with XCode 3.2.6.
Fixes ticket #1736.

6 years agoMentioning 8bps once in the FFmpeg documentation is sufficient.
Carl Eugen Hoyos [Sun, 16 Sep 2012 14:31:33 +0000 (16:31 +0200)]
Mentioning 8bps once in the FFmpeg documentation is sufficient.

6 years agomov: detect EOF in mov_read_dref()
Michael Niedermayer [Sun, 18 Dec 2011 20:37:54 +0000 (21:37 +0100)]
mov: detect EOF in mov_read_dref()

Avoid a near infinite loop.
Issue discovered by cosminamironesei.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agofile: return proper error on seek failures
Luca Barbato [Fri, 14 Sep 2012 15:01:35 +0000 (17:01 +0200)]
file: return proper error on seek failures

6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 16 Sep 2012 12:48:45 +0000 (14:48 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mpegvideo: drop unnecessary arguments to hpel_motion()
  mpegvideo: drop 'inline' from some functions
  nellymoserdec: drop support for s16 output.
  bmpdec: only initialize palette for pal8.
  build: Properly remove object files while cleaning
  flacdsp: arm optimised lpc filter
  compat/vsnprintf: return number of bytes required on truncation.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomp3enc: merge mp2/mp3_write_trailer
Michael Niedermayer [Sun, 16 Sep 2012 12:37:50 +0000 (14:37 +0200)]
mp3enc: merge mp2/mp3_write_trailer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomp3enc: move mp3_update_xing() down
Michael Niedermayer [Sun, 16 Sep 2012 12:31:58 +0000 (14:31 +0200)]
mp3enc: move mp3_update_xing() down

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '3f7fd59d151a2773f0e2e93e56b6b13ec6e5334b'
Michael Niedermayer [Sun, 16 Sep 2012 12:14:47 +0000 (14:14 +0200)]
Merge commit '3f7fd59d151a2773f0e2e93e56b6b13ec6e5334b'

* commit '3f7fd59d151a2773f0e2e93e56b6b13ec6e5334b':
  avformat: fix typo in avformat_close_input
  mp3enc: write Xing TOC
  mp3enc: support MPEG-2 and MPEG-2.5 in Xing header.
  mp3enc: downgrade some errors in writing Xing frame to warnings
  lavf: flush the output AVIOContext in av_write_trailer().
  lavf: cosmetics, reformat av_write_trailer().
  avio: flush the internal buffer in avio_close()
  Enhance doc on asyncts audiofilter
  cmdutils: avoid setting data pointers to invalid values in alloc_buffer()
  libavcodec: remove av_destruct_packet_nofree()

Conflicts:
libavcodec/avpacket.c
libavformat/mp3enc.c
libavformat/nutenc.c
libavformat/utils.c
libavformat/version.h
tests/ref/lavf/voc
tests/ref/lavf/voc_s16

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agompegvideo: drop unnecessary arguments to hpel_motion()
Mans Rullgard [Sat, 4 Aug 2012 01:51:27 +0000 (02:51 +0100)]
mpegvideo: drop unnecessary arguments to hpel_motion()

These arguments are either constants or copies of MpegEncContext
fields just as easily accessed within the function.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agompegvideo: drop 'inline' from some functions
Mans Rullgard [Sat, 4 Aug 2012 01:22:43 +0000 (02:22 +0100)]
mpegvideo: drop 'inline' from some functions

These functions do not benefit from being inlined.  They are large,
and there are no opportunities for constant propagation.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agonellymoserdec: drop support for s16 output.
Anton Khirnov [Sun, 22 Jul 2012 09:19:01 +0000 (11:19 +0200)]
nellymoserdec: drop support for s16 output.

It internally decodes as float and then converts to s16 by a call to
float_to_int16(). The caller can do this just as well by using lavr.

6 years agobmpdec: only initialize palette for pal8.
Anton Khirnov [Sun, 16 Sep 2012 06:33:09 +0000 (08:33 +0200)]
bmpdec: only initialize palette for pal8.

Gray8 is not considered to be paletted, so this would cause an invalid
write.

Fixes bug 367.

CC: libav-stable@libav.org
6 years agolavc/ass_split: add ff_ prefix to ass_style_get().
Clément Bœsch [Sun, 16 Sep 2012 01:05:01 +0000 (03:05 +0200)]
lavc/ass_split: add ff_ prefix to ass_style_get().

6 years agolavfi/ass: mark ass_libavfilter_log_level_map as static const.
Clément Bœsch [Sun, 16 Sep 2012 00:59:43 +0000 (02:59 +0200)]
lavfi/ass: mark ass_libavfilter_log_level_map as static const.

6 years agolavf/mkv: prefix video stereo arrays with ff_.
Clément Bœsch [Sun, 16 Sep 2012 00:58:40 +0000 (02:58 +0200)]
lavf/mkv: prefix video stereo arrays with ff_.

6 years agolavu/error: make error_entries static const.
Clément Bœsch [Sun, 16 Sep 2012 00:53:32 +0000 (02:53 +0200)]
lavu/error: make error_entries static const.

6 years agoaf_pan: Fix sscanf formats to work with buggy sscanf implementations
Hendrik Leppkes [Fri, 14 Sep 2012 16:45:34 +0000 (12:45 -0400)]
af_pan: Fix sscanf formats to work with buggy sscanf implementations

Some implementations of sscanf do not handle a space before a trailing %n
properly.

As an example, MSVC's does this for the second insatnce in this patch, for
an input of "0x3:c0=c1:c1=c0":
    1) Match the final "c0" or "c1".
    2) Realize it's at the end of the string.
    3) Check for %n.
    4) There is no %n, but a space instead.
    5) Leave 'len' unitilialized.

So, move it out of the sscanf format strings, and call skip_spaces instead.

This bug does not affect skip_spaces since %n is the first and only formatting
string.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agobprint: Remove custom vsnprintf
Derek Buitenhuis [Fri, 7 Sep 2012 13:05:28 +0000 (09:05 -0400)]
bprint: Remove custom vsnprintf

A proper implementation was introduced in
ba537202801d71711f1ef9306a6248dd2d426fa0 for MSVC, and
MinGW already has vsnprintf.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agocompat/vsnprintf: return number of bytes required on truncation.
Ronald S. Bultje [Fri, 14 Sep 2012 20:03:25 +0000 (16:03 -0400)]
compat/vsnprintf: return number of bytes required on truncation.

This conforms to C99, but requires Windows >= XP.

6 years agomsvc: Add a va_copy compatability macro for msvc
Derek Buitenhuis [Fri, 14 Sep 2012 19:08:19 +0000 (15:08 -0400)]
msvc: Add a va_copy compatability macro for msvc

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agomsvc: Disable stripping
Derek Buitenhuis [Sat, 15 Sep 2012 20:04:41 +0000 (16:04 -0400)]
msvc: Disable stripping

MSVC-built binaries should not be stripped.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agobuild: Properly remove object files while cleaning
Mans Rullgard [Sat, 15 Sep 2012 18:33:56 +0000 (18:33 +0000)]
build: Properly remove object files while cleaning

Previously, object files in, for example, compat/ were left
after a clean or distclean was run.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agoflacdsp: arm optimised lpc filter
Mans Rullgard [Thu, 5 Jul 2012 21:47:41 +0000 (22:47 +0100)]
flacdsp: arm optimised lpc filter

6 years agolavf/segment: Use distinct IDs for list type ext & csv
Alexander Strasser [Fri, 14 Sep 2012 21:31:47 +0000 (23:31 +0200)]
lavf/segment: Use distinct IDs for list type ext & csv

Remove a bogus warning when using segment_list_type csv.

The LIST_TYPE_EXT constant is only used internally, so it can
be removed when the feature (segment_list_type ext) gets removed.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
6 years agolavf/segment: Rename variable in print_csv_escaped_str()
Alexander Strasser [Fri, 14 Sep 2012 16:26:50 +0000 (18:26 +0200)]
lavf/segment: Rename variable in print_csv_escaped_str()

Rename a local variable to make the code more self-explanatory.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
6 years agolavf/segment: Simplify CSV field quoting code
Alexander Strasser [Sun, 9 Sep 2012 19:27:13 +0000 (21:27 +0200)]
lavf/segment: Simplify CSV field quoting code

Should also be faster (though I doubt that hardly ever matters
for the usage here).

Also remove the pointer copy. Since we do not need to reset the
pointer to the start of the string, it is not needed anymore.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
6 years agoudp: pick params from AVOptions also
Andrey Utkin [Thu, 13 Sep 2012 11:10:26 +0000 (14:10 +0300)]
udp: pick params from AVOptions also

This updated version does not deviate from previous behavior on default value of 'buffer_size'

I skipped porting 'sources', 'block' options for now as they're parsed seriously. So i added TODO remarks.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agopngdec: av_log() zlib errors
Michael Niedermayer [Sat, 15 Sep 2012 19:30:57 +0000 (21:30 +0200)]
pngdec: av_log() zlib errors

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoRemove mt-work directory
Derek Buitenhuis [Tue, 11 Sep 2012 15:50:23 +0000 (11:50 -0400)]
Remove mt-work directory

It is all dead and rotting code.

Also, move yuvcmp.c to tools. Its license is non-existent, however,
and should be clarified.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agocompat/vsnprintf: return number of bytes required on truncation.
Ronald S. Bultje [Fri, 14 Sep 2012 18:56:46 +0000 (18:56 +0000)]
compat/vsnprintf: return number of bytes required on truncation.

This conforms to C99, but requires Windows >= XP.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agolavc/vp56: Re-indent functions affected by threading refactor
Ben Jackson [Sat, 15 Sep 2012 17:32:44 +0000 (10:32 -0700)]
lavc/vp56: Re-indent functions affected by threading refactor

All whitespace plus a curly brace.

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavc/vp6: Implement "slice" threading for VP6A decode
Ben Jackson [Sat, 15 Sep 2012 17:32:43 +0000 (10:32 -0700)]
lavc/vp6: Implement "slice" threading for VP6A decode

The YUV channels of VP6 are encoded in a highly linear fashion which does
not have any slice-like concept to thread.  The alpha channel of VP6A is
fairly independent of the YUV and comprises 40% of the work.  This patch
uses the THREAD_SLICE capability to split the YUV and A decodes into
separate threads.

Two bugs are fixed by splitting YUV and alpha state:
- qscale_table from VP6A decode was for alpha channel instead of YUV
- alpha channel filtering settings were overwritten by YUV header parse

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavc/vp56: Simplify get/release_buffer code
Ben Jackson [Sat, 15 Sep 2012 17:32:42 +0000 (10:32 -0700)]
lavc/vp56: Simplify get/release_buffer code

Rather than cleverly managing frame pointers with swaps to avoid
re-using "golden" frames, just do brute-force management of the
4 AVFrames.  New strategy is probably no more costly and is easier
to adapt to threaded usage.

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavc/vp56: Move golden_frame into VP56Context
Ben Jackson [Sat, 15 Sep 2012 17:32:41 +0000 (10:32 -0700)]
lavc/vp56: Move golden_frame into VP56Context

Makes golden_frame more like other frame data, paves way for threading
alpha channel decode.

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavc/vp6: Refactor vp6_decode_init into vp6_decode_init/vp6_decode_init_context
Ben Jackson [Sat, 15 Sep 2012 17:32:40 +0000 (10:32 -0700)]
lavc/vp6: Refactor vp6_decode_init into vp6_decode_init/vp6_decode_init_context

Pave the way for per-thread context initialization.

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavc/vp56: Refactor ff_vp56_init into ff_vp56_init/ff_vp56_init_context
Ben Jackson [Sat, 15 Sep 2012 17:32:39 +0000 (10:32 -0700)]
lavc/vp56: Refactor ff_vp56_init into ff_vp56_init/ff_vp56_init_context

Pave the way for per-thread context initialization.

Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavformat: fix typo in avformat_close_input
Luca Barbato [Sat, 15 Sep 2012 18:16:32 +0000 (20:16 +0200)]
avformat: fix typo in avformat_close_input

The condition should not be &&.

6 years agomp3enc: write Xing TOC
Anton Khirnov [Mon, 10 Sep 2012 12:44:32 +0000 (14:44 +0200)]
mp3enc: write Xing TOC

Based on the code by:
Peter Belkner <pbelkner@snafu.de>,
Michael Niedermayer <michaelni@gmx.at>,
Clément Bœsch <clement.boesch@smartjog.com>,
Reimar Döffinger <Reimar.Doeffinger@gmx.de>, and
Tobias Rapp <t.rapp@noa-audio.com>
Alex Converse <alex.converse@gmail.com>

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agomp3enc: support MPEG-2 and MPEG-2.5 in Xing header.
Clément Bœsch [Wed, 9 May 2012 20:39:40 +0000 (22:39 +0200)]
mp3enc: support MPEG-2 and MPEG-2.5 in Xing header.

6 years agomp3enc: downgrade some errors in writing Xing frame to warnings
Reimar Döffinger [Sun, 9 Sep 2012 18:39:40 +0000 (20:39 +0200)]
mp3enc: downgrade some errors in writing Xing frame to warnings

Also clarify the meaning of the log message.

6 years agolavf: flush the output AVIOContext in av_write_trailer().
Anton Khirnov [Sun, 9 Sep 2012 19:35:23 +0000 (21:35 +0200)]
lavf: flush the output AVIOContext in av_write_trailer().

This is consistent with stdio and is what we want to do in all cases.

Fixes a bug in the voc muxer which didn't flush in write_trailer()
previously. This is the cause of the change in the test results.

6 years agolavf: cosmetics, reformat av_write_trailer().
Anton Khirnov [Sun, 9 Sep 2012 18:47:38 +0000 (20:47 +0200)]
lavf: cosmetics, reformat av_write_trailer().

6 years agoavio: flush the internal buffer in avio_close()
Stefano Sabatini [Wed, 15 Aug 2012 23:25:05 +0000 (01:25 +0200)]
avio: flush the internal buffer in avio_close()

This is consistent with stdio, and thus what people would naturally
expect.

6 years agox86/v210: fix xmm clobbers
Michael Niedermayer [Sat, 15 Sep 2012 14:22:59 +0000 (16:22 +0200)]
x86/v210: fix xmm clobbers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoDocument tcp proto 'timeout' parameter behavior
Andrey Utkin [Thu, 13 Sep 2012 00:43:29 +0000 (03:43 +0300)]
Document tcp proto 'timeout' parameter behavior

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: use PTS from the AVSubtitle structure for sub2video.
Nicolas George [Sun, 9 Sep 2012 14:37:45 +0000 (16:37 +0200)]
ffmpeg: use PTS from the AVSubtitle structure for sub2video.

6 years agoffplay: use PTS from the AVSubtitle structure.
Nicolas George [Sun, 9 Sep 2012 14:28:51 +0000 (16:28 +0200)]
ffplay: use PTS from the AVSubtitle structure.