ffmpeg.git
7 years agoAdd AAC FATE encode tests.
Reimar Döffinger [Fri, 6 Apr 2012 19:39:44 +0000 (21:39 +0200)]
Add AAC FATE encode tests.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoRemove AAC and nellymoser tests that do not work.
Reimar Döffinger [Sat, 7 Apr 2012 11:22:51 +0000 (13:22 +0200)]
Remove AAC and nellymoser tests that do not work.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoAdd tests for audio encoders: aac, dca, ra144 and nellymoser.
Reimar Döffinger [Fri, 6 Apr 2012 13:59:24 +0000 (15:59 +0200)]
Add tests for audio encoders: aac, dca, ra144 and nellymoser.

The PSNR values are of varying usefulness, though at least
the DTS and AAC ones are useful with the right shift value.
Note: due to usage of floats some of these may fail on other
architectures.
In that case they should be converted into a CMD = stddev
FATE test, but it seems useful to try this way first.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoaacenc: Fix issues with huge values of bit_rate.
Reimar Döffinger [Fri, 6 Apr 2012 13:25:05 +0000 (15:25 +0200)]
aacenc: Fix issues with huge values of bit_rate.

Do not pointlessly call ff_alloc_packet2 multiple times,
and fix an infinite loop by clamping the maximum
number of bits to target in the algorithm that does
not use lambda.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoproresenc_kostya: Mention likely ancestry in the license header.
Michael Niedermayer [Sat, 7 Apr 2012 09:02:27 +0000 (11:02 +0200)]
proresenc_kostya: Mention likely ancestry in the license header.

As the encoder contained the same bug and has similar structure
to anatoliys encoder, it is possibly based on it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoproresenc_kostya: fix encoded mantissa.
Michael Niedermayer [Sat, 7 Apr 2012 09:01:52 +0000 (11:01 +0200)]
proresenc_kostya: fix encoded mantissa.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoproresenc_anatoly: fix encoded mantissa.
Michael Niedermayer [Sat, 7 Apr 2012 09:00:00 +0000 (11:00 +0200)]
proresenc_anatoly: fix encoded mantissa.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoadpcmenc: fix encoded s_0 value.
Michael Niedermayer [Sat, 7 Apr 2012 08:12:58 +0000 (10:12 +0200)]
adpcmenc: fix encoded s_0 value.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agobuild system: support setting avassert() assert_level
Michael Niedermayer [Sat, 7 Apr 2012 07:20:54 +0000 (09:20 +0200)]
build system: support setting avassert() assert_level

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoput_bits: switch assert to av_assert2()
Michael Niedermayer [Sat, 7 Apr 2012 05:58:16 +0000 (07:58 +0200)]
put_bits: switch assert to av_assert2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegpsenc: fix user specified mux rate
Michael Niedermayer [Sat, 7 Apr 2012 05:56:11 +0000 (07:56 +0200)]
mpegpsenc: fix user specified mux rate

