ffmpeg.git
3 years agolavf/mov.c: Use the correct timescale when seeking for audio.
Sasi Inguva [Mon, 24 Oct 2016 05:37:50 +0000 (22:37 -0700)]
lavf/mov.c: Use the correct timescale when seeking for audio.

Signed-off-by: Sasi Inguva <isasi@google.com>
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
3 years agoconfigure: add '-uninstalled' to uninstalled .pc files
Reynaldo H. Verdejo Pinochet [Fri, 28 Oct 2016 19:48:54 +0000 (12:48 -0700)]
configure: add '-uninstalled' to uninstalled .pc files

pkg-config(1) expects uninstalled pc files to follow the
blah-uninstalled.pc naming convention and the behavior
of the program is impacted by it. Without this fix
overriding PKGP_CONFIG_LIBDIR is required to ensure
uninstalled files are preferred (overkill), instead of
just adding pc-uninstalled/ to the utility's search path
by setting PKG_CONFIG_PATH accordingly.

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
3 years agoavcodec/rawdec: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 14:12:12 +0000 (15:12 +0100)]
avcodec/rawdec: Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/rscc: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 14:12:12 +0000 (15:12 +0100)]
avcodec/rscc: Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/msvideo1: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 14:12:12 +0000 (15:12 +0100)]
avcodec/msvideo1: Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/qpeg: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 14:12:12 +0000 (15:12 +0100)]
avcodec/qpeg:  Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/qtrle: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 14:12:12 +0000 (15:12 +0100)]
avcodec/qtrle:  Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/msrle: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 14:12:12 +0000 (15:12 +0100)]
avcodec/msrle:  Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/cuvid: Don't claim to decode h.263 (it doesn't)
Philip Langdale [Sun, 30 Oct 2016 17:30:27 +0000 (10:30 -0700)]
avcodec/cuvid: Don't claim to decode h.263 (it doesn't)

Turns out cuvid doesn't support h.263.

3 years agointerplayacm: validate number of channels
Andreas Cadhalpun [Sun, 30 Oct 2016 20:41:11 +0000 (21:41 +0100)]
interplayacm: validate number of channels

The number of channels is used as divisor in decode_frame, so it must
not be zero to avoid SIGFPE crashes.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agointerplayacm: check for too large b
Andreas Cadhalpun [Sun, 30 Oct 2016 19:47:22 +0000 (20:47 +0100)]
interplayacm: check for too large b

This fixes out-of-bounds reads.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavcodec/kmvc: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 14:12:12 +0000 (15:12 +0100)]
avcodec/kmvc:  Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/idcinvideo: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 14:12:12 +0000 (15:12 +0100)]
avcodec/idcinvideo: Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoopenssl: Allow newer TLS versions than TLSv1
Mark Thompson [Fri, 28 Oct 2016 18:50:27 +0000 (19:50 +0100)]
openssl: Allow newer TLS versions than TLSv1

The use of TLSv1_*_method() disallows newer protocol versions; instead
use SSLv23_*_method() and then explicitly disable the deprecated
protocol versions which should not be supported.

Fixes ticket #5915.

3 years agoavcodec/cinepak: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 12:47:38 +0000 (13:47 +0100)]
avcodec/cinepak: Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/8bps: Check side data size before use
Michael Niedermayer [Sun, 30 Oct 2016 12:44:52 +0000 (13:44 +0100)]
avcodec/8bps: Check side data size before use

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc: fix spelling errors
Andreas Cadhalpun [Sat, 29 Oct 2016 14:55:14 +0000 (16:55 +0200)]
doc: fix spelling errors

Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoconfigure: add missing fork() dependency to http_multiclient example
James Almer [Sat, 29 Oct 2016 17:45:22 +0000 (14:45 -0300)]
configure: add missing fork() dependency to http_multiclient example

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter/avf_showcqt: add bar_t option
Muhammad Faiz [Fri, 28 Oct 2016 05:55:04 +0000 (12:55 +0700)]
avfilter/avf_showcqt: add bar_t option

