ffmpeg.git
4 years agoMerge commit '3cd5828fc0007e6d056067444de053a34ddedd02'
Michael Niedermayer [Tue, 24 Feb 2015 21:03:14 +0000 (22:03 +0100)]
Merge commit '3cd5828fc0007e6d056067444de053a34ddedd02'

* commit '3cd5828fc0007e6d056067444de053a34ddedd02':
  rtpdec: Add missing trailing commas

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '04a1be8e28e81f3967eace7705343c450616cc95'
Michael Niedermayer [Tue, 24 Feb 2015 20:50:32 +0000 (21:50 +0100)]
Merge commit '04a1be8e28e81f3967eace7705343c450616cc95'

* commit '04a1be8e28e81f3967eace7705343c450616cc95':
  libavformat: add T.140 RTP depacketization (RFC 4103)

Conflicts:
libavformat/rtpdec.c
libavformat/version.h

See: af940e6cb1212d4338e55c03498ef5ae40e6e749
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '26524e358147aade6e9dd18fff42d61b966bbc70'
Michael Niedermayer [Tue, 24 Feb 2015 20:34:38 +0000 (21:34 +0100)]
Merge commit '26524e358147aade6e9dd18fff42d61b966bbc70'

* commit '26524e358147aade6e9dd18fff42d61b966bbc70':
  rtsp: Interpret the text media type as AVMEDIA_TYPE_DATA

See: afb0e5a810ae110a69b618e5fbed78a7c1b899f3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/h264: Only reinit quant tables if a new PPS is allowed
Michael Niedermayer [Tue, 24 Feb 2015 19:49:07 +0000 (20:49 +0100)]
avcodec/h264: Only reinit quant tables if a new PPS is allowed

Fixes null pointer dereference
Fixes: signal_sigsegv_3042097_3007_cov_1741463594_non_monotone_timestamps1.mkv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodoc/filters.texi: add reference link to video size syntax description
Tobias Rapp [Tue, 24 Feb 2015 12:23:56 +0000 (13:23 +0100)]
doc/filters.texi: add reference link to video size syntax description

Update the filter option documentation text to link to ffmpeg-utils
documentation for video size syntax description.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
4 years agoavformat/movenc: Fix writing ACLR atoms for DNxHD
Kevin Wheatley [Tue, 24 Feb 2015 10:00:07 +0000 (10:00 +0000)]
avformat/movenc: Fix writing ACLR atoms for DNxHD

Using the copy codec ACLR atoms where incorrectly written

During the creation of the ACLR atom we are assuming the vos_data
contains the DNxHD header. This change makes this explicit and
ensures we don't over write the stream with the extra_data.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/dss: Set packet position correctly
Michael Niedermayer [Tue, 24 Feb 2015 13:54:20 +0000 (14:54 +0100)]
avformat/dss: Set packet position correctly

pos previously was set but then overwritten

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agortpdec: Add missing trailing commas
Martin Storsjö [Mon, 23 Feb 2015 20:06:41 +0000 (22:06 +0200)]
rtpdec: Add missing trailing commas

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agolibavformat: add T.140 RTP depacketization (RFC 4103)
Gilles Chanteperdrix [Sun, 8 Feb 2015 21:22:41 +0000 (22:22 +0100)]
libavformat: add T.140 RTP depacketization (RFC 4103)

Map this to AV_CODEC_ID_TEXT.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agortsp: Interpret the text media type as AVMEDIA_TYPE_DATA
Martin Storsjö [Mon, 23 Feb 2015 15:16:32 +0000 (17:16 +0200)]
rtsp: Interpret the text media type as AVMEDIA_TYPE_DATA

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoavcodec/mss4: check return value of init_get_bits8()
Paul B Mahol [Tue, 24 Feb 2015 13:17:34 +0000 (13:17 +0000)]
avcodec/mss4: check return value of init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavc/pthread_slice: release entries
Christophe Gisquet [Thu, 5 Feb 2015 15:00:11 +0000 (16:00 +0100)]
lavc/pthread_slice: release entries

When calling ff_alloc_entries, a number of entries are created.
They are never freed, as running fate with slice threading and
several frames on e.g. fate-hevc-conformance-ENTP_A_Qualcomm_1
would show.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/nutdec: fix isom and mpa build deps
Clément Bœsch [Tue, 24 Feb 2015 10:22:47 +0000 (11:22 +0100)]
avformat/nutdec: fix isom and mpa build deps

