ffmpeg.git
7 years agoMerge commit 'c58f4069e1d5b5804c669b691510e1b8fabb67fc'
Michael Niedermayer [Wed, 11 Sep 2013 10:31:43 +0000 (12:31 +0200)]
Merge commit 'c58f4069e1d5b5804c669b691510e1b8fabb67fc'

* commit 'c58f4069e1d5b5804c669b691510e1b8fabb67fc':
  fate.sh: Run git-clone quietly

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavformat/utils: functions that add entries should not destroy the whole list on failure
Michael Niedermayer [Wed, 11 Sep 2013 10:13:44 +0000 (12:13 +0200)]
avformat/utils: functions that add entries should not destroy the whole list on failure

The caller does not expect this, and in case of adding new streams would then
not even be able to deallocate them anymore.

This reverts a hunk from "avformat: Use av_reallocp_array() where suitable"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavformat/mxfdec: functions that add entries should not destroy the whole list on...
Michael Niedermayer [Wed, 11 Sep 2013 10:13:44 +0000 (12:13 +0200)]
avformat/mxfdec: functions that add entries should not destroy the whole list on failure

The caller does not expect this and there are variables left that index to otherwise
deallocated data.

This reverts a hunk from "avformat: Use av_reallocp_array() where suitable"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavformat/matroskaenc: functions that add entries should not destroy the whole list...
Michael Niedermayer [Wed, 11 Sep 2013 10:13:44 +0000 (12:13 +0200)]
avformat/matroskaenc: functions that add entries should not destroy the whole list on failure

This reverts a hunk from "avformat: Use av_reallocp_array() where suitable"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavformat/matroskadec: ebml_parse_elem() should not deallocate priorly existing lists...
Michael Niedermayer [Wed, 11 Sep 2013 10:13:44 +0000 (12:13 +0200)]
avformat/matroskadec: ebml_parse_elem() should not deallocate priorly existing lists on failure

This reverts a hunk from "avformat: Use av_reallocp_array() where suitable"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'f369b9356c4606cd4d713d60f7db5de119d901fa'
Michael Niedermayer [Wed, 11 Sep 2013 08:54:41 +0000 (10:54 +0200)]
Merge commit 'f369b9356c4606cd4d713d60f7db5de119d901fa'

* commit 'f369b9356c4606cd4d713d60f7db5de119d901fa':
  avformat: Use av_reallocp_array() where suitable

Conflicts:
libavformat/asfenc.c
libavformat/gxfenc.c
libavformat/mov.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/mjpegdec: Support >8bpc color mjpeg
Michael Niedermayer [Wed, 11 Sep 2013 00:29:13 +0000 (02:29 +0200)]
avcodec/mjpegdec: Support >8bpc color mjpeg

Fixes Ticket2939

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/utils: add 16bit planar YUV formats to avcodec_align_dimensions2()
Michael Niedermayer [Wed, 11 Sep 2013 00:44:34 +0000 (02:44 +0200)]
avcodec/utils: add 16bit planar YUV formats to avcodec_align_dimensions2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavcodec: Adding support for End Trimming in Opus encoder
Vignesh Venkatasubramanian [Fri, 30 Aug 2013 18:26:53 +0000 (11:26 -0700)]
lavcodec: Adding support for End Trimming in Opus encoder

Adds the end trimming value (duration to be trimmed from the end
of the file due to padding) to the packet's side data. This is
then made use by the muxer to put the value in the container.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoopus/matroska: Adding support for End Trimming in demuxer/decoder
Vignesh Venkatasubramanian [Tue, 10 Sep 2013 18:12:21 +0000 (11:12 -0700)]
opus/matroska: Adding support for End Trimming in demuxer/decoder

Implementing support for end trimming Opus in Matroska by making
use of the DiscardPadding value from the container and discarding
the samples accordingly.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc/utils: Add support for discarding samples from the end
Vignesh Venkatasubramanian [Tue, 10 Sep 2013 19:07:43 +0000 (12:07 -0700)]
lavc/utils: Add support for discarding samples from the end