custom bargraph transparency

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
3 years agocrystalhd: Reorder mspeg4 decoder after software decoders
Philip Langdale [Fri, 28 Oct 2016 01:39:49 +0000 (18:39 -0700)]
crystalhd: Reorder mspeg4 decoder after software decoders

This avoids it getting picked by default, which is generally
undesirable and can break test runs.

3 years agoconfigure: make sure LTO does not optimize out the test functions
Andreas Cadhalpun [Tue, 25 Oct 2016 17:09:46 +0000 (19:09 +0200)]
configure: make sure LTO does not optimize out the test functions

Fixes trac ticket #5909

Bud-Id: https://bugs.gentoo.org/show_bug.cgi?id=598054
Acked-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agofate: add apng encoding/muxing test
Andreas Cadhalpun [Thu, 27 Oct 2016 23:38:51 +0000 (01:38 +0200)]
fate: add apng encoding/muxing test

Also test the fallback to png creation for a single frame.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavformat/flvdec: Fix regression loosing streams
Michael Niedermayer [Fri, 28 Oct 2016 10:18:35 +0000 (12:18 +0200)]
avformat/flvdec: Fix regression loosing streams

Fixes: unknown_video.flv

Found-by: Thierry Foucu <tfoucu@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoapng: use side data to pass extradata to muxer
Andreas Cadhalpun [Thu, 27 Oct 2016 20:34:48 +0000 (22:34 +0200)]
apng: use side data to pass extradata to muxer

This fixes creating apng files, which is broken since commit
5ef19590802f000299e418143fc2301e3f43affe.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavisynth: fix Planar RGB output
Stephen Hutchinson [Wed, 31 Aug 2016 00:26:08 +0000 (20:26 -0400)]
avisynth: fix Planar RGB output

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavfi/vf_overlay: support NV12 and NV21
Rodger Combs [Tue, 25 Oct 2016 06:28:43 +0000 (01:28 -0500)]
lavfi/vf_overlay: support NV12 and NV21

Tested-by: Michael on x86-32/64 linux, mingw, mips/arm qemu linux
3 years agoavcodec: remove missing incompatible_libav_abi references
James Almer [Wed, 26 Oct 2016 20:36:12 +0000 (17:36 -0300)]
avcodec: remove missing incompatible_libav_abi references

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoconfigure: remove missing incompatible_libav_abi references
James Almer [Wed, 26 Oct 2016 20:36:07 +0000 (17:36 -0300)]
configure: remove missing incompatible_libav_abi references

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: fix cue relative position values when CRC32 is enabled
James Almer [Tue, 25 Oct 2016 15:12:03 +0000 (12:12 -0300)]
avformat/matroskaenc: fix cue relative position values when CRC32 is enabled

The dynamic buffer does not contain the CRC32 element so calls to avio_tell()
don't take it into account. This resulted in CueRelativePosition values being
six bytes short.
This is a regression since 6724525a1576ca334d2ffdc085620bb44aea7394

Instead of adding yet another custom check for CRC32 to fix a size or an offset,
remove the existing ones and reserve the six bytes in the dynamic buffer.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoRELEASE: Update for past 3.2 branch
Michael Niedermayer [Wed, 26 Oct 2016 18:51:20 +0000 (20:51 +0200)]
RELEASE: Update for past 3.2 branch

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoChangelog: Add back next marker n3.3-dev
Michael Niedermayer [Wed, 26 Oct 2016 18:50:19 +0000 (20:50 +0200)]
Changelog: Add back next marker

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoBump minor versions after 3.2 branchpoint to seperate release
Michael Niedermayer [Wed, 26 Oct 2016 18:49:24 +0000 (20:49 +0200)]
Bump minor versions after 3.2 branchpoint to seperate release

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoChangelog: Add 3.2
Michael Niedermayer [Wed, 26 Oct 2016 18:46:53 +0000 (20:46 +0200)]
Changelog: Add 3.2

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/APIchanges: add 3.2 Cut marker
Michael Niedermayer [Wed, 26 Oct 2016 18:43:43 +0000 (20:43 +0200)]
doc/APIchanges: add 3.2 Cut marker

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoBump minor versions for 3.2
Michael Niedermayer [Wed, 26 Oct 2016 18:42:27 +0000 (20:42 +0200)]
Bump minor versions for 3.2

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoRevert "avformat/utils: Discard huge timestamps which would cause overflows if used...
Michael Niedermayer [Wed, 26 Oct 2016 18:31:04 +0000 (20:31 +0200)]
Revert "avformat/utils: Discard huge timestamps which would cause overflows if used in basic computations"