Fixes Ticket1175

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agofate: try to fix >8bit dpx reg test
Michael Niedermayer [Sat, 7 Apr 2012 04:53:39 +0000 (06:53 +0200)]
fate: try to fix >8bit dpx reg test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 6 Apr 2012 20:52:01 +0000 (22:52 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  cosmetics: Align muxer/demuxer declarations
  mpeg12: Do not change frame_pred_frame_dct flag and demote error into a warning
  avcodec: remove avcodec_guess_channel_layout()
  avutil: Add av_get_default_channel_layout()

Conflicts:
doc/APIchanges
libavcodec/mpeg12.c
libavformat/cdg.c
libavformat/matroskaenc.c
libavformat/mpegts.c
libavformat/nuv.c
libavformat/wav.c
libavutil/audioconvert.c
libavutil/audioconvert.h
libavutil/avutil.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoexr: fix mixed declaration and statements.
Michael Niedermayer [Fri, 6 Apr 2012 09:17:23 +0000 (11:17 +0200)]
exr: fix mixed declaration and statements.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agotiny_psnr: allow searching for optimal shift value.
Reimar Döffinger [Fri, 6 Apr 2012 16:42:07 +0000 (18:42 +0200)]
tiny_psnr: allow searching for optimal shift value.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoAdd regression test for mov rtp hinting.
Reimar Döffinger [Fri, 6 Apr 2012 16:00:17 +0000 (18:00 +0200)]
Add regression test for mov rtp hinting.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agodpxenc: also test 10 and 16 bit formats.
Reimar Döffinger [Fri, 6 Apr 2012 15:56:45 +0000 (17:56 +0200)]
dpxenc: also test 10 and 16 bit formats.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agonellymoserenc: fix crash due to memsetting the wrong area.
Reimar Döffinger [Fri, 6 Apr 2012 13:26:35 +0000 (15:26 +0200)]
nellymoserenc: fix crash due to memsetting the wrong area.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agocosmetics: Align muxer/demuxer declarations
Martin Storsjö [Fri, 6 Apr 2012 14:50:48 +0000 (17:50 +0300)]
cosmetics: Align muxer/demuxer declarations

Also add missing trailing commas, break long codec_tag lines and
add spaces in codec_tag declarations.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agompeg12: Do not change frame_pred_frame_dct flag and demote error into a warning
Anne Aaron [Wed, 4 Apr 2012 18:36:00 +0000 (11:36 -0700)]
mpeg12: Do not change frame_pred_frame_dct flag and demote error into a warning

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agodoc: image2: update docs for glob input patterns
Alexander Strasser [Thu, 5 Apr 2012 22:21:43 +0000 (00:21 +0200)]
doc: image2: update docs for glob input patterns

* adapt examples to new syntax
* mention that glob chars need to be enabled by a preceding % char
* note that globbing will be performed if both a printf and globbing
  pattern would be possible judging from the input pattern

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
7 years agoffmpeg: remove unused MetadataMap.
Clément Bœsch [Fri, 6 Apr 2012 12:23:42 +0000 (14:23 +0200)]
ffmpeg: remove unused MetadataMap.

This struct was forgotten after
e5df74dc56494068042f094d43a5d774c257ae69.

7 years agoffmpeg: remove unused meta_data_maps.
Clément Bœsch [Thu, 22 Mar 2012 10:13:15 +0000 (11:13 +0100)]
ffmpeg: remove unused meta_data_maps.

This is unused since a7b5e841ffe4b0f8423288965b8d069bd2a7a792.

7 years agos302m: Add Channle Layout for 6 channels
Thierry Foucu [Fri, 6 Apr 2012 04:43:18 +0000 (21:43 -0700)]
s302m: Add Channle Layout for 6 channels

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovsrc_buffer: remove overwrite support.
Michael Niedermayer [Tue, 3 Apr 2012 16:58:03 +0000 (18:58 +0200)]
vsrc_buffer: remove overwrite support.

the overwrite flag became unused when merging support for buffering
multiple frames.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoREADME: be a tiny bit more verbose
Michael Niedermayer [Fri, 6 Apr 2012 08:23:26 +0000 (10:23 +0200)]
README: be a tiny bit more verbose

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoexr: various cleanup and security related fixes
Michael Niedermayer [Fri, 6 Apr 2012 06:17:10 +0000 (08:17 +0200)]
exr: various cleanup and security related fixes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoexr: fix av_logs()
Michael Niedermayer [Fri, 6 Apr 2012 06:15:56 +0000 (08:15 +0200)]
exr: fix av_logs()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc: add a OpenEXR decoder
Jimmy Christensen [Fri, 6 Apr 2012 04:02:25 +0000 (06:02 +0200)]
lavc: add a OpenEXR decoder

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agofix fate tests after 76c79aa28fc8cf0bfe52915317a3cfc72383d0ef
Michael Niedermayer [Fri, 6 Apr 2012 06:28:56 +0000 (08:28 +0200)]
fix fate tests after 76c79aa28fc8cf0bfe52915317a3cfc72383d0ef

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomovdec: handle 0x7fff langcode as macintosh per the specs
Baptiste Coudurier [Wed, 21 Mar 2012 21:18:16 +0000 (14:18 -0700)]
movdec: handle 0x7fff langcode as macintosh per the specs

The correct point that seperates ISO and MAC language codes is 0x400
according to the current QT spec. Old QT specs did not list where this
seperation is but apparently only defined the meaning of the first 137.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoSupport yuva444p rawvideo in nut.
Carl Eugen Hoyos [Thu, 5 Apr 2012 22:53:09 +0000 (00:53 +0200)]
Support yuva444p rawvideo in nut.

Fixes ticket #1058.

7 years agoavcodec: remove avcodec_guess_channel_layout()
Justin Ruggles [Thu, 22 Mar 2012 00:39:02 +0000 (20:39 -0400)]
avcodec: remove avcodec_guess_channel_layout()

It is not public because the header is not installed, and its functionality
has been replaced by av_get_default_channel_layout().

7 years agoavutil: Add av_get_default_channel_layout()
Justin Ruggles [Thu, 22 Mar 2012 00:36:51 +0000 (20:36 -0400)]
avutil: Add av_get_default_channel_layout()

Also, use the new function in the AC-3 encoder.

7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 5 Apr 2012 20:26:50 +0000 (22:26 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  h264: Factorize declaration of mb_sizes array.
  vsrc_buffer: when no frame is available, return an error instead of segfaulting.
  configure: add dl to frei0r extralibs.
  dsputil x86: use SSE float instruction instead of SSE2 integer equivalent
  dsputil x86: remove deprecated parameter from scalarproduct_int16 prototype
  vp8dsp x86: perform rounding shift with a single instruction
  fate: add BMP tests.
  swscale: handle complete dimensions for monoblack/white.
  aacenc: Mark deinterleave_input_samples argument as const.
  vf_unsharp: Mark readonly variable as const.
  h264: fix 4:2:2 PCM-macroblocks decoding

Conflicts:
configure
libavcodec/h264.h
libavcodec/x86/dsputil_mmx.c
libavfilter/vf_unsharp.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocmdutils: fix -fdebug without -v xy
Michael Niedermayer [Thu, 5 Apr 2012 19:50:50 +0000 (21:50 +0200)]
cmdutils: fix -fdebug without -v xy

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomov: do not print string len in handler_name.
Clément Bœsch [Thu, 5 Apr 2012 13:14:00 +0000 (15:14 +0200)]
mov: do not print string len in handler_name.

The handler name is stored as a pascal string in the QT specs (first
byte is the length of the string), thus leading to an invalid metadata
string export.

Also add a second length check based on the first character to avoid
overwriting an already specified handler_name (it happens with Youtube
videos for instance, the handler_name get masked), or specifying an
empty string metadata.

7 years agoh264: Factorize declaration of mb_sizes array.
Diego Biurrun [Wed, 4 Apr 2012 12:53:25 +0000 (14:53 +0200)]
h264: Factorize declaration of mb_sizes array.

7 years agolavf: Fix the last PTS to be generated using -fflags +genpts
Thierry Foucu [Wed, 4 Apr 2012 19:01:04 +0000 (12:01 -0700)]
lavf: Fix the last PTS to be generated using -fflags +genpts

To reproduce the problem, using ffprobe:

./ffprobe -show_packets -print_format compact -fflags +genpts -i
fate_samples/mxf/C0023S01.mxf

You will notice that the last video frame does not have it's PTS being
set, even with using genpts.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovsrc_buffer: when no frame is available, return an error instead of segfaulting.
Anton Khirnov [Sun, 1 Apr 2012 13:18:00 +0000 (15:18 +0200)]
vsrc_buffer: when no frame is available, return an error instead of segfaulting.

7 years agoconfigure: add dl to frei0r extralibs.
Anton Khirnov [Sun, 1 Apr 2012 16:56:26 +0000 (18:56 +0200)]
configure: add dl to frei0r extralibs.

7 years agovf_idet: clean detected frame types based on a 4 frame history.
Michael Niedermayer [Thu, 5 Apr 2012 06:26:09 +0000 (08:26 +0200)]
vf_idet: clean detected frame types based on a 4 frame history.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: change individual per frame statistics to debug log level.
Michael Niedermayer [Thu, 5 Apr 2012 05:04:10 +0000 (07:04 +0200)]
vf_idet: change individual per frame statistics to debug log level.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: print accumulated statistics for single and multi frame detection
Michael Niedermayer [Thu, 5 Apr 2012 05:03:39 +0000 (07:03 +0200)]
vf_idet: print accumulated statistics for single and multi frame detection

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/colormatrix: add forgotten tests.
Clément Bœsch [Thu, 5 Apr 2012 05:32:30 +0000 (07:32 +0200)]
lavfi/colormatrix: add forgotten tests.

7 years agovf_idet: Print both the single frame based detection and the multi frame one.
Michael Niedermayer [Thu, 5 Apr 2012 04:38:48 +0000 (06:38 +0200)]
vf_idet: Print both the single frame based detection and the multi frame one.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: Add last_type variable to make code more readable.
Michael Niedermayer [Thu, 5 Apr 2012 04:33:40 +0000 (06:33 +0200)]
vf_idet: Add last_type variable to make code more readable.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: use enum to represent the type.
Michael Niedermayer [Thu, 5 Apr 2012 04:23:53 +0000 (06:23 +0200)]
vf_idet: use enum to represent the type.

This will simplify future code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfenc: properly write index information
Ramiro Polla [Wed, 4 Apr 2012 05:52:27 +0000 (02:52 -0300)]
asfenc: properly write index information

The index must take into account the pre-roll time and must seek backwards,
not forwards.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfenc: start at object 1 instead of 0
Ramiro Polla [Wed, 4 Apr 2012 05:52:03 +0000 (02:52 -0300)]
asfenc: start at object 1 instead of 0

This is how it is done in the official muxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfenc: remove useless casts
Ramiro Polla [Wed, 4 Apr 2012 05:50:40 +0000 (02:50 -0300)]
asfenc: remove useless casts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfenc: reduce code duplication with new variable
Ramiro Polla [Wed, 4 Apr 2012 05:50:05 +0000 (02:50 -0300)]
asfenc: reduce code duplication with new variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfenc: rename some variables
Ramiro Polla [Wed, 4 Apr 2012 05:49:47 +0000 (02:49 -0300)]
asfenc: rename some variables

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfenc: realloc index_ptr fewer times
Ramiro Polla [Wed, 4 Apr 2012 05:48:27 +0000 (02:48 -0300)]
asfenc: realloc index_ptr fewer times

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavfilter: add colormatrix filter
multiple authors [Sat, 10 Mar 2012 03:04:19 +0000 (04:04 +0100)]
libavfilter: add colormatrix filter

Ported by: Baptiste Coudurier
cleanup+fate by ubitux
For detailed authorship of the original code please see avisynth

7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 4 Apr 2012 19:17:52 +0000 (21:17 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  w32threads: Make pthread_cond_wait follow POSIX
  cosmetics: Consistently place static, inline and av_cold attributes/keywords.
  sbrdsp: Use standard multiple inclusion guards.
  pcm: K&R formatting cosmetics
  rawdec: Support fourccs YV16 and YV24
  rtmp: implement bandwidth notification
  rtmp: update supported audio codecs value

Conflicts:
libavcodec/pcm.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoAdd forgotten avio-direct reference file.
Reimar Döffinger [Wed, 4 Apr 2012 19:14:04 +0000 (21:14 +0200)]
Add forgotten avio-direct reference file.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoAdd AVIO_FLAG_DIRECT.
Reimar Döffinger [Sun, 25 Mar 2012 09:58:55 +0000 (11:58 +0200)]
Add AVIO_FLAG_DIRECT.

Allows avoiding the buffer when using avio read, write and seek functions.
When using the ffmpeg executable -avioflags direct can be used to enable
this mode for input files, but has no effect on output files.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agodsputil x86: use SSE float instruction instead of SSE2 integer equivalent
Christophe GISQUET [Wed, 21 Mar 2012 19:46:29 +0000 (20:46 +0100)]
dsputil x86: use SSE float instruction instead of SSE2 integer equivalent

All the more required since the users are pure SSE functions.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agodsputil x86: remove deprecated parameter from scalarproduct_int16 prototype
Christophe GISQUET [Mon, 19 Mar 2012 15:34:39 +0000 (16:34 +0100)]
dsputil x86: remove deprecated parameter from scalarproduct_int16 prototype

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agovp8dsp x86: perform rounding shift with a single instruction
Christophe GISQUET [Mon, 26 Mar 2012 00:29:09 +0000 (02:29 +0200)]
vp8dsp x86: perform rounding shift with a single instruction

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agofate: add BMP tests.
Ronald S. Bultje [Wed, 4 Apr 2012 18:16:23 +0000 (11:16 -0700)]
fate: add BMP tests.

7 years agoswscale: handle complete dimensions for monoblack/white.
Ronald S. Bultje [Wed, 4 Apr 2012 17:50:29 +0000 (10:50 -0700)]
swscale: handle complete dimensions for monoblack/white.

Fixes bug 269.

7 years agoaacenc: Mark deinterleave_input_samples argument as const.
Diego Biurrun [Wed, 4 Apr 2012 08:06:58 +0000 (10:06 +0200)]
aacenc: Mark deinterleave_input_samples argument as const.

This fixes the warning:
libavcodec/aacenc.c:524: warning: passing argument 2 of ‘deinterleave_input_samples’ discards qualifiers from pointer target type

7 years agovf_unsharp: Mark readonly variable as const.
Diego Biurrun [Wed, 4 Apr 2012 08:08:37 +0000 (10:08 +0200)]
vf_unsharp: Mark readonly variable as const.

This fixes the following warning:
libavfilter/vf_unsharp.c:106: warning: initialization discards qualifiers from pointer target type

7 years agoh264: fix 4:2:2 PCM-macroblocks decoding
Anton Mitrofanov [Mon, 2 Apr 2012 16:25:19 +0000 (09:25 -0700)]
h264: fix 4:2:2 PCM-macroblocks decoding

Fixes bug 239.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agoMerge remote-tracking branch 'dwbuiten/master'
Michael Niedermayer [Wed, 4 Apr 2012 17:05:17 +0000 (19:05 +0200)]
Merge remote-tracking branch 'dwbuiten/master'

* dwbuiten/master:
  w32threads: Make pthread_cond_wait follow POSIX

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agow32threads: Make pthread_cond_wait follow POSIX
Derek Buitenhuis [Tue, 3 Apr 2012 21:36:49 +0000 (17:36 -0400)]
w32threads: Make pthread_cond_wait follow POSIX

pthread_cond_wait is supposed to return an integer,
and indeed does sometimes. Fix its function declaration
to match its behavior and POSIX.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agow32threads: Make pthread_cond_wait follow POSIX
Derek Buitenhuis [Tue, 3 Apr 2012 21:36:49 +0000 (17:36 -0400)]
w32threads: Make pthread_cond_wait follow POSIX

pthread_cond_wait is supposed to return an integer,
and indeed does sometimes. Fix its function declaration
to match its behavior and POSIX.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agolavf: add mp1/2 to determinable_frame_size()
Michael Niedermayer [Wed, 4 Apr 2012 16:21:37 +0000 (18:21 +0200)]
lavf: add mp1/2 to determinable_frame_size()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoallcodecs: move libaacplus down.
Michael Niedermayer [Wed, 4 Apr 2012 15:44:21 +0000 (17:44 +0200)]
allcodecs: move libaacplus down.

We choose the first encoder by default and libaccplus has a
quite limited set of supported bitrates/sample rates.
Thus leading to failure by default in many cases when it is
enabled at compile time.
Moving it down means that the other aac encoders are favored
by default which avoids this issue.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomxfdec: Fix regression on files from Pinnacle Thunder
Tomas Härdin [Wed, 4 Apr 2012 12:24:49 +0000 (14:24 +0200)]
mxfdec: Fix regression on files from Pinnacle Thunder

The reason for this is that such files have IndexTableSegments which when parsed
cover EditUnit ranges like this:

 [0,1)
 [249,250)
 [249,377)
 [0,249)

where each interval is [IndexStartPosition,IndexStartPosition+IndexDuration).
This would be reduced to a sparse index like:

 [0,1), [249,250)

instead of the full range:

 [0,249), [249,377)

See TimeCode_HD.mxf, UMID =
060a2b340101010101010410130000000004001aa0e59175025b2a5600da4101.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: print accumulated statistics at end
Michael Niedermayer [Wed, 4 Apr 2012 14:31:31 +0000 (16:31 +0200)]
vf_idet: print accumulated statistics at end

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: set interlaced flags
Michael Niedermayer [Wed, 4 Apr 2012 14:27:24 +0000 (16:27 +0200)]
vf_idet: set interlaced flags

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: fix indention
Michael Niedermayer [Wed, 4 Apr 2012 14:19:56 +0000 (16:19 +0200)]
vf_idet: fix indention

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: move statistic variables into the context
Michael Niedermayer [Wed, 4 Apr 2012 14:19:36 +0000 (16:19 +0200)]
vf_idet: move statistic variables into the context

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: remove unused function
Michael Niedermayer [Wed, 4 Apr 2012 14:12:12 +0000 (16:12 +0200)]
vf_idet: remove unused function

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_idet: pass context to av_log()
Michael Niedermayer [Wed, 4 Apr 2012 14:10:47 +0000 (16:10 +0200)]
vf_idet: pass context to av_log()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_ass: use drawutils.
Nicolas George [Wed, 28 Mar 2012 13:51:13 +0000 (15:51 +0200)]
vf_ass: use drawutils.

7 years agovf_drawtext: use drawutils.
Nicolas George [Wed, 28 Mar 2012 13:27:07 +0000 (15:27 +0200)]
vf_drawtext: use drawutils.

7 years agodrawutils: implement uniform and mask blending.
Nicolas George [Wed, 28 Mar 2012 13:26:45 +0000 (15:26 +0200)]
drawutils: implement uniform and mask blending.

7 years agolibavfilter: Add interlace detect filter.
Michael Niedermayer [Tue, 3 Apr 2012 13:56:04 +0000 (15:56 +0200)]
libavfilter: Add interlace detect filter.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agov4l2: allow to convert monotonic timestamps.
Nicolas George [Sat, 3 Mar 2012 14:56:11 +0000 (15:56 +0100)]
v4l2: allow to convert monotonic timestamps.

7 years agocosmetics: Consistently place static, inline and av_cold attributes/keywords.
Diego Biurrun [Fri, 30 Mar 2012 21:34:22 +0000 (23:34 +0200)]
cosmetics: Consistently place static, inline and av_cold attributes/keywords.

7 years agosbrdsp: Use standard multiple inclusion guards.
Diego Biurrun [Sat, 31 Mar 2012 11:41:16 +0000 (13:41 +0200)]
sbrdsp: Use standard multiple inclusion guards.

7 years agotimefilter: allow to evaluate at other times.
Nicolas George [Sun, 4 Mar 2012 11:17:02 +0000 (12:17 +0100)]
timefilter: allow to evaluate at other times.

7 years agopcm: K&R formatting cosmetics
Aneesh Dogra [Fri, 30 Mar 2012 15:33:02 +0000 (21:03 +0530)]
pcm: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoffmpeg: fix a few typo.
Clément Bœsch [Wed, 4 Apr 2012 09:50:16 +0000 (11:50 +0200)]
ffmpeg: fix a few typo.

7 years agompeg4: dont reset picture_num for xvid
Michael Niedermayer [Wed, 4 Apr 2012 02:19:43 +0000 (04:19 +0200)]
mpeg4: dont reset picture_num for xvid

Fixes Ticket1162

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: fix seeking in low delay streams without IDR
Michael Niedermayer [Wed, 4 Apr 2012 01:43:23 +0000 (03:43 +0200)]
h264: fix seeking in low delay streams without IDR

Fixes Ticket1165

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 3 Apr 2012 23:14:45 +0000 (01:14 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Unscaled Planar RGB -> RGB support in swscale.

Conflicts:
libswscale/swscale_unscaled.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: print some more things in TS debug statements
Michael Niedermayer [Tue, 3 Apr 2012 21:35:39 +0000 (23:35 +0200)]
lavf: print some more things in TS debug statements

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: increase RELATIVE_TS_BASE
Michael Niedermayer [Tue, 3 Apr 2012 21:34:53 +0000 (23:34 +0200)]
lavf: increase RELATIVE_TS_BASE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agorawdec: Support fourccs YV16 and YV24
Piotr Bandurski [Wed, 28 Dec 2011 04:50:27 +0000 (04:50 +0000)]
rawdec: Support fourccs YV16 and YV24

7 years agortmp: implement bandwidth notification
Raffaele Sena [Wed, 7 Mar 2012 18:21:16 +0000 (10:21 -0800)]
rtmp: implement bandwidth notification

Improve compatibility with some servers.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agortmp: update supported audio codecs value
Samuel Pitoiset [Mon, 2 Apr 2012 20:50:38 +0000 (22:50 +0200)]
rtmp: update supported audio codecs value

The audio codecs property is composed by all values except
SUPPORT_SND_INTEL (0x0008) and SUPPORT_SND_UNUSED (0x0010) which are
unused.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoswfdec: support compressed swf.
Clément Bœsch [Mon, 2 Apr 2012 23:33:03 +0000 (01:33 +0200)]
swfdec: support compressed swf.

7 years agoUnscaled Planar RGB -> RGB support in swscale.
Hans-Kristian Arntzen [Sun, 6 Nov 2011 09:43:47 +0000 (10:43 +0100)]
Unscaled Planar RGB -> RGB support in swscale.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agovf_lut: avoid rgb component indexing in the inner loop
Michael Niedermayer [Tue, 3 Apr 2012 16:30:07 +0000 (18:30 +0200)]
vf_lut: avoid rgb component indexing in the inner loop

15k->10k cpu cycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_lut: optimize rgb codepath
Michael Niedermayer [Tue, 3 Apr 2012 16:13:33 +0000 (18:13 +0200)]
vf_lut: optimize rgb codepath

19k -> 15k cpu cycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>