ffmpeg.git
5 years agoRevert "doc: add script to compute texi files dependencies"
Michael Niedermayer [Wed, 3 Jul 2013 10:59:59 +0000 (12:59 +0200)]
Revert "doc: add script to compute texi files dependencies"

This reverts commit 628ceac6526724d35cb390cc1f88344f4ea22eb4.

The commit broke out of tree builds

5 years agoexamples/muxing: make more compact audio/video_time computation
Stefano Sabatini [Tue, 25 Jun 2013 22:06:53 +0000 (00:06 +0200)]
examples/muxing: make more compact audio/video_time computation

5 years agodoc/muxers: Add AIFF doc
Timothy Gu [Wed, 3 Jul 2013 02:32:27 +0000 (19:32 -0700)]
doc/muxers: Add AIFF doc

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
5 years agodoc: add script to compute texi files dependencies
Stefano Sabatini [Tue, 28 May 2013 19:52:33 +0000 (21:52 +0200)]
doc: add script to compute texi files dependencies

Replace the inline awk script with a Perl script which tracks the
dependencies recursively.

This allows to correctly track dependencies for files including files
with a second level include (for example: ffmpeg-devices.texi ->
devices.texi -> outdevs.texi).

This also adds a dependency on perl for computing the dependencies, which
should not be a problem since perl is already required all the way for
building documentation.

5 years agoMerge commit '5650e331a733711b809bc27f968500f0f5530126'
Michael Niedermayer [Wed, 3 Jul 2013 09:20:39 +0000 (11:20 +0200)]
Merge commit '5650e331a733711b809bc27f968500f0f5530126'

* commit '5650e331a733711b809bc27f968500f0f5530126':
  jpeg2000: Validate resolution levels

Conflicts:
libavcodec/jpeg2000dec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavc/avcodec.h: fix prolems -> problems typo
Stefano Sabatini [Tue, 2 Jul 2013 09:21:44 +0000 (11:21 +0200)]
lavc/avcodec.h: fix prolems -> problems typo

5 years agoMAINTAINERS: add address to contact "AvxSynth Team"
Michael Niedermayer [Wed, 3 Jul 2013 00:26:13 +0000 (02:26 +0200)]
MAINTAINERS: add address to contact "AvxSynth Team"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/matroskaenc: Allow VP9 and Opus in webm
Tudor Suciu [Sun, 2 Jun 2013 15:49:24 +0000 (17:49 +0200)]
avformat/matroskaenc: Allow VP9 and Opus in webm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agojpeg2000: Validate resolution levels
Luca Barbato [Mon, 1 Jul 2013 08:00:58 +0000 (10:00 +0200)]
jpeg2000: Validate resolution levels

There are 32 maximum decomposition levels, thus 33 resolution levels.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agolavf: add support for libgme
wm4 [Fri, 28 Jun 2013 08:36:00 +0000 (10:36 +0200)]
lavf: add support for libgme

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoAdd a maintainer for the delogo filter
Jean Delvare [Tue, 2 Jul 2013 11:55:34 +0000 (13:55 +0200)]
Add a maintainer for the delogo filter

I volunteer to maintain the delogo filter for at least the year to
come.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
patch/commit split by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMAINTAINERS: clarify the expected format in the document header
Jean Delvare [Tue, 2 Jul 2013 11:55:34 +0000 (13:55 +0200)]
MAINTAINERS: clarify the expected format in the document header

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Patch/commit split by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat_find_stream_info: move ret init down from flush codecs.
Michael Niedermayer [Tue, 2 Jul 2013 13:06:43 +0000 (15:06 +0200)]
avformat_find_stream_info: move ret init down from flush codecs.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat_find_stream_info: Do not consider no streams an error in flush codecs
Michael Niedermayer [Tue, 2 Jul 2013 13:04:13 +0000 (15:04 +0200)]
avformat_find_stream_info: Do not consider no streams an error in flush codecs

This should have no functional effect, but allows a cleaner diff when moving it
down

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat_find_stream_info: try to preserve the error code
Michael Niedermayer [Tue, 2 Jul 2013 13:02:55 +0000 (15:02 +0200)]
avformat_find_stream_info: try to preserve the error code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoav_find_stream_info: initialize ret
Michael Niedermayer [Tue, 2 Jul 2013 13:00:28 +0000 (15:00 +0200)]
av_find_stream_info: initialize ret