Adding support for discarding samples from the end based on the value in
AV_PKT_DATA_SKIP_SAMPLES side data's bytes 5-8.

Signed-off By: Vignesh Venkatasubramanian <vigneshv@google.com>

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter/vf_psnr: >8 bit planar support
Paul B Mahol [Sun, 8 Sep 2013 11:37:07 +0000 (11:37 +0000)]
avfilter/vf_psnr: >8 bit planar support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agodoc: Rename avtools-common-opts to fftools-common opts
Timothy Gu [Sun, 8 Sep 2013 22:36:55 +0000 (15:36 -0700)]
doc: Rename avtools-common-opts to fftools-common opts

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/vp56: use av_reallocp_array() and check if allocation failed
Paul B Mahol [Mon, 9 Sep 2013 14:48:37 +0000 (14:48 +0000)]
avcodec/vp56: use av_reallocp_array() and check if allocation failed

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoffmpeg: check for unsupported "queing of command on first filter supporting the speci...
Michael Niedermayer [Tue, 10 Sep 2013 12:13:44 +0000 (14:13 +0200)]
ffmpeg: check for unsupported "queing of command on first filter supporting the specific commend"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: improve built in docs for passing commands
Michael Niedermayer [Tue, 10 Sep 2013 12:13:18 +0000 (14:13 +0200)]
ffmpeg: improve built in docs for passing commands

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: print command replies starting on column 0
Michael Niedermayer [Tue, 10 Sep 2013 11:57:29 +0000 (13:57 +0200)]
ffmpeg: print command replies starting on column 0

This fixes formating issues with multi-line replies

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter/avfilter: fix null pointer dereference with queued ping filters
Michael Niedermayer [Tue, 10 Sep 2013 11:39:57 +0000 (13:39 +0200)]
avfilter/avfilter: fix null pointer dereference with queued ping filters

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMake avcodec_find_best_pix_fmt_of_list const-correct
Michael Bradshaw [Tue, 10 Sep 2013 04:32:03 +0000 (22:32 -0600)]
Make avcodec_find_best_pix_fmt_of_list const-correct

Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavformat/riff: add 0x594a TwoCC
Piotr Bandurski [Tue, 10 Sep 2013 00:21:19 +0000 (02:21 +0200)]
avformat/riff: add 0x594a TwoCC

sample:

http://samples.mplayerhq.hu/game-formats/wc4-xan/crusader-no-regret.avi

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agofate.sh: Run git-clone quietly
Diego Biurrun [Tue, 10 Sep 2013 06:26:27 +0000 (08:26 +0200)]
fate.sh: Run git-clone quietly