Some people seem to oppose this the patch seems to have been missed for a month on the ML
lets restart the discussion and solve this after the release

This reverts commit e936c8d176efd1a0a41e22df24564b1178c79ea9.

3 years agoavcodec/dvdsubdec: Fix off by 1 error
Michael Niedermayer [Tue, 25 Oct 2016 22:11:52 +0000 (00:11 +0200)]
avcodec/dvdsubdec: Fix off by 1 error

Fixes out of array read

Found-by: Thomas Garnier using libFuzzer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/utils: Discard huge timestamps which would cause overflows if used in basic...
Michael Niedermayer [Sun, 25 Sep 2016 20:21:53 +0000 (22:21 +0200)]
avformat/utils: Discard huge timestamps which would cause overflows if used in basic computations

Allowing larger timestamps makes it impossible to calculate basic things like the
difference of 2 timestamps or their sum without checking each individual computation for
overflow.
This should avoid a significant number of overflow checks

Fixes Ticket5136

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/isom: Fix old API regression with exporting max bitrate
Michael Niedermayer [Mon, 10 Oct 2016 00:06:12 +0000 (02:06 +0200)]
avformat/isom: Fix old API regression with exporting max bitrate

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/patchwork: Document the patchwork states
Michael Niedermayer [Sat, 22 Oct 2016 11:37:57 +0000 (13:37 +0200)]
doc/patchwork: Document the patchwork states

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavu: remove comma at final enumeration items to fix pedantic warnings
Michael Behrisch [Thu, 20 Oct 2016 06:48:25 +0000 (08:48 +0200)]
lavu: remove comma at final enumeration items to fix pedantic warnings

3 years agoswresample/rematrix: Fix float part of swr_set_matrix()
Vodyannikov Aleksandr [Thu, 20 Oct 2016 03:57:35 +0000 (06:57 +0300)]
swresample/rematrix: Fix float part of swr_set_matrix()

Fixes Ticket #5897.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoconfigure: Remove --enable-incompatible-libav-abi from the help output
Michael Niedermayer [Wed, 26 Oct 2016 17:07:01 +0000 (19:07 +0200)]
configure: Remove --enable-incompatible-libav-abi from the help output

As it does not work anymore since 655b6dcb34b25d591e15ede17673ea6cb8074711

Found-by: carl
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/dvdsubdec: Fix buf_size check
Michael Niedermayer [Wed, 26 Oct 2016 14:29:57 +0000 (16:29 +0200)]
avcodec/dvdsubdec: Fix buf_size check

Fixes out of array access

Found-by: Thomas Garnier using libFuzzer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/APIchanges: Fill in some missing things
Michael Niedermayer [Wed, 26 Oct 2016 00:57:51 +0000 (02:57 +0200)]
doc/APIchanges: Fill in some missing things

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/flvdec: init AVPacket::pos to FLVTAG offset
Suman- [Tue, 18 Oct 2016 22:13:23 +0000 (15:13 -0700)]
lavf/flvdec: init AVPacket::pos to FLVTAG offset