This should fix hypothetical corner cases where it might have never been initialized before use

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat: Print "Consider increasing the value for analzeduration and probesize"...
Carl Eugen Hoyos [Thu, 20 Jun 2013 07:34:15 +0000 (09:34 +0200)]
avformat: Print "Consider increasing the value for analzeduration and probesize" even more often

The sample from ticket #2691 currently does not trigger "Consider increasing
the value for analzeduration and probesize" because the audio streams are
only added after calling estimate_timings(). Attached patch moves the message
below this function call.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil/x86: reenable ff_update_lls_avx()
Michael Niedermayer [Tue, 2 Jul 2013 09:58:08 +0000 (11:58 +0200)]
avutil/x86: reenable ff_update_lls_avx()

The bug has been fixed in c8b920a9b7fa534a6141695ace4e8c2dfcd56cee by Loren Merritt

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 2 Jul 2013 09:50:30 +0000 (11:50 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  oggdec: do not fall back on binary search in the generic code.

Conflicts:
libavformat/oggdec.c
tests/ref/seek/lavf-ogg

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'c8b920a9b7fa534a6141695ace4e8c2dfcd56cee'
Michael Niedermayer [Tue, 2 Jul 2013 09:40:38 +0000 (11:40 +0200)]
Merge commit 'c8b920a9b7fa534a6141695ace4e8c2dfcd56cee'

* commit 'c8b920a9b7fa534a6141695ace4e8c2dfcd56cee':
  lls/x86: use 3-operator vaddpd in ADDPD_MEM

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '8bd9039900e67a633cc838d691c449e71c060553'
Michael Niedermayer [Tue, 2 Jul 2013 09:26:49 +0000 (11:26 +0200)]
Merge commit '8bd9039900e67a633cc838d691c449e71c060553'

* commit '8bd9039900e67a633cc838d691c449e71c060553':
  Revert "indeo5: reject negative motion vectors"

See: cc53c28fdc2bd060e90a82d4238ad26e619a9fca
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agooggdec: do not fall back on binary search in the generic code.
Anton Khirnov [Fri, 28 Jun 2013 16:38:37 +0000 (18:38 +0200)]
oggdec: do not fall back on binary search in the generic code.

Binary search is already attempted in the format-specific seek function,
so the fallback is only reached if binary search failed already.

5 years agolls/x86: use 3-operator vaddpd in ADDPD_MEM
Loren Merritt [Tue, 2 Jul 2013 05:56:56 +0000 (07:56 +0200)]
lls/x86: use 3-operator vaddpd in ADDPD_MEM

Fixes build with yasm-1.1

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agoh264: fix indention of xchg_mb_border()
Michael Niedermayer [Tue, 2 Jul 2013 00:11:49 +0000 (02:11 +0200)]
h264: fix indention of xchg_mb_border()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoh264: move 444 border xchg under if (deblock_top)
Michael Niedermayer [Mon, 1 Jul 2013 23:41:19 +0000 (01:41 +0200)]
h264: move 444 border xchg under if (deblock_top)

Fixes out of array access
Fixes Ticket2668

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavf/http: add support for reading streamcast metadata
wm4 [Tue, 25 Jun 2013 22:53:26 +0000 (00:53 +0200)]
lavf/http: add support for reading streamcast metadata

Allow applications to request reading streamcast metadata. This uses
AVOptions as API, and requires the application to explicitly request
and read metadata. Metadata can be updated mid-stream; if an
application is interested in that, it has to poll for the data by
reading the "icy_metadata_packet" option in regular intervals.

There doesn't seem to be a nice way to transfer the metadata in a nicer
way. Converting the metadata to ID3v2 tags might be a nice idea, but
the libavformat mp3 demuxer doesn't seem to read these tags mid-stream,
and even then we couldn't guarantee that tags are not inserted in the
middle of mp3 packet data.

This commit provides the minimum to enable applications to retrieve
this information at all.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
5 years agormdec: Pass AVIOContext to rm_read_metadata()
Michael Niedermayer [Mon, 1 Jul 2013 21:38:08 +0000 (23:38 +0200)]
rmdec: Pass AVIOContext to rm_read_metadata()

Fix null pointer dereference
Fixes Ticket2588

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agowestwood_vqa: check return value of av_malloc()
Paul B Mahol [Mon, 1 Jul 2013 22:15:25 +0000 (22:15 +0000)]
westwood_vqa: check return value of av_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
5 years agoidcin: check return value of av_malloc()
Paul B Mahol [Mon, 1 Jul 2013 22:04:48 +0000 (22:04 +0000)]
idcin: check return value of av_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
5 years agobfi: check return value of av_malloc()
Paul B Mahol [Mon, 1 Jul 2013 21:37:16 +0000 (21:37 +0000)]
bfi: check return value of av_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
5 years agoavcodec/x86/dsputil_init: only use xvid idct for lowres=0
Michael Niedermayer [Mon, 1 Jul 2013 18:48:38 +0000 (20:48 +0200)]
avcodec/x86/dsputil_init: only use xvid idct for lowres=0

Fixes crash
Fixes Ticket2714

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodoc/encoders: apply various fixes to libmp3lame documentation
Stefano Sabatini [Mon, 1 Jul 2013 13:59:51 +0000 (15:59 +0200)]
doc/encoders: apply various fixes to libmp3lame documentation

5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 1 Jul 2013 10:03:17 +0000 (12:03 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  indeo: check for reference when inheriting mvs

See: 4b35ee0b7c0c4cbac3541a25a5e8c00b657c8f95
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '1194a410807bac3eafbeb632578b937656d273e7'
Michael Niedermayer [Mon, 1 Jul 2013 09:45:28 +0000 (11:45 +0200)]
Merge commit '1194a410807bac3eafbeb632578b937656d273e7'

* commit '1194a410807bac3eafbeb632578b937656d273e7':
  indeo5: reject negative motion vectors

The added check is wrong and thus not merged.
A correct check already exists in avcodec.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'dd3754a48854cd570d38db72394491aab0f36570'
Michael Niedermayer [Mon, 1 Jul 2013 09:37:13 +0000 (11:37 +0200)]
Merge commit 'dd3754a48854cd570d38db72394491aab0f36570'

* commit 'dd3754a48854cd570d38db72394491aab0f36570':
  indeo: use proper error code

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '7388c0c58601477db076e2e74e8b11f8a644384a'
Michael Niedermayer [Mon, 1 Jul 2013 09:31:16 +0000 (11:31 +0200)]
Merge commit '7388c0c58601477db076e2e74e8b11f8a644384a'

* commit '7388c0c58601477db076e2e74e8b11f8a644384a':
  indeo: Properly forward the error codes

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavfi/delogo: use weighted interpolation
Jean Delvare [Wed, 26 Jun 2013 12:50:37 +0000 (14:50 +0200)]
lavfi/delogo: use weighted interpolation

The original delogo algorithm interpolates both horizontally and
vertically and uses the average to compute the resulting sample. This
works reasonably well when the logo area is almost square. However
when the logo area is significantly larger than high or higher than
large, the result is largely suboptimal.

The issue can be clearly seen by testing the delogo filter with a fake
logo area that is 200 pixels large and 2 pixels high. Vertical
interpolation gives a very good result in that case, horizontal
interpolation gives a very bad result, and the overall result is poor,
because both are given the same weight.

Even when the logo is roughly square, the current algorithm gives poor
results on the borders of the logo area, because it always gives
horizontal and vertical interpolations an equal weight, and this is
suboptimal on borders. For example, in the middle of the left hand
side border of the logo, you want to trust the left known point much
more than the right known point (which the current algorithm already
does) but also much more than the top and bottom known points (which
the current algorithm doesn't do.)

By properly weighting each known point when computing the value of
each interpolated pixel, the visual result is much better, especially
on borders and/or for high or large logo areas.

The algorithm I implemented guarantees that the weight of each of the
4 known points directly depends on its distance to the interpolated
point. It is largely inspired from the original algorithm, the key
difference being that it computes the relative weights globally
instead of separating the vertical and horizontal interpolations and
combining them afterward.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
5 years agoRevert "indeo5: reject negative motion vectors"
Luca Barbato [Mon, 1 Jul 2013 04:49:46 +0000 (06:49 +0200)]
Revert "indeo5: reject negative motion vectors"

Negative motion vectors are possible.

This reverts commit 1194a410807bac3eafbeb632578b937656d273e7.

5 years agoindeo: check for reference when inheriting mvs
Luca Barbato [Sun, 30 Jun 2013 08:40:37 +0000 (10:40 +0200)]
indeo: check for reference when inheriting mvs

The same is done already for qdelta.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
5 years agoindeo5: reject negative motion vectors
Luca Barbato [Sun, 30 Jun 2013 08:35:07 +0000 (10:35 +0200)]
indeo5: reject negative motion vectors

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
5 years agoindeo: use proper error code
Luca Barbato [Sun, 30 Jun 2013 08:11:05 +0000 (10:11 +0200)]
indeo: use proper error code

5 years agoindeo: Properly forward the error codes
Luca Barbato [Sun, 30 Jun 2013 07:57:56 +0000 (09:57 +0200)]
indeo: Properly forward the error codes

If the tile data size does not match the buffer size it did not
return an AVERROR_INVALIDDATA causing futher corruption later.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
5 years agoAvoid a null pointer dereference in avcodec_decode_audio4().
Carl Eugen Hoyos [Mon, 1 Jul 2013 01:07:44 +0000 (03:07 +0200)]
Avoid a null pointer dereference in avcodec_decode_audio4().

This could happen if oom occured while probing a file.
Fixes ticket #2722.

5 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Mon, 1 Jul 2013 00:41:22 +0000 (02:41 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: always send zero packets to flush audio decoders
  ffplay: use frame->pkt_pts instead of pkt->pts in audio pts calculation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoRevert "avutil/x86: disable ff_evaluate_lls_sse2() for 32bit"
Michael Niedermayer [Mon, 1 Jul 2013 00:27:47 +0000 (02:27 +0200)]
Revert "avutil/x86: disable ff_evaluate_lls_sse2() for 32bit"

This reverts commit 247425241cb3b2b76df1c2aced5ce0d56126b82d.

5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 1 Jul 2013 00:26:15 +0000 (02:26 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  x86: lpc: fix a segfault in av_evaluate_lls_sse2()

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovorbisdec: Check VLC tables during use instead of setup
Michael Niedermayer [Mon, 1 Jul 2013 00:09:29 +0000 (02:09 +0200)]
vorbisdec: Check VLC tables during use instead of setup

Fixes regression and Ticket2720

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovorbisdec: propagate errors from setup_classifs()
Michael Niedermayer [Mon, 1 Jul 2013 00:07:26 +0000 (02:07 +0200)]
vorbisdec: propagate errors from setup_classifs()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86: lpc: fix a segfault in av_evaluate_lls_sse2()
Loren Merritt [Sun, 30 Jun 2013 22:56:58 +0000 (22:56 +0000)]
x86: lpc: fix a segfault in av_evaluate_lls_sse2()

5 years agoffplay: always send zero packets to flush audio decoders
Marton Balint [Sat, 29 Jun 2013 12:44:30 +0000 (14:44 +0200)]
ffplay: always send zero packets to flush audio decoders

Zero packets are needed not for codecs with CODEC_CAP_DELAY but for
multithreaded decoders as well.

Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agoffplay: use frame->pkt_pts instead of pkt->pts in audio pts calculation
Marton Balint [Sat, 29 Jun 2013 10:44:47 +0000 (12:44 +0200)]
ffplay: use frame->pkt_pts instead of pkt->pts in audio pts calculation

Fixes ticket #2717.

Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agoAvoid a null pointer dereference after oom on frame size change in mpegvideo.c.
Carl Eugen Hoyos [Sun, 30 Jun 2013 21:45:37 +0000 (23:45 +0200)]
Avoid a null pointer dereference after oom on frame size change in mpegvideo.c.

Fixes ticket #2735.

5 years agoAvoid a null pointer dereference on oom in the aac encoder.
Carl Eugen Hoyos [Sun, 30 Jun 2013 21:25:18 +0000 (23:25 +0200)]
Avoid a null pointer dereference on oom in the aac encoder.

Fixes ticket #2732.

5 years agoindeo3: check return values of av_malloc()
Paul B Mahol [Sun, 30 Jun 2013 16:58:13 +0000 (16:58 +0000)]
indeo3: check return values of av_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
5 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Sun, 30 Jun 2013 19:18:12 +0000 (21:18 +0200)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Support compilation on aix with gcc.
  Rename "AVClass class" as "AVClass component_class".
  Rename constant FRAMESIZE in ra144 codec as FRAME_SIZE.
  Rename thread_init() in libavcodec and libavfilter as library_thread_init().
  Rename constant HZ in af_biquads.c as HERTZ.
  Drop local lable from ppc asm timer.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil/x86: disable ff_evaluate_lls_sse2() for 32bit
Michael Niedermayer [Sun, 30 Jun 2013 16:58:06 +0000 (18:58 +0200)]
avutil/x86: disable ff_evaluate_lls_sse2() for 32bit

It just segfaults on 32bit, thus its disabled until someone fixes it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoflac_parser: check return value of av_fifo_alloc()
Paul B Mahol [Sun, 30 Jun 2013 16:49:45 +0000 (16:49 +0000)]
flac_parser: check return value of av_fifo_alloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
5 years agolavf/movenc: use ffio_fill()
Matthieu Bouron [Sun, 30 Jun 2013 14:15:44 +0000 (16:15 +0200)]
lavf/movenc: use ffio_fill()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agompegts: use seek_back() for all seek backs
Michael Niedermayer [Sun, 30 Jun 2013 13:46:04 +0000 (15:46 +0200)]
mpegts: use seek_back() for all seek backs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agompegts: factor seek_back() out
Michael Niedermayer [Sun, 30 Jun 2013 13:45:23 +0000 (15:45 +0200)]
mpegts: factor seek_back() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agompegts_read_header: goto fail instead of return directly
Michael Niedermayer [Sun, 30 Jun 2013 13:42:12 +0000 (15:42 +0200)]
mpegts_read_header: goto fail instead of return directly

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 30 Jun 2013 12:04:22 +0000 (14:04 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mjpeg: Check the unescaped size for overflows

Conflicts:
libavcodec/mjpegdec.c

See: a9456c7c5ca883b5a3947e59a9fba5587e18e119

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '7520d9779c6d30b385df5a0a42da508238076192'
Michael Niedermayer [Sun, 30 Jun 2013 11:50:55 +0000 (13:50 +0200)]
Merge commit '7520d9779c6d30b385df5a0a42da508238076192'

* commit '7520d9779c6d30b385df5a0a42da508238076192':
  mjpeg: Move code out of else branch

Conflicts:
libavcodec/mjpegdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoSupport compilation on aix with gcc.
Carl Eugen Hoyos [Sun, 30 Jun 2013 11:47:10 +0000 (13:47 +0200)]
Support compilation on aix with gcc.

Shared libraries and the IBM compiler are currently not supported.
"--arch=ppc" has to be passed to configure, uname is not compatible.

5 years agoRename "AVClass class" as "AVClass component_class".
Carl Eugen Hoyos [Sun, 30 Jun 2013 11:46:27 +0000 (13:46 +0200)]
Rename "AVClass class" as "AVClass component_class".

The aix header math.h defines "extern int class()" for C.

5 years agoRename constant FRAMESIZE in ra144 codec as FRAME_SIZE.
Carl Eugen Hoyos [Sun, 30 Jun 2013 11:45:10 +0000 (13:45 +0200)]
Rename constant FRAMESIZE in ra144 codec as FRAME_SIZE.

The aix header sys/mstsave.h defines FRAMESIZE as _FRAMESIZE.

5 years agoRename thread_init() in libavcodec and libavfilter as library_thread_init().
Carl Eugen Hoyos [Sun, 30 Jun 2013 11:34:46 +0000 (13:34 +0200)]
Rename thread_init() in libavcodec and libavfilter as library_thread_init().

The aix header sys/thread.h contains a definition for thread_init().

5 years agoRename constant HZ in af_biquads.c as HERTZ.
Carl Eugen Hoyos [Sun, 30 Jun 2013 11:32:59 +0000 (13:32 +0200)]
Rename constant HZ in af_biquads.c as HERTZ.

The aix header sys/m_param.h defines HZ as _HZ.

5 years agoDrop local lable from ppc asm timer.
Carl Eugen Hoyos [Sun, 30 Jun 2013 11:31:25 +0000 (13:31 +0200)]
Drop local lable from ppc asm timer.

The aix assembler does not support local lables.

5 years agoMerge commit '7798a59dc14ae27efe64e639a42646002608a908'
Michael Niedermayer [Sun, 30 Jun 2013 11:42:41 +0000 (13:42 +0200)]
Merge commit '7798a59dc14ae27efe64e639a42646002608a908'

* commit '7798a59dc14ae27efe64e639a42646002608a908':
  avconv: Don't include colorspace.h

No change as the commit is already part of ffmpeg.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '02ec656af72030eea4f3d63e30b25625cce6a3df'
Michael Niedermayer [Sun, 30 Jun 2013 11:22:24 +0000 (13:22 +0200)]
Merge commit '02ec656af72030eea4f3d63e30b25625cce6a3df'

* commit '02ec656af72030eea4f3d63e30b25625cce6a3df':
  wmapro: error out on impossible scale factor offsets

The check is replaced by an assert(), as the condition cannot be
true except through bugs elsewhere (which should have been fixed
already)

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'd4a217a408da4bd63acc02cd8f9ebe378a2ad65a'
Michael Niedermayer [Sun, 30 Jun 2013 11:10:33 +0000 (13:10 +0200)]
Merge commit 'd4a217a408da4bd63acc02cd8f9ebe378a2ad65a'

* commit 'd4a217a408da4bd63acc02cd8f9ebe378a2ad65a':
  wmapro: check the min_samples_per_subframe

Conflicts:
libavcodec/wmaprodec.c

See: 9166f483c52e7e0a031a7bb149bea16aaa72f344

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '183880cfc4aae53ce504e13337791cad5841c80c'
Michael Niedermayer [Sun, 30 Jun 2013 10:59:11 +0000 (12:59 +0200)]
Merge commit '183880cfc4aae53ce504e13337791cad5841c80c'

* commit '183880cfc4aae53ce504e13337791cad5841c80c':
  pictor: use the correct logging context

No change, as this has already been fixed

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/lpc: Use a function pointer from an initialized context
Michael Niedermayer [Sun, 30 Jun 2013 10:34:50 +0000 (12:34 +0200)]
avcodec/lpc: Use a function pointer from an initialized context

Fixes null pointer dereference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'c93ccf5a4cca722b39f05e9f5660b4cb75bc1740'
Michael Niedermayer [Sun, 30 Jun 2013 10:20:12 +0000 (12:20 +0200)]
Merge commit 'c93ccf5a4cca722b39f05e9f5660b4cb75bc1740'

* commit 'c93ccf5a4cca722b39f05e9f5660b4cb75bc1740':
  lpc: use levinson for the first pass of multipass cholesky

Conflicts:
libavcodec/lpc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'b545179fdff1ccfbbb9d422e4e9720cb6c6d9191'
Michael Niedermayer [Sun, 30 Jun 2013 10:15:12 +0000 (12:15 +0200)]
Merge commit 'b545179fdff1ccfbbb9d422e4e9720cb6c6d9191'

* commit 'b545179fdff1ccfbbb9d422e4e9720cb6c6d9191':
  x86: lpc: simd av_evaluate_lls

Conflicts:
libavutil/x86/lls.asm

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolls.asm: disable ff_update_lls_avx
Michael Niedermayer [Sun, 30 Jun 2013 09:59:31 +0000 (11:59 +0200)]
lls.asm: disable ff_update_lls_avx

The code doesnt build with yasm from ubuntu 12.04

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolls.asm: put avx code under if HAVE_AVX_EXTERNAL
Michael Niedermayer [Sun, 30 Jun 2013 09:41:45 +0000 (11:41 +0200)]
lls.asm: put avx code under if HAVE_AVX_EXTERNAL

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '502ab21af0ca68f76d6112722c46d2f35c004053'
Michael Niedermayer [Sun, 30 Jun 2013 09:30:07 +0000 (11:30 +0200)]
Merge commit '502ab21af0ca68f76d6112722c46d2f35c004053'

* commit '502ab21af0ca68f76d6112722c46d2f35c004053':
  x86: lpc: simd av_update_lls

The versions are bumped due to changes in lls.h which is used across
libraries affecting intra library ABI
(This version bump also covers changes to lls.h in the immedeatly previous
 commits)

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2'
Michael Niedermayer [Sun, 30 Jun 2013 09:22:15 +0000 (11:22 +0200)]
Merge commit '41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2'

* commit '41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2':
  lpc: use function pointers, in preparation for asm

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'cc6714bb16b1f0716ba43701d47273dbe9657b8b'
Michael Niedermayer [Sun, 30 Jun 2013 08:54:12 +0000 (10:54 +0200)]
Merge commit 'cc6714bb16b1f0716ba43701d47273dbe9657b8b'

* commit 'cc6714bb16b1f0716ba43701d47273dbe9657b8b':
  lpc: remove "decay" argument

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agomjpeg: Check the unescaped size for overflows
Luca Barbato [Sat, 29 Jun 2013 04:07:57 +0000 (06:07 +0200)]
mjpeg: Check the unescaped size for overflows

And contextually check init_get_bits success and fix the reporting
message.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
5 years agomjpeg: Move code out of else branch
Luca Barbato [Sat, 29 Jun 2013 04:13:53 +0000 (06:13 +0200)]
mjpeg: Move code out of else branch

Simplify the control flow and spare some vertical space.

5 years agoget_xbits: assert validity of the number of bits
Michael Niedermayer [Sat, 29 Jun 2013 22:31:51 +0000 (00:31 +0200)]
get_xbits: assert validity of the number of bits

similar is already done in the other get_bits() functions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years ago4xm: Dont ignore dc run errors
Michael Niedermayer [Sat, 29 Jun 2013 23:29:49 +0000 (01:29 +0200)]
4xm: Dont ignore dc run errors

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years ago4xm: check for invalid zero ac coeffs
Michael Niedermayer [Sat, 29 Jun 2013 23:28:25 +0000 (01:28 +0200)]
4xm: check for invalid zero ac coeffs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agomjpeg_decode_dc: check code before using it in get_xbits()
Michael Niedermayer [Sat, 29 Jun 2013 23:01:24 +0000 (01:01 +0200)]
mjpeg_decode_dc: check code before using it in get_xbits()

Fixes undefined behavior

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg: Don't include colorspace.h
Derek Buitenhuis [Sat, 29 Jun 2013 18:20:20 +0000 (14:20 -0400)]
ffmpeg: Don't include colorspace.h

The header is private, and ffmpeg.c doesn't use it
for anything.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agoget_pix_fmt_score: favor equal formats if all else equal
Michael Niedermayer [Sat, 29 Jun 2013 20:20:20 +0000 (22:20 +0200)]
get_pix_fmt_score: favor equal formats if all else equal

Fixes Ticket2578

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavconv: Don't include colorspace.h
Derek Buitenhuis [Sat, 29 Jun 2013 18:20:20 +0000 (14:20 -0400)]
avconv: Don't include colorspace.h

The header is private, and avconv.c doesn't use it
for anything.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agoupdate all trac links to use the trac subdomain
Michael Niedermayer [Sat, 29 Jun 2013 17:27:49 +0000 (19:27 +0200)]
update all trac links to use the trac subdomain

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Sat, 29 Jun 2013 16:27:52 +0000 (18:27 +0200)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Avoid a null pointer dereference on clean-up after oom in ac3 encoder.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agowmapro: error out on impossible scale factor offsets
Luca Barbato [Sat, 29 Jun 2013 00:16:50 +0000 (02:16 +0200)]
wmapro: error out on impossible scale factor offsets

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
5 years agowmapro: check the min_samples_per_subframe
Luca Barbato [Fri, 28 Jun 2013 23:56:09 +0000 (01:56 +0200)]
wmapro: check the min_samples_per_subframe

Must be at least WMAPRO_BLOCK_MIN_SIZE.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
5 years agopictor: use the correct logging context
Luca Barbato [Sat, 29 Jun 2013 03:41:58 +0000 (05:41 +0200)]
pictor: use the correct logging context

Broken in 6d97484d72e33f7dde9493a9ead1a72e2f029605

5 years agoAdded codec ID to playback DNxHD
Reuben Martin [Sat, 29 Jun 2013 02:11:53 +0000 (21:11 -0500)]
Added codec ID to playback DNxHD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoAvoid a null pointer dereference on clean-up after oom in ac3 encoder.
Carl Eugen Hoyos [Sat, 29 Jun 2013 15:50:07 +0000 (17:50 +0200)]
Avoid a null pointer dereference on clean-up after oom in ac3 encoder.

5 years agoAvoid a null pointer dereference on oom when decoding smacker.
Carl Eugen Hoyos [Sat, 29 Jun 2013 14:04:07 +0000 (16:04 +0200)]
Avoid a null pointer dereference on oom when decoding smacker.

Fixes ticket #2728.

5 years agoPropagate error return values from the smacker decoder.
Carl Eugen Hoyos [Sat, 29 Jun 2013 14:02:43 +0000 (16:02 +0200)]
Propagate error return values from the smacker decoder.

5 years agoAvoid a null pointer dereference on oom when decoding vc1.
Carl Eugen Hoyos [Sat, 29 Jun 2013 12:49:47 +0000 (14:49 +0200)]
Avoid a null pointer dereference on oom when decoding vc1.

Fixes ticket #2723.