Fixes the following link error:
  nutdec.c:(.text+0x2d47): undefined reference to `ff_codec_movvideo_tags'
  isom.c:(.text+0x332): undefined reference to `avpriv_mpeg4audio_get_config'
  isom.c:(.text+0x39e): undefined reference to `avpriv_mpa_freq_tab'

4 years agoavcodec/snow: Free all planes and bands independent of the last count
Michael Niedermayer [Tue, 24 Feb 2015 02:21:12 +0000 (03:21 +0100)]
avcodec/snow: Free all planes and bands independent of the last count

Fixes memleak
Fixes: signal_sigsegv_24169e6_3445_cov_3778346427_snow_chroma_bug.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/snowdec: Fix ref value check
Michael Niedermayer [Tue, 24 Feb 2015 02:12:22 +0000 (03:12 +0100)]
avcodec/snowdec: Fix ref value check

Fixes integer overflow and out of array read.
Fixes: signal_sigsegv_24169e6_3445_cov_3778346427_snow_chroma_bug.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoswscale/utils: add asserts to check filterpos
Michael Niedermayer [Mon, 23 Feb 2015 23:35:11 +0000 (00:35 +0100)]
swscale/utils: add asserts to check filterpos

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoswscale/utils: More carefully merge and clear coefficients outside the input
Michael Niedermayer [Mon, 23 Feb 2015 23:32:39 +0000 (00:32 +0100)]
swscale/utils: More carefully merge and clear coefficients outside the input

Fixes out of array read
Fixes: asan_heap-oob_35ca682_1474_cov_3230122439_aletrek_tga_16bit.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/mov: Check av_add_index_entry() return value
Michael Niedermayer [Mon, 23 Feb 2015 21:47:49 +0000 (22:47 +0100)]
avformat/mov: Check av_add_index_entry() return value

Fixes NULL pointer dereference
Fixes: signal_sigsegv_b060e0_3794_cov_1293954059_vc1-wmapro.ism

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoRevert "takdec: pad filter coeff buffer for DSP functions"
James Almer [Mon, 23 Feb 2015 21:22:37 +0000 (18:22 -0300)]
Revert "takdec: pad filter coeff buffer for DSP functions"

This reverts commit e0c7ba40cf0bb521430f4a808ed1f1a408093f9c.

Valgrind complains about invalid reads, which generate segfaults in some
systems.

4 years agoMerge commit 'ce52869c22738ad584995d48103ce3aa2301736b'
Michael Niedermayer [Mon, 23 Feb 2015 20:59:34 +0000 (21:59 +0100)]
Merge commit 'ce52869c22738ad584995d48103ce3aa2301736b'

* commit 'ce52869c22738ad584995d48103ce3aa2301736b':
  fate: Rename fate-dts test to fate-dca-core

Conflicts:
tests/fate/audio.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'cb4cb7b0ea12b791dde587b1acd504dbb4ec8f41'
Michael Niedermayer [Mon, 23 Feb 2015 20:49:51 +0000 (21:49 +0100)]
Merge commit 'cb4cb7b0ea12b791dde587b1acd504dbb4ec8f41'

* commit 'cb4cb7b0ea12b791dde587b1acd504dbb4ec8f41':
  qsv: Skip qsv.h compilation if qsv is not enabled

Conflicts:
libavcodec/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'cdcc370293a159c321e41af7f0eef141c62d698d'
Michael Niedermayer [Mon, 23 Feb 2015 20:39:29 +0000 (21:39 +0100)]
Merge commit 'cdcc370293a159c321e41af7f0eef141c62d698d'

* commit 'cdcc370293a159c321e41af7f0eef141c62d698d':
  rtsp: punch holes again after pause

See: 22bb5bd7a3b55c25bfef130ad89e8574dd47af1d
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '061c489895d29049a88dc6118e4b639a273b31d6'
Michael Niedermayer [Mon, 23 Feb 2015 20:29:35 +0000 (21:29 +0100)]
Merge commit '061c489895d29049a88dc6118e4b639a273b31d6'

* commit '061c489895d29049a88dc6118e4b639a273b31d6':
  eamad: check for out of bounds read

Conflicts:
libavcodec/eamad.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '161442ff2c4b0dd8a5072c6bbe6bf55303fffccf'
Michael Niedermayer [Mon, 23 Feb 2015 20:12:26 +0000 (21:12 +0100)]
Merge commit '161442ff2c4b0dd8a5072c6bbe6bf55303fffccf'

* commit '161442ff2c4b0dd8a5072c6bbe6bf55303fffccf':
  mdec: check for out of bounds read

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'fe208ca54b0d3b6bbe1c660d371bb2cc6cf40ffc'
Michael Niedermayer [Mon, 23 Feb 2015 20:01:44 +0000 (21:01 +0100)]
Merge commit 'fe208ca54b0d3b6bbe1c660d371bb2cc6cf40ffc'

* commit 'fe208ca54b0d3b6bbe1c660d371bb2cc6cf40ffc':
  rtpdec_hevc: Skip 1 byte (DOND) instead of 2 (DONL) between aggregation units

Conflicts:
libavformat/rtpdec_hevc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/snowenc: Allocate and reference coded_frame correctly
Michael Niedermayer [Mon, 23 Feb 2015 18:09:44 +0000 (19:09 +0100)]
avcodec/snowenc: Allocate and reference coded_frame correctly

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/roqvideoenc: Allocate and reference coded_frame correctly
Michael Niedermayer [Mon, 23 Feb 2015 18:05:56 +0000 (19:05 +0100)]
avcodec/roqvideoenc: Allocate and reference coded_frame correctly

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/hlsenc: Warn if a non file protocol is used
Michael Niedermayer [Sat, 21 Feb 2015 18:27:06 +0000 (19:27 +0100)]
avformat/hlsenc: Warn if a non file protocol is used

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agofate: Rename fate-dts test to fate-dca-core
Diego Biurrun [Wed, 18 Feb 2015 23:04:33 +0000 (00:04 +0100)]
fate: Rename fate-dts test to fate-dca-core

The codec is referred to as DCA in other parts of libav.

4 years agoqsv: Skip qsv.h compilation if qsv is not enabled
Diego Biurrun [Mon, 23 Feb 2015 12:43:53 +0000 (13:43 +0100)]
qsv: Skip qsv.h compilation if qsv is not enabled

4 years agoavcodec/hqx: remove superfluous log message
Paul B Mahol [Mon, 23 Feb 2015 14:57:48 +0000 (14:57 +0000)]
avcodec/hqx: remove superfluous log message

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agortsp: punch holes again after pause
Gilles Chanteperdrix [Sun, 22 Feb 2015 06:59:55 +0000 (07:59 +0100)]
rtsp: punch holes again after pause

When a client behind a NAT issues a pause command, and stay paused for a
long time, the router may stop the RTP/RTCP port redirection. Resend the
hole punching packets before each PLAY command to cause the router to
restart the port redirection in that case.

Move the existing code for sending the packets from the SETUP phase
to the PLAY phase.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoeamad: check for out of bounds read
Federico Tomassetti [Wed, 18 Feb 2015 12:11:44 +0000 (12:11 +0000)]
eamad: check for out of bounds read

Bug-Id: CID 1257500
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agomdec: check for out of bounds read
Federico Tomassetti [Wed, 18 Feb 2015 12:11:43 +0000 (12:11 +0000)]
mdec: check for out of bounds read

Bug-Id: CID 1257501
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agortpdec_hevc: Skip 1 byte (DOND) instead of 2 (DONL) between aggregation units
Martin Storsjö [Sun, 22 Feb 2015 21:25:28 +0000 (23:25 +0200)]
rtpdec_hevc: Skip 1 byte (DOND) instead of 2 (DONL) between aggregation units

Only the first aggregation unit has 2 bytes (DONL) prepended, if
such a field is in use.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoavfilter/palette{gen,use}: add Copyright
Clément Bœsch [Mon, 23 Feb 2015 13:00:13 +0000 (14:00 +0100)]
avfilter/palette{gen,use}: add Copyright

4 years agoMerge commit '35c6ce76b107225a19eb33aea38857d2405882af'
Michael Niedermayer [Mon, 23 Feb 2015 11:03:29 +0000 (12:03 +0100)]
Merge commit '35c6ce76b107225a19eb33aea38857d2405882af'

* commit '35c6ce76b107225a19eb33aea38857d2405882af':
  Canopus HQX decoder

Conflicts:
Changelog
libavcodec/avcodec.h
libavcodec/version.h
tests/fate/video.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '36a6fb989b017898041703025ef20028146675a8'
Michael Niedermayer [Mon, 23 Feb 2015 10:52:43 +0000 (11:52 +0100)]
Merge commit '36a6fb989b017898041703025ef20028146675a8'

* commit '36a6fb989b017898041703025ef20028146675a8':
  hevc_deblock: Fix compilation with nasm

See: c75fdee747179e21e3cc137b2565ba911b17f9c5
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'e570f895cdccf2535a71fec1c607751ddb94fd5a'
Michael Niedermayer [Mon, 23 Feb 2015 10:42:16 +0000 (11:42 +0100)]
Merge commit 'e570f895cdccf2535a71fec1c607751ddb94fd5a'

* commit 'e570f895cdccf2535a71fec1c607751ddb94fd5a':
  libschroedinger: Check memory allocations

Conflicts:
libavcodec/libschroedinger.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '521979e6b1e7a89751aebc285a40d6508f8af48f'
Michael Niedermayer [Mon, 23 Feb 2015 10:23:30 +0000 (11:23 +0100)]
Merge commit '521979e6b1e7a89751aebc285a40d6508f8af48f'

* commit '521979e6b1e7a89751aebc285a40d6508f8af48f':
  configure: Properly fail when libcdio/cdparanoia is not found

Conflicts:
configure

See: f514b5dff769a331ea2153c23594d9b29b667141
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'f7cc6627c01ad3f5bc6ea2d0e6f8adb3a0b490d7'
Michael Niedermayer [Mon, 23 Feb 2015 10:10:25 +0000 (11:10 +0100)]
Merge commit 'f7cc6627c01ad3f5bc6ea2d0e6f8adb3a0b490d7'

* commit 'f7cc6627c01ad3f5bc6ea2d0e6f8adb3a0b490d7':
  configure: Use pkg-config for libdc1394 discovery

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavfilter/paletteuse: add diff_mode
Clément Bœsch [Mon, 16 Feb 2015 16:40:55 +0000 (17:40 +0100)]
avfilter/paletteuse: add diff_mode

4 years agoavfilter/paletteuse: fix error dithering accuracy
Clément Bœsch [Wed, 18 Feb 2015 10:17:10 +0000 (11:17 +0100)]
avfilter/paletteuse: fix error dithering accuracy

4 years agoavcodec/a64multienc: Assert that the Packet size does not grow
Michael Niedermayer [Mon, 23 Feb 2015 00:58:11 +0000 (01:58 +0100)]
avcodec/a64multienc: Assert that the Packet size does not grow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/a64multienc: simplify frame handling code
Michael Niedermayer [Sun, 22 Feb 2015 23:55:13 +0000 (00:55 +0100)]
avcodec/a64multienc: simplify frame handling code

This also fixes a memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/a64multienc: fix use of uninitialized values in to_meta_with_crop
Andreas Cadhalpun [Sun, 22 Feb 2015 19:48:38 +0000 (20:48 +0100)]
avcodec/a64multienc: fix use of uninitialized values in to_meta_with_crop

Averaging over 2 pixels doesn't work correctly for the last pixel, because the
rest of the buffer is not initialized.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/a64multienc: initialize mc_meta_charset to zero
Andreas Cadhalpun [Sun, 22 Feb 2015 19:47:50 +0000 (20:47 +0100)]
avcodec/a64multienc: initialize mc_meta_charset to zero

This fixes the use of uninitialized values in avpriv_do_elbg.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/a64multienc: don't set incorrect packet size
Michael Niedermayer [Mon, 23 Feb 2015 00:21:30 +0000 (01:21 +0100)]
avcodec/a64multienc: don't set incorrect packet size

This fixes invalid reads of the packet buffer in av_dup_packet

Based on patch by Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/a64multienc: use av_frame_ref instead of copying the frame
Andreas Cadhalpun [Sun, 22 Feb 2015 19:43:30 +0000 (20:43 +0100)]
avcodec/a64multienc: use av_frame_ref instead of copying the frame

This fixes freeing the frame buffer twice on cleanup leading to a crash.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'a388e72d1a6b0888cc1591cb699f61a9c1089cf4'
Michael Niedermayer [Sun, 22 Feb 2015 23:29:45 +0000 (00:29 +0100)]
Merge commit 'a388e72d1a6b0888cc1591cb699f61a9c1089cf4'

* commit 'a388e72d1a6b0888cc1591cb699f61a9c1089cf4':
  rtpenc_hevc: Aggregate multiple NAL units into one RTP packet, if possible

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'e2220e734f3d01145ef9aefbd7b6ff29a89ae159'
Michael Niedermayer [Sun, 22 Feb 2015 23:13:19 +0000 (00:13 +0100)]
Merge commit 'e2220e734f3d01145ef9aefbd7b6ff29a89ae159'

* commit 'e2220e734f3d01145ef9aefbd7b6ff29a89ae159':
  rtpenc_h264: Aggregate multiple NAL units into one RTP packet, if possible

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'c99915f7c74ce1249d8633cb6fd09035b8d84db7'
Michael Niedermayer [Sun, 22 Feb 2015 22:54:11 +0000 (23:54 +0100)]
Merge commit 'c99915f7c74ce1249d8633cb6fd09035b8d84db7'

* commit 'c99915f7c74ce1249d8633cb6fd09035b8d84db7':
  rtpdec: DV depacketizer (RFC 6469)

Conflicts:
Changelog
libavformat/Makefile
libavformat/rtpdec_dv.c
libavformat/version.h

See: cbe508553ad17b277d4cb6f12f61aac4f52908b8
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoCanopus HQX decoder
Vittorio Giovara [Sun, 22 Feb 2015 18:38:31 +0000 (18:38 +0000)]
Canopus HQX decoder

Based on work by Kostya Shishkov <kostya.shishkov@gmail.com>.

4 years agohevc_deblock: Fix compilation with nasm
Carl Eugen Hoyos [Sun, 22 Feb 2015 17:46:49 +0000 (17:46 +0000)]
hevc_deblock: Fix compilation with nasm

CC: libav-stable@libav.org
Bug-Id: 795
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agolibschroedinger: Check memory allocations
Vittorio Giovara [Sun, 22 Feb 2015 19:49:06 +0000 (19:49 +0000)]
libschroedinger: Check memory allocations

4 years agoconfigure: Properly fail when libcdio/cdparanoia is not found
Vittorio Giovara [Sun, 22 Feb 2015 19:49:52 +0000 (19:49 +0000)]
configure: Properly fail when libcdio/cdparanoia is not found

4 years agoconfigure: Use pkg-config for libdc1394 discovery
Vittorio Giovara [Sun, 22 Feb 2015 20:33:24 +0000 (20:33 +0000)]
configure: Use pkg-config for libdc1394 discovery

Since not all systems need the libraw1394 dependency, let pkg-config
provide the list of libraries actually needed.

The libdc1394-2.pc file has been included since version 2 (2008-01-05),
so it should be safe to use.

4 years agotools/graph2dot: Check for av_malloc() failure
Michael Niedermayer [Sun, 22 Feb 2015 21:43:06 +0000 (22:43 +0100)]
tools/graph2dot: Check for av_malloc() failure

Fixes CID1271047

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/aacenc: Fix sample rate check
Michael Niedermayer [Sun, 22 Feb 2015 21:25:27 +0000 (22:25 +0100)]
avcodec/aacenc: Fix sample rate check

Fixes out of array read
Fixes CID1257803, CID1257797, CID1257789, CID1257786

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agortpenc_hevc: Aggregate multiple NAL units into one RTP packet, if possible
Martin Storsjö [Fri, 20 Feb 2015 19:37:50 +0000 (21:37 +0200)]
rtpenc_hevc: Aggregate multiple NAL units into one RTP packet, if possible

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agortpenc_h264: Aggregate multiple NAL units into one RTP packet, if possible
Martin Storsjö [Fri, 20 Feb 2015 19:21:27 +0000 (21:21 +0200)]
rtpenc_h264: Aggregate multiple NAL units into one RTP packet, if possible

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoavcodec/mpegvideo: Fix memleak of mvs
Michael Niedermayer [Sun, 22 Feb 2015 21:18:26 +0000 (22:18 +0100)]
avcodec/mpegvideo: Fix memleak of mvs

Fixes CID1271053

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agortpdec: DV depacketizer (RFC 6469)
Thomas Volkert [Sat, 21 Feb 2015 17:35:50 +0000 (18:35 +0100)]
rtpdec: DV depacketizer (RFC 6469)

(tested with live555 RTSP server)

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoavcodec/vorbisdec: Fix memleak, call cleanup on memory allocation failure
Michael Niedermayer [Sun, 22 Feb 2015 20:25:58 +0000 (21:25 +0100)]
avcodec/vorbisdec: Fix memleak, call cleanup on memory allocation failure

Fixes CID1258478, CID1258476, CID1258475
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/wmaenc: Check extradata allocations
Michael Niedermayer [Sun, 22 Feb 2015 20:23:39 +0000 (21:23 +0100)]
avcodec/wmaenc: Check extradata allocations

Fixes CID1257842

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agotakdec: pad filter coeff buffer for DSP functions
Christophe Gisquet [Fri, 10 May 2013 10:32:58 +0000 (11:32 +0100)]
takdec: pad filter coeff buffer for DSP functions

Currently, a part of the loop has to be handled in plain C, because of DSP
function requirements of having batches of 16 elements to process.

Instead, pad the buffer with 0 where the DSP functions are overreading.

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavfilter/buffer: Check for qp_table allocation failure
Michael Niedermayer [Sun, 22 Feb 2015 19:24:22 +0000 (20:24 +0100)]
avfilter/buffer: Check for qp_table allocation failure

Fixes CID1271048
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/movenc: Check for memory allocation failures
Michael Niedermayer [Sun, 22 Feb 2015 19:20:13 +0000 (20:20 +0100)]
avformat/movenc: Check for memory allocation failures

Fixes CID1271049
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/oggdec: Check for ost allocation failure
Michael Niedermayer [Sun, 22 Feb 2015 17:54:10 +0000 (18:54 +0100)]
avformat/oggdec: Check for ost allocation failure

Fixes CID1257798
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/exr: fix memset first arg in reverse_lut()
Paul B Mahol [Sat, 14 Feb 2015 12:22:43 +0000 (12:22 +0000)]
avcodec/exr: fix memset first arg in reverse_lut()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavformat/oggdec: Check for av_malloc() failure and forward the error code
Michael Niedermayer [Sun, 22 Feb 2015 16:52:59 +0000 (17:52 +0100)]
avformat/oggdec: Check for av_malloc() failure and forward the error code

Fixes CID1257805

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/rmenc: Check for av_malloc() failure
Michael Niedermayer [Sun, 22 Feb 2015 16:29:14 +0000 (17:29 +0100)]
avformat/rmenc: Check for av_malloc() failure

Fixes CID1257832

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agotools/trasher: Check fseek returns
Michael Niedermayer [Sun, 22 Feb 2015 15:49:56 +0000 (16:49 +0100)]
tools/trasher: Check fseek returns

Fixes CID733726

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavutil/fixed_dsp: Check for av_malloc() failure
Michael Niedermayer [Sun, 22 Feb 2015 15:26:53 +0000 (16:26 +0100)]
avutil/fixed_dsp: Check for av_malloc() failure

Fixes CID1271051

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/rtsp: punch holes again after pause
Gilles Chanteperdrix [Sun, 22 Feb 2015 06:59:55 +0000 (07:59 +0100)]
avformat/rtsp: punch holes again after pause

When a client behind a NAT issues a pause command, and stay paused for a
long time, the router may stop the RTP/RTCP port redirection. Resend the
hole punching packets after each PLAY command to cause the router to
restart the port redirection in that case.

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/libaacplus: Check for av_malloc() failure
Michael Niedermayer [Sun, 22 Feb 2015 13:00:53 +0000 (14:00 +0100)]
avcodec/libaacplus: Check for av_malloc() failure

Fixes CID1271046

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeglsenc: Check for memory allocation failures
Michael Niedermayer [Sun, 22 Feb 2015 12:43:52 +0000 (13:43 +0100)]
avcodec/jpeglsenc: Check for memory allocation failures

Fixes CID1271044

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agopostproc/postprocess: Check for av_malloc() failure
Michael Niedermayer [Sun, 22 Feb 2015 02:19:05 +0000 (03:19 +0100)]
postproc/postprocess: Check for av_malloc() failure

Fixes CID1271052

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agopostproc/postprocess: Check for av_mallocz() failure
Michael Niedermayer [Sun, 22 Feb 2015 02:11:08 +0000 (03:11 +0100)]
postproc/postprocess: Check for av_mallocz() failure

Fixes CID1271050

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agopostproc/postprocess: use av_mallocz()
Michael Niedermayer [Sun, 22 Feb 2015 02:09:47 +0000 (03:09 +0100)]
postproc/postprocess: use av_mallocz()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/libx264: Check for av_malloc() failure
Michael Niedermayer [Sun, 22 Feb 2015 01:49:33 +0000 (02:49 +0100)]
avcodec/libx264: Check for av_malloc() failure

Fixes CID1257813
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/libvpxenc: Check for av_malloc() failure
Michael Niedermayer [Sun, 22 Feb 2015 01:40:16 +0000 (02:40 +0100)]
avcodec/libvpxenc: Check for av_malloc() failure

Fixes CID1271045

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/libtheoraenc: Check for av_fast_realloc() failure
Michael Niedermayer [Sun, 22 Feb 2015 01:15:37 +0000 (02:15 +0100)]
avcodec/libtheoraenc: Check for av_fast_realloc() failure

Fixes CID1257799
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/libtheoraenc: Check for stats allocation failure
Michael Niedermayer [Sun, 22 Feb 2015 01:11:27 +0000 (02:11 +0100)]
avcodec/libtheoraenc: Check for stats allocation failure

Fixes CID1257785

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '44dc138ed29c4dfbaf57ebc774da4c75ef113ca4'
Michael Niedermayer [Sun, 22 Feb 2015 00:58:55 +0000 (01:58 +0100)]
Merge commit '44dc138ed29c4dfbaf57ebc774da4c75ef113ca4'

* commit '44dc138ed29c4dfbaf57ebc774da4c75ef113ca4':
  rtpdec_mpeg4: reassemble fragmented AAC frames

Conflicts:
libavformat/rtpdec_mpeg4.c

See: fee2cc39becb1930461dff267389717337804a4a
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'dcf969e98d3f596006a0ddaf077870408b9c09c3'
Michael Niedermayer [Sun, 22 Feb 2015 00:48:53 +0000 (01:48 +0100)]
Merge commit 'dcf969e98d3f596006a0ddaf077870408b9c09c3'

* commit 'dcf969e98d3f596006a0ddaf077870408b9c09c3':
  rtpdec_mpeg4: add more verbose error logging

Conflicts:
libavformat/rtpdec_mpeg4.c

See: fee2cc39becb1930461dff267389717337804a4a
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '96084251e57d1738fde02a2b0d37ca609d9efd71'
Michael Niedermayer [Sun, 22 Feb 2015 00:18:18 +0000 (01:18 +0100)]
Merge commit '96084251e57d1738fde02a2b0d37ca609d9efd71'

* commit '96084251e57d1738fde02a2b0d37ca609d9efd71':
  libavformat: add robust MPEG audio depacketization (RFC 5219)

Conflicts:
Changelog
libavformat/version.h

See: 22470510d1f9441e848bbe107c7963b6d492b47f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '5cbae5651d7c1ce9b0691dfbf2d474cb2b0ebb9a'
Michael Niedermayer [Sun, 22 Feb 2015 00:08:03 +0000 (01:08 +0100)]
Merge commit '5cbae5651d7c1ce9b0691dfbf2d474cb2b0ebb9a'

* commit '5cbae5651d7c1ce9b0691dfbf2d474cb2b0ebb9a':
  mpegaudio_parser: add MP3 ADU headers parser

Conflicts:
libavcodec/mpegaudio_parser.c
libavcodec/mpegaudiodecheader.c
libavcodec/version.h

See: 8ca098f4445cd12d39b2c55b0dfb8c988b7b28ce
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/rtpdec_mpeg4: reassemble fragmented AAC frames
Gilles Chanteperdrix [Fri, 13 Feb 2015 21:51:32 +0000 (22:51 +0100)]
avformat/rtpdec_mpeg4: reassemble fragmented AAC frames

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Reviewed-by: Thomas Volkert <silvo@gmx.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '5e5583efe41662294c5e1b76499ba338557f808d'
Michael Niedermayer [Sat, 21 Feb 2015 23:46:22 +0000 (00:46 +0100)]
Merge commit '5e5583efe41662294c5e1b76499ba338557f808d'

* commit '5e5583efe41662294c5e1b76499ba338557f808d':
  libavformat: add AC3 RTP depacketization (RFC 4184)

Conflicts:
Changelog
libavformat/rtpdec_ac3.c
libavformat/version.h

See: 3eec775b211c5fd00300e2042ae8f116293e5d55
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '4438d1c6ede3190d7920513272fb9dc5371648f2'
Michael Niedermayer [Sat, 21 Feb 2015 23:33:36 +0000 (00:33 +0100)]
Merge commit '4438d1c6ede3190d7920513272fb9dc5371648f2'

* commit '4438d1c6ede3190d7920513272fb9dc5371648f2':
  rtsp: parse lang attribute in SDP

Conflicts:
libavformat/rtsp.h
libavformat/version.h

See: c7ad1f562b0fe46b77a8a9987a0d3512fc8197ea
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '1ec28a66f2c853a7e4aeb21495c0b4d9478f17db'
Michael Niedermayer [Sat, 21 Feb 2015 23:21:23 +0000 (00:21 +0100)]
Merge commit '1ec28a66f2c853a7e4aeb21495c0b4d9478f17db'

* commit '1ec28a66f2c853a7e4aeb21495c0b4d9478f17db':
  rtpdec: fix issue with conversion from unsigned to signed

See: 73029abddc14c8a376ff81968fe9b1e171e4e9eb
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'ff394ca087d41941d2157e7a4e356e3ad312494e'
Michael Niedermayer [Sat, 21 Feb 2015 23:14:54 +0000 (00:14 +0100)]
Merge commit 'ff394ca087d41941d2157e7a4e356e3ad312494e'

* commit 'ff394ca087d41941d2157e7a4e356e3ad312494e':
  rtpdec_h264: Add a missing closing paren in a log message

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '12655c48049f9a52e5504bde90fe738862b0ff08'
Michael Niedermayer [Sat, 21 Feb 2015 23:04:35 +0000 (00:04 +0100)]
Merge commit '12655c48049f9a52e5504bde90fe738862b0ff08'

* commit '12655c48049f9a52e5504bde90fe738862b0ff08':
  libavresample: NEON optimized FIR audio resampling

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoAdd coverity model file
Michael Niedermayer [Thu, 19 Feb 2015 12:23:41 +0000 (13:23 +0100)]
Add coverity model file

The comments/header of the file are taken from qemu, they provide some
basic documentation
The code from the examples

Ive no means to test this except uploading to coverity for FFmpeg, so each
commit should stay simple, making it easy to revert.

Also please help making this a useful and effective file by contributing
changes/code to it and reviewing contributions.
I am happy to upload changes but i cannot really maintain this (alone) as
i cannot test changes.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agortpdec_mpeg4: reassemble fragmented AAC frames
Gilles Chanteperdrix [Fri, 13 Feb 2015 21:51:32 +0000 (22:51 +0100)]
rtpdec_mpeg4: reassemble fragmented AAC frames

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agortpdec_mpeg4: add more verbose error logging
Gilles Chanteperdrix [Fri, 20 Feb 2015 21:41:58 +0000 (23:41 +0200)]
rtpdec_mpeg4: add more verbose error logging

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agolibavformat: add robust MPEG audio depacketization (RFC 5219)
Gilles Chanteperdrix [Fri, 13 Feb 2015 21:51:33 +0000 (22:51 +0100)]
libavformat: add robust MPEG audio depacketization (RFC 5219)

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agompegaudio_parser: add MP3 ADU headers parser
Gilles Chanteperdrix [Fri, 13 Feb 2015 21:51:33 +0000 (22:51 +0100)]
mpegaudio_parser: add MP3 ADU headers parser

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agolibavformat: add AC3 RTP depacketization (RFC 4184)
Gilles Chanteperdrix [Fri, 13 Feb 2015 21:51:34 +0000 (22:51 +0100)]
libavformat: add AC3 RTP depacketization (RFC 4184)

Signed-off-by: Martin Storsjö <martin@martin.st>