7 years agoavformat: Use av_reallocp_array() where suitable
Alexandra Khirnova [Tue, 10 Sep 2013 09:57:35 +0000 (11:57 +0200)]
avformat: Use av_reallocp_array() where suitable

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 10 Sep 2013 08:20:11 +0000 (10:20 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: Simplify setting the fragmentation flag

Conflicts:
libavformat/movenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '8b524ab0c43c1767919530abb79d3656113cdc47'
Michael Niedermayer [Tue, 10 Sep 2013 08:08:38 +0000 (10:08 +0200)]
Merge commit '8b524ab0c43c1767919530abb79d3656113cdc47'

* commit '8b524ab0c43c1767919530abb79d3656113cdc47':
  movenc: Add a warning message if conflicting options have been specified

Conflicts:
libavformat/movenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'a6a4596e12192375e1d9dffeae24d6d4c41b25c1'
Michael Niedermayer [Tue, 10 Sep 2013 07:52:51 +0000 (09:52 +0200)]
Merge commit 'a6a4596e12192375e1d9dffeae24d6d4c41b25c1'

* commit 'a6a4596e12192375e1d9dffeae24d6d4c41b25c1':
  tcp: Explicitly convert a pointer to a boolean integer

Conflicts:
libavformat/tcp.c

See: 22fbc7f8becdee1fd6ab7cac93ae23d6022e9a56
Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Tue, 10 Sep 2013 00:05:04 +0000 (02:05 +0200)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Use 0x88 as stream id when muxing DTS in program streams.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoUse 0x88 as stream id when muxing DTS in program streams.
Carl Eugen Hoyos [Mon, 9 Sep 2013 23:48:59 +0000 (01:48 +0200)]
Use 0x88 as stream id when muxing DTS in program streams.

This is what other open source software uses and what
some hardware players expect.
Tested by trac user iuqbgq9h-1 at yahoo

7 years agolavf/matroska: Adding support for Opus CodecDelay
Vignesh Venkatasubramanian [Fri, 30 Aug 2013 17:52:36 +0000 (10:52 -0700)]
lavf/matroska: Adding support for Opus CodecDelay

In order to represent the codec delay accurately in Matroska, a
new element CodecDelay has been introduced. It contains the
overall delay added by the codec in nanoseconds. This patch adds
support for muxing CodecDelay value in the container.
Matroska spec for CodecDelay element can be found here:
http://matroska.org/technical/specs/index.html#CodecDelay

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoopus/matroska: Adding support for DiscardPadding in muxer
Vignesh Venkatasubramanian [Fri, 30 Aug 2013 18:26:37 +0000 (11:26 -0700)]
opus/matroska: Adding support for DiscardPadding in muxer

Support for end trimming Opus in Matroska is implemented by using
the DiscardPadding container element in the Block data. The last
chunk is stored as a Block instead of SimpleBlock and the
trimming information is stored and used to discard samples that
were padded by the Opus codec. This patch adds support for muxing
DiscardPadding element into the container with appropriate value.
Matroska spec for the DiscardPadding element can be found here:
http://matroska.org/technical/specs/index.html#DiscardPadding

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomovenc: Simplify setting the fragmentation flag
Martin Storsjö [Mon, 9 Sep 2013 11:35:09 +0000 (14:35 +0300)]
movenc: Simplify setting the fragmentation flag

This makes sure the faststart vs fragmentation check works as
intended when fragmentation is enabled due to using the ismv mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agomovenc: Add a warning message if conflicting options have been specified
Martin Storsjö [Mon, 9 Sep 2013 11:13:55 +0000 (14:13 +0300)]
movenc: Add a warning message if conflicting options have been specified

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agotcp: Explicitly convert a pointer to a boolean integer
Martin Storsjö [Mon, 9 Sep 2013 08:28:14 +0000 (11:28 +0300)]
tcp: Explicitly convert a pointer to a boolean integer

This fixes warnings about making integers from pointers without
a cast, and avoids the theoretical case where the lower 32 bits of
the pointer would all be zero where the implicit cast wouldn't give
the right result.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavcodec/ffv1: YUVA(444,422,420) 9, 10 and 16 bit support
Paul B Mahol [Mon, 9 Sep 2013 10:28:20 +0000 (10:28 +0000)]
avcodec/ffv1: YUVA(444,422,420) 9, 10 and 16 bit support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/ffv1dec: fix format detection
Paul B Mahol [Mon, 9 Sep 2013 10:44:27 +0000 (10:44 +0000)]
avcodec/ffv1dec: fix format detection

Fixes crash with carefuly designed files.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoMove packed B-frames message level to info.
Reimar Döffinger [Sun, 8 Sep 2013 17:49:01 +0000 (19:49 +0200)]
Move packed B-frames message level to info.

Since they generally decode fine, printing it as a warning
might not really be appropriate.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoMake packed B-frame warning message more useful.
Reimar Döffinger [Sun, 8 Sep 2013 17:34:20 +0000 (19:34 +0200)]
Make packed B-frame warning message more useful.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoavcodec/ffv1enc: encode slice as raw PCM in 1.4 when the buffer is too small.
Michael Niedermayer [Mon, 9 Sep 2013 18:08:42 +0000 (20:08 +0200)]
avcodec/ffv1enc: encode slice as raw PCM in 1.4 when the buffer is too small.

This limits the maximum size of encoded slices more tightly

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/ffv1dec: Support decoding planes as raw PCM in 1.4
Michael Niedermayer [Mon, 9 Sep 2013 17:56:44 +0000 (19:56 +0200)]
avcodec/ffv1dec: Support decoding planes as raw PCM in 1.4

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/ffv1enc: check encode_line()s return code
Michael Niedermayer [Mon, 9 Sep 2013 16:05:52 +0000 (18:05 +0200)]
avcodec/ffv1enc: check encode_line()s return code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/ffv1enc: update buffer check for 16bps
Michael Niedermayer [Mon, 9 Sep 2013 15:58:18 +0000 (17:58 +0200)]
avcodec/ffv1enc: update buffer check for 16bps

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/ffv1enc: fix size used for ff_alloc_packet2()
Michael Niedermayer [Mon, 9 Sep 2013 15:36:01 +0000 (17:36 +0200)]
avcodec/ffv1enc: fix size used for ff_alloc_packet2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/util: Make size argument of ff_alloc_packet2() int64_t
Michael Niedermayer [Mon, 9 Sep 2013 15:08:03 +0000 (17:08 +0200)]
avcodec/util: Make size argument of ff_alloc_packet2() int64_t

This ensures that huge sizes dont get truncated before the check in ff_alloc_packet2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/eatgv: use av_reallocp_array() and check return value
Paul B Mahol [Mon, 9 Sep 2013 12:23:56 +0000 (12:23 +0000)]
avcodec/eatgv: use av_reallocp_array() and check return value

Fixes #2949.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/asfdec: check return value of av_mallocz()
Paul B Mahol [Mon, 9 Sep 2013 12:09:31 +0000 (12:09 +0000)]
avcodec/asfdec: check return value of av_mallocz()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/xwdenc: use AV_LOG_ERROR in error message
Paul B Mahol [Mon, 9 Sep 2013 09:51:38 +0000 (09:51 +0000)]
avcodec/xwdenc: use AV_LOG_ERROR in error message

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/bmpenc: return meaningful error code
Paul B Mahol [Mon, 9 Sep 2013 09:48:36 +0000 (09:48 +0000)]
avcodec/bmpenc: return meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/truemotion2: use av_reallocp_array() and check return value
Paul B Mahol [Mon, 9 Sep 2013 11:28:54 +0000 (11:28 +0000)]
avcodec/truemotion2: use av_reallocp_array() and check return value

Also reset tok_lens if reallocation fails.

Fixes #2946.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoh264: do not discard NAL_SEI when skipping frames
Rainer Hochecker [Mon, 9 Sep 2013 08:05:48 +0000 (10:05 +0200)]
h264: do not discard NAL_SEI when skipping frames

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavu/ripemd: Add a size optimized version of the transform functions
James Almer [Mon, 9 Sep 2013 08:42:22 +0000 (05:42 -0300)]
lavu/ripemd: Add a size optimized version of the transform functions

When compiling with --enable-small, ripemd.o will weigh a few kilobytes less than
it used to before the previous commit.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavu/ripemd: Fully unroll the transform function loops
James Almer [Mon, 9 Sep 2013 08:42:21 +0000 (05:42 -0300)]
lavu/ripemd: Fully unroll the transform function loops

crypto_bench RIPEMD-160 results using an AMD Athlon X2 7750+, mingw32-w64 GCC 4.8.1 x86_64

Before:
lavu       RIPEMD-160   size: 1048576  runs:   1024  time:   12.342 +- 0.199

After:
lavu       RIPEMD-160   size: 1048576  runs:   1024  time:   10.143 +- 0.192

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc: don't show "Invalid and inefficient vfw-avi..." warning in mpeg4 parser
wm4 [Sun, 8 Sep 2013 22:46:01 +0000 (00:46 +0200)]
lavc: don't show "Invalid and inefficient vfw-avi..." warning in mpeg4 parser

Only the actual decoder should print this warning.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/mjpegdec: fix shift_output() with lowres
Michael Niedermayer [Sun, 8 Sep 2013 23:35:34 +0000 (01:35 +0200)]
avcodec/mjpegdec: fix shift_output() with lowres

Fixes Ticket2940

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Sun, 8 Sep 2013 21:49:28 +0000 (23:49 +0200)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  libxvid: guess a good aspect when we cant store the exact one.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/proresdec2: return meaningful error codes
Paul B Mahol [Sun, 8 Sep 2013 21:24:34 +0000 (21:24 +0000)]
avcodec/proresdec2: return meaningful error codes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/ratecontrol: give some trivial tips in case of buffer underflows
Michael Niedermayer [Sun, 8 Sep 2013 21:10:41 +0000 (23:10 +0200)]
avcodec/ratecontrol: give some trivial tips in case of buffer underflows

See Ticket2725

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibxvid: guess a good aspect when we cant store the exact one.
Carl Eugen Hoyos [Sun, 8 Sep 2013 20:53:14 +0000 (22:53 +0200)]
libxvid: guess a good aspect when we cant store the exact one.

Based on 394781a8.

7 years agoavcodec/truemotion2: use av_calloc() & av_malloc_array()
Paul B Mahol [Sun, 8 Sep 2013 18:56:06 +0000 (18:56 +0000)]
avcodec/truemotion2: use av_calloc() & av_malloc_array()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/truemotion2: Fix av_freep arguments
Michael Niedermayer [Sun, 8 Sep 2013 18:27:54 +0000 (20:27 +0200)]
avcodec/truemotion2: Fix av_freep arguments

Fixes null pointer dereference
Fixes Ticket2944

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavformat/avidec: fix signedness of pointer type in get_stream_idx()
Michael Niedermayer [Sun, 8 Sep 2013 17:00:59 +0000 (19:00 +0200)]
avformat/avidec: fix signedness of pointer type in get_stream_idx()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/srtdec: fix potential overread.
Clément Bœsch [Sun, 8 Sep 2013 16:28:11 +0000 (18:28 +0200)]
avcodec/srtdec: fix potential overread.

7 years agoavcodec/assenc: fix potential overread.
Clément Bœsch [Sun, 8 Sep 2013 16:23:44 +0000 (18:23 +0200)]
avcodec/assenc: fix potential overread.

7 years agoavformat/subtitles: support standalone CR (MacOS).
Clément Bœsch [Sun, 8 Sep 2013 16:05:11 +0000 (18:05 +0200)]
avformat/subtitles: support standalone CR (MacOS).

Recent .srt files with CR only were found in the wild.

7 years agoavformat/subtitles: add a next line jumper and use it.
Clément Bœsch [Sun, 8 Sep 2013 16:02:45 +0000 (18:02 +0200)]
avformat/subtitles: add a next line jumper and use it.

This fixes a bunch of possible overread in avformat with the idiom p +=
strcspn(p, "\n") + 1 (strcspn() can focus on the trailing '\0' if no
'\n' is found, so the +1 leads to an overread).

Note on lavf/matroskaenc: no extra subtitles.o Makefile dependency is
added because only the header is required for ff_subtitles_next_line().

Note on lavf/mpsubdec: code gets slightly complex to avoid an infinite
loop in the probing since there is no more forced increment.

7 years agoavformat/srtdec: skip initial random line breaks.
Clément Bœsch [Sun, 8 Sep 2013 14:17:46 +0000 (16:17 +0200)]
avformat/srtdec: skip initial random line breaks.

I found a bunch of (recent) SRT files in the wild with 3 to 10 line
breaks at the beginning.

7 years agoavcodec/png: remove obsolete comments
Paul B Mahol [Sun, 8 Sep 2013 15:13:33 +0000 (15:13 +0000)]
avcodec/png: remove obsolete comments

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoswscale/utils: use memcpy instead of loop in sws_cloneVec()
Michael Niedermayer [Sun, 8 Sep 2013 12:57:07 +0000 (14:57 +0200)]
swscale/utils: use memcpy instead of loop in sws_cloneVec()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavformat/matroskaenc: remove bogus prores tag
Paul B Mahol [Sun, 8 Sep 2013 12:35:31 +0000 (12:35 +0000)]
avformat/matroskaenc: remove bogus prores tag

Fixes: ffmpeg -i input -c:v prores output.mkv

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavd/v4l2: Improve debug message
Giorgio Vazzana [Sun, 8 Sep 2013 08:32:48 +0000 (10:32 +0200)]
lavd/v4l2: Improve debug message

In particular, print the standard supported by the selected input.
Additionally, use PRIx64 everywhere when printing standards.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter/vf_psnr: refactor subsampled format support
Paul B Mahol [Sun, 8 Sep 2013 10:53:55 +0000 (10:53 +0000)]
avfilter/vf_psnr: refactor subsampled format support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavformat/subtitles: binary search seeking.
Clément Bœsch [Sun, 8 Sep 2013 10:36:57 +0000 (12:36 +0200)]
avformat/subtitles: binary search seeking.

7 years agoavformat/subtitles: check lower bound for duration overlap seeking.
Clément Bœsch [Sun, 8 Sep 2013 07:55:02 +0000 (09:55 +0200)]
avformat/subtitles: check lower bound for duration overlap seeking.

7 years agoavformat/vobsub: fix seeking.
Clément Bœsch [Sun, 8 Sep 2013 07:43:53 +0000 (09:43 +0200)]
avformat/vobsub: fix seeking.

7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 8 Sep 2013 10:14:33 +0000 (12:14 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavf: fix the comparison in an overflow check

Conflicts:
libavformat/utils.c

See: a5d67bc796e1f9a2b99b43ea807166b655e4bdbc
Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '7ee191cab0dc44700f26c5784e2adeb6a779651b'
Michael Niedermayer [Sun, 8 Sep 2013 09:46:18 +0000 (11:46 +0200)]
Merge commit '7ee191cab0dc44700f26c5784e2adeb6a779651b'

* commit '7ee191cab0dc44700f26c5784e2adeb6a779651b':
  dv: Add a guard to not overread the ppcm array

See: 3669915e93b3df63034857534245c3f2575d78ff
Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agooMerge commit '85ac12587bfef970d0e0e4abc292df346daf8478'
Michael Niedermayer [Sun, 8 Sep 2013 09:40:45 +0000 (11:40 +0200)]
oMerge commit '85ac12587bfef970d0e0e4abc292df346daf8478'

* commit '85ac12587bfef970d0e0e4abc292df346daf8478':
  nuv: check ff_rtjpeg_decode_frame_yuv420 return value

Conflicts:
libavcodec/nuv.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc: add *install-doc that covers all documentation
James Almer [Fri, 6 Sep 2013 04:10:48 +0000 (01:10 -0300)]
doc: add *install-doc that covers all documentation

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/snowenc: fix constness of the AVFrame argument in encode_frame()
Michael Niedermayer [Sun, 8 Sep 2013 03:17:34 +0000 (05:17 +0200)]
avcodec/snowenc: fix constness of the AVFrame argument in encode_frame()

Some fields of the frame are changed to reflect encoder decissions like
if its a keyframe. It thus cannot be constant.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter/vf_histeq: remove unused item from filter private context
Paul B Mahol [Sat, 7 Sep 2013 21:04:12 +0000 (21:04 +0000)]
avfilter/vf_histeq: remove unused item from filter private context

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agovformat/tee: fix uninitialized use of ret
Michael Niedermayer [Sat, 7 Sep 2013 20:16:26 +0000 (22:16 +0200)]
vformat/tee: fix uninitialized use of ret

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter/vf_format: add .get_video_buffer back
Paul B Mahol [Sat, 7 Sep 2013 20:37:48 +0000 (20:37 +0000)]
avfilter/vf_format: add .get_video_buffer back

Unbreak xyz12 with vflip.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agodoc: rename *install-doc to *install-html
James Almer [Fri, 6 Sep 2013 04:08:31 +0000 (01:08 -0300)]
doc: rename *install-doc to *install-html

Signed-off-by: James Almer <jamrial@gmail.com>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc: fix install-doc dependencies
James Almer [Sun, 1 Sep 2013 22:00:06 +0000 (19:00 -0300)]
doc: fix install-doc dependencies

Put it inside its own ifdef conditional.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter/vf_rotate: fix 'oh' option description
Paul B Mahol [Sat, 7 Sep 2013 18:34:03 +0000 (18:34 +0000)]
avfilter/vf_rotate: fix 'oh' option description

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavfilter: remove redundant .get_(audio/video)_buffer initializations
Paul B Mahol [Sat, 7 Sep 2013 13:26:11 +0000 (13:26 +0000)]
avfilter: remove redundant .get_(audio/video)_buffer initializations

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavfilter/af_asetnsamples: remove .needs_writable as it is not required
Paul B Mahol [Fri, 6 Sep 2013 22:25:00 +0000 (22:25 +0000)]
avfilter/af_asetnsamples: remove .needs_writable as it is not required

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavf: fix the comparison in an overflow check
Anton Khirnov [Wed, 4 Sep 2013 06:55:08 +0000 (08:55 +0200)]
lavf: fix the comparison in an overflow check

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agodv: Add a guard to not overread the ppcm array
Luca Barbato [Mon, 5 Aug 2013 20:15:24 +0000 (22:15 +0200)]
dv: Add a guard to not overread the ppcm array

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agonuv: check ff_rtjpeg_decode_frame_yuv420 return value
Luca Barbato [Sun, 11 Aug 2013 18:35:40 +0000 (20:35 +0200)]
nuv: check ff_rtjpeg_decode_frame_yuv420 return value

CC: libav-stable@libav.org
7 years agoavfilter/af_compand: silence "maybe uninitialized" warnings
Michael Niedermayer [Sat, 7 Sep 2013 01:07:34 +0000 (03:07 +0200)]
avfilter/af_compand: silence "maybe uninitialized" warnings

if channels is 0 it actually would be uninitialized, thus an assert with comment is added

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter/af_aecho: silence "maybe uninitialized warning"
Michael Niedermayer [Sat, 7 Sep 2013 01:07:34 +0000 (03:07 +0200)]
avfilter/af_aecho: silence "maybe uninitialized warning"

if channels is 0 it actually would be uninitialized, thus an assert with comment is added

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavu: provide msvc implementation of attribute_deprecated
Kirill Gavrilov [Fri, 6 Sep 2013 17:32:31 +0000 (21:32 +0400)]
lavu: provide msvc implementation of attribute_deprecated

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/telecine: remove bitstream and pal formats
Paul B Mahol [Fri, 6 Sep 2013 18:45:27 +0000 (18:45 +0000)]
lavfi/telecine: remove bitstream and pal formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/fieldorder: work with non writtable frames too
Paul B Mahol [Fri, 6 Sep 2013 14:34:28 +0000 (14:34 +0000)]
lavfi/fieldorder: work with non writtable frames too

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/fieldorder: remove pal8 format
Paul B Mahol [Fri, 6 Sep 2013 18:32:25 +0000 (18:32 +0000)]
lavfi/fieldorder: remove pal8 format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/fieldorder: add timeline support
Paul B Mahol [Fri, 6 Sep 2013 14:07:57 +0000 (14:07 +0000)]
lavfi/fieldorder: add timeline support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/fieldorder: use av_image_fill_linesizes()
Paul B Mahol [Fri, 6 Sep 2013 14:04:48 +0000 (14:04 +0000)]
lavfi/fieldorder: use av_image_fill_linesizes()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/fieldorder: remove redundant get_video_buffer()
Paul B Mahol [Fri, 6 Sep 2013 13:58:59 +0000 (13:58 +0000)]
lavfi/fieldorder: remove redundant get_video_buffer()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agos302m: s/bits_per_coded_sample/bits_per_raw_sample
Paul B Mahol [Fri, 6 Sep 2013 16:32:47 +0000 (16:32 +0000)]
s302m: s/bits_per_coded_sample/bits_per_raw_sample

bits_per_coded_sample should be set from demuxer and
not from decoder.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavcodec/xan: use uint8_t instead of unsigned char
Paul B Mahol [Fri, 6 Sep 2013 17:18:17 +0000 (17:18 +0000)]
avcodec/xan: use uint8_t instead of unsigned char

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agopixfmt: add native GBRAP16 format
Paul B Mahol [Fri, 6 Sep 2013 16:59:32 +0000 (16:59 +0000)]
pixfmt: add native GBRAP16 format

Signed-off-by: Paul B Mahol <onemda@gmail.com>