Current code doesn't initialize AVPacket::pos. Made it point to FLVTAG so flv_read_packet can decode from pos

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: Add MXF D10/DNXHD/DV25 probe tests
Tobias Rapp [Tue, 25 Oct 2016 08:06:15 +0000 (10:06 +0200)]
fate: Add MXF D10/DNXHD/DV25 probe tests

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/scale_npp: fix passthrough mode
Yogender Gupta [Mon, 24 Oct 2016 12:32:01 +0000 (18:02 +0530)]
avfilter/scale_npp: fix passthrough mode

Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavc/utvideoenc: Set bits_per_coded_sample for rgba.
Carl Eugen Hoyos [Tue, 25 Oct 2016 11:44:08 +0000 (13:44 +0200)]
lavc/utvideoenc: Set bits_per_coded_sample for rgba.

Allows to write correct value for biBitCount into BITMAPINFOHEADER.
Before, ff_put_bmp_header() always wrote "24" as biBitCount
for utvideo because bits_per_coded_sample was never set by the
encoder.

3 years agoavcodec/interplayvideo: Check side data size before use
Michael Niedermayer [Tue, 25 Oct 2016 01:51:17 +0000 (03:51 +0200)]
avcodec/interplayvideo: Check side data size before use

Fixes out of array read

Found-by: Thomas Garnier using libFuzzer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/ffv1enc: Fix storing RGB48 without explicitly set level
Michael Niedermayer [Mon, 24 Oct 2016 23:15:56 +0000 (01:15 +0200)]
avcodec/ffv1enc: Fix storing RGB48 without explicitly set level

the bps value is only stored with level >= 1, using rgb48 with level 0 requires the
user app to keep track of the bps by external means, which does not always happen
also we force level >= 1 for other 16bps formats, so this is consistent.

Found-by: Jerome Martinez <jerome@mediaarea.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agovf_colorspace: Add support for iec61966-2.1 (sRGB) transfer
Vittorio Giovara [Tue, 18 Oct 2016 19:17:26 +0000 (15:17 -0400)]
vf_colorspace: Add support for iec61966-2.1 (sRGB) transfer

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
3 years agovf_colorspace: don't spam console with warnings if range is unspecified.
Ronald S. Bultje [Mon, 24 Oct 2016 20:03:16 +0000 (16:03 -0400)]
vf_colorspace: don't spam console with warnings if range is unspecified.

3 years agovp9: change order of operations in adapt_prob().
Ronald S. Bultje [Fri, 14 Oct 2016 17:01:27 +0000 (13:01 -0400)]
vp9: change order of operations in adapt_prob().

This is intended to workaround bug "665 Integer Divide Instruction May
Cause Unpredictable Behavior" on some early AMD CPUs, which causes a
div-by-zero in this codepath, such as reported in Mozilla bug #1293996.

Note that this isn't guaranteed to fix the bug, since a compiler is free
to reorder instructions that don't depend on each other. However, it
appears to fix the bug in Firefox, and a similar patch was applied to
libvpx also (see Chrome bug #599899).

3 years agolavf/mov: reindent
Rodger Combs [Fri, 8 Jan 2016 01:04:00 +0000 (19:04 -0600)]
lavf/mov: reindent

Reviewed-By: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/mov: improve `tref/chap` chapter handling
Rodger Combs [Thu, 7 Jan 2016 23:14:08 +0000 (17:14 -0600)]
lavf/mov: improve `tref/chap` chapter handling

3 parts:
- Supports multiple chapter streams
- Exports regular text chapter streams as opaque data. This prevents consumers
  from showing chapters as if they were regular subtitle streams.
- Exports video chapter streams as thumbnails, and provides the first one as
  an attached_pic.

3 years agolavf: add AV_DISPOSITION_TIMED_THUMBNAILS
Rodger Combs [Mon, 24 Oct 2016 10:47:05 +0000 (05:47 -0500)]
lavf: add AV_DISPOSITION_TIMED_THUMBNAILS

Reviewed-By: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate/hevc: add automatic bsf test
Rodger Combs [Thu, 28 Apr 2016 22:00:43 +0000 (17:00 -0500)]
fate/hevc: add automatic bsf test

3 years agofate/aac: add automatic bsf test
Rodger Combs [Fri, 15 Apr 2016 08:18:01 +0000 (03:18 -0500)]
fate/aac: add automatic bsf test

3 years agofate/h264: make mp4toannexb test use auto-BSF
Rodger Combs [Fri, 15 Apr 2016 08:01:46 +0000 (03:01 -0500)]
fate/h264: make mp4toannexb test use auto-BSF

3 years agolavf/rawenc: add automatic bitstream filtering for H264+HEVC
Rodger Combs [Sat, 10 Sep 2016 04:27:54 +0000 (23:27 -0500)]
lavf/rawenc: add automatic bitstream filtering for H264+HEVC

3 years agolavf/movenc+dashenc: add automatic bitstream filtering
Rodger Combs [Fri, 8 Apr 2016 00:36:39 +0000 (19:36 -0500)]
lavf/movenc+dashenc: add automatic bitstream filtering

This is disabled by default when the empty_moov flag is enabled

3 years agolavf/dashenc: add deinit function
Rodger Combs [Fri, 8 Apr 2016 00:36:15 +0000 (19:36 -0500)]
lavf/dashenc: add deinit function

3 years agolavf/movenc: add deinit function
Rodger Combs [Fri, 8 Apr 2016 00:24:04 +0000 (19:24 -0500)]
lavf/movenc: add deinit function

3 years agolavf/segment: fix writing separate header with auto BSF
Rodger Combs [Fri, 8 Apr 2016 00:18:45 +0000 (19:18 -0500)]
lavf/segment: fix writing separate header with auto BSF

3 years agolavf/segment: add deinit function
Rodger Combs [Fri, 8 Apr 2016 00:18:19 +0000 (19:18 -0500)]
lavf/segment: add deinit function

3 years agolavf/mux: add avformat_init_output
Rodger Combs [Sat, 25 Jun 2016 03:02:50 +0000 (22:02 -0500)]
lavf/mux: add avformat_init_output

This allows a consumer to run the muxer's init function without actually
writing the header, which is useful in chained muxers that support
automatic bitstream filtering.

3 years agoMAINTAINERS: add myself for audiotoolbox
Rodger Combs [Mon, 24 Oct 2016 06:47:52 +0000 (01:47 -0500)]
MAINTAINERS: add myself for audiotoolbox

3 years agoffprobe: report field order for video streams
Rodger Combs [Tue, 4 Oct 2016 04:49:09 +0000 (23:49 -0500)]
ffprobe: report field order for video streams

3 years agolavc/utils: avcodec_string: dump field order when known
Rodger Combs [Tue, 4 Oct 2016 02:46:53 +0000 (21:46 -0500)]
lavc/utils: avcodec_string: dump field order when known

3 years agolavc/h264_parser: export field order in more cases
Rodger Combs [Tue, 4 Oct 2016 02:45:56 +0000 (21:45 -0500)]
lavc/h264_parser: export field order in more cases

3 years agolavc/parser: export field order if not already set
Rodger Combs [Tue, 20 Sep 2016 10:57:39 +0000 (05:57 -0500)]
lavc/parser: export field order if not already set

Some codecs set this in the parser, but not the decoder

3 years agolavfi: remove 2 unused lavc includes
Clément Bœsch [Sun, 23 Oct 2016 18:19:28 +0000 (20:19 +0200)]
lavfi: remove 2 unused lavc includes

3 years agoavutil/x86/emms: Document the emms_c() vs alloc/free relation.
Michael Niedermayer [Sun, 23 Oct 2016 02:46:57 +0000 (04:46 +0200)]
avutil/x86/emms: Document the emms_c() vs alloc/free relation.

Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofaq: use relative links to own documentation
Andreas Cadhalpun [Sat, 22 Oct 2016 18:12:30 +0000 (20:12 +0200)]
faq: use relative links to own documentation

This way locally installed documentation refers to itself instead of the
website.

Bud-Id: https://bugs.debian.org/841501
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavcodec/mips: loongson optimize mmi load and store operators
Zhou Xiaoyong [Mon, 10 Oct 2016 08:09:12 +0000 (16:09 +0800)]
avcodec/mips: loongson optimize mmi load and store operators

1.MMI_ load/store macros are defined in libavutil/mips/mmiutils.h
2.Replace some unnecessary unaligned access with aligned operator
3.The MMI_ load/store is compatible with cpu loongson2e/2f which not support instructions start with gs

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/mips: loongson add mmi utils header file
Zhou Xiaoyong [Mon, 10 Oct 2016 08:07:59 +0000 (16:07 +0800)]
avutil/mips: loongson add mmi utils header file

1.mmiutils.h defined MMI_ load/store macros for loongson2e/2f/3a
2.mmiutils.h defined some mmi assembly macors

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/mpegts: add missed fixes to scte35 section callback
Carlos Fernandez [Sat, 22 Oct 2016 10:03:32 +0000 (12:03 +0200)]
lavf/mpegts: add missed fixes to scte35 section callback

They somehow got lost along the patch versions.

Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoavcodec/cuvid: Allow reinitialization of decoder
Philip Langdale [Sat, 22 Oct 2016 21:31:41 +0000 (14:31 -0700)]
avcodec/cuvid: Allow reinitialization of decoder

In practice, this works fine.

3 years agoavformat/matroskaenc: write DisplayWidth and DisplayHeight elements only if they...
James Almer [Mon, 17 Oct 2016 17:17:35 +0000 (14:17 -0300)]
avformat/matroskaenc: write DisplayWidth and DisplayHeight elements only if they differ from PixelWidth and PixelHeight

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agompegts: handle AVMEDIA_TYPE_UNKNOWN correctly
Andreas Cadhalpun [Fri, 21 Oct 2016 23:18:38 +0000 (01:18 +0200)]
mpegts: handle AVMEDIA_TYPE_UNKNOWN correctly

It is negative, so can't be used for left shifting.

This fixes ubsan runtime error: shift exponent -1 is negative

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavutil/avassert: Add av_assertX_fpu()
Michael Niedermayer [Fri, 21 Oct 2016 10:50:03 +0000 (12:50 +0200)]
avutil/avassert: Add av_assertX_fpu()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/snowenc: Clear MMX state after edge drawing and picture encode
Michael Niedermayer [Fri, 21 Oct 2016 13:10:48 +0000 (15:10 +0200)]
avcodec/snowenc: Clear MMX state after edge drawing and picture encode

Fixes undefined behavior from calling libc allocation with unclean FPU state.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mpegvideo_enc: Add missing emms_c() to clear MMX state after SIMD use
Michael Niedermayer [Fri, 21 Oct 2016 13:01:36 +0000 (15:01 +0200)]
avcodec/mpegvideo_enc: Add missing emms_c() to clear MMX state after SIMD use

Fixes undefined behavior due to calling libc allocation with unclean FPU state

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/utils: Move emms_c() before memory allocation functions in avcodec_encode_vid...
Michael Niedermayer [Fri, 21 Oct 2016 12:47:34 +0000 (14:47 +0200)]
avcodec/utils: Move emms_c() before memory allocation functions in avcodec_encode_video2()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/cavsdec: Clear MMX state after MB decode loop
Michael Niedermayer [Fri, 21 Oct 2016 12:38:52 +0000 (14:38 +0200)]
avcodec/cavsdec: Clear MMX state after MB decode loop

The MMX state must be cleared between using MMX and using memory allocation
thats basically the only location between the 2

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/svq1enc: Clear MMX state after svq1_encode_plane()
Michael Niedermayer [Fri, 21 Oct 2016 12:33:42 +0000 (14:33 +0200)]
avcodec/svq1enc: Clear MMX state after svq1_encode_plane()

svq1_encode_plane() uses SIMD and we call libc memory allocation functions after it

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/rtpdec_g726: Map mime type G726 to g726le.
Carl Eugen Hoyos [Sat, 22 Oct 2016 01:53:38 +0000 (03:53 +0200)]
lavf/rtpdec_g726: Map mime type G726 to g726le.

Add new mime types AAL2-G726 for g726 as suggested in rfc 3551.

This patch will break interaction with applications that incorrectly
use big-endian G.726 with mime type G726 but we know of at least one
device (DVTel camera) that correctly implements the rfc, so do the same.

Fixes ticket #5890.

3 years agolavc/libvpxenc: fix -auto-alt-ref option type
Kagami Hiiragi [Thu, 20 Oct 2016 15:31:38 +0000 (18:31 +0300)]
lavc/libvpxenc: fix -auto-alt-ref option type

vp9_cx_iface actually allows values in range [0..2].
This fixes ticket #5894.

Signed-off-by: Kagami Hiiragi <kagami@genshiken.org>
Signed-off-by: James Zern <jzern@google.com>
3 years agodoc: fix spelling errors
Andreas Cadhalpun [Thu, 13 Oct 2016 21:08:01 +0000 (23:08 +0200)]
doc: fix spelling errors

Thanks to Mathieu Malaterre <malat@debian.org> for reporting the
Que/Queue typo. (https://bugs.debian.org/839542)

Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agolavf/mpegts: SCTE-35 extraction from mpegts
Carlos Fernandez [Wed, 19 Oct 2016 00:36:28 +0000 (17:36 -0700)]
lavf/mpegts: SCTE-35 extraction from mpegts

Reviewed-by: Marton Balint <cus@passwd.hu>
Acked-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Carlos Fernandez <carlos@ccextractor.org>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agolavc: add SCTE-35 CUI codec ID
Carlos Fernandez [Wed, 19 Oct 2016 00:36:27 +0000 (17:36 -0700)]
lavc: add SCTE-35 CUI codec ID

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Carlos Fernandez <carlos@ccextractor.org>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agolavd/decklink_dec: fix indentation
Marton Balint [Thu, 13 Oct 2016 21:58:53 +0000 (23:58 +0200)]
lavd/decklink_dec: fix indentation

Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agolavd/decklink_dec: add option to disable drawing bars on signal loss
Marton Balint [Thu, 13 Oct 2016 21:56:45 +0000 (23:56 +0200)]
lavd/decklink_dec: add option to disable drawing bars on signal loss

Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoavformat/mxfdec: Check size to avoid integer overflow in mxf_read_utf16_string()
Michael Niedermayer [Fri, 21 Oct 2016 17:45:21 +0000 (19:45 +0200)]
avformat/mxfdec: Check size to avoid integer overflow in mxf_read_utf16_string()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/mxfdec: Fix mixed declaration and code
Michael Niedermayer [Fri, 21 Oct 2016 17:34:05 +0000 (19:34 +0200)]
avformat/mxfdec: Fix mixed declaration and code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agompeg12dec: unref discarded picture from extradata
Andreas Cadhalpun [Thu, 20 Oct 2016 20:51:55 +0000 (22:51 +0200)]
mpeg12dec: unref discarded picture from extradata

Otherwise another frame gets referenced into picture, triggering an assert
(from commit 13aae8) in av_frame_ref.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agocavsdec: unref frame before referencing again
Andreas Cadhalpun [Thu, 20 Oct 2016 20:14:22 +0000 (22:14 +0200)]
cavsdec: unref frame before referencing again

This fixes asserts (from commit 13aae8) in av_frame_ref and
av_frame_move_ref.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agodcstr: fix division by zero
Andreas Cadhalpun [Thu, 20 Oct 2016 18:13:54 +0000 (20:13 +0200)]
dcstr: fix division by zero

Also check for possible overflows.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoaiff: check block_align in aiff_read_packet
Andreas Cadhalpun [Thu, 20 Oct 2016 18:08:15 +0000 (20:08 +0200)]
aiff: check block_align in aiff_read_packet

It can be unset in avcodec_parameters_from_context and a value of 0
causes SIGFPE crashes.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>