ffmpeg.git
3 years agoavformat/framehash: also print channel layout as a string
James Almer [Wed, 28 Sep 2016 23:55:18 +0000 (20:55 -0300)]
avformat/framehash: also print channel layout as a string

This should be more useful for users since numerical values for channel
layout can be confusing and unintuitive.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoMAINTAINERS: Replace QSV maintainer
Michael Niedermayer [Sat, 5 Nov 2016 18:38:15 +0000 (19:38 +0100)]
MAINTAINERS: Replace QSV maintainer

Ivan has a shortage of time to take care of QSV, Mark agreed to take over.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/softfloat_ieee754: make all functions inline
James Almer [Fri, 16 Sep 2016 02:05:29 +0000 (23:05 -0300)]
avutil/softfloat_ieee754: make all functions inline

Removes "defined but not used" warnings

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agomxfdec: fix NULL pointer dereference
Andreas Cadhalpun [Fri, 4 Nov 2016 23:17:53 +0000 (00:17 +0100)]
mxfdec: fix NULL pointer dereference

Metadata streams have priv_data set to NULL.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agolzf: update pointer p after realloc
Andreas Cadhalpun [Fri, 4 Nov 2016 21:58:49 +0000 (22:58 +0100)]
lzf: update pointer p after realloc

This fixes heap-use-after-free detected by AddressSanitizer.

Reviewed-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavformat/tcp: workaround for IOS9 getaddrinfo in IPv6 only network use hardcode IPv4...
liu jc [Wed, 24 Aug 2016 10:46:41 +0000 (10:46 +0000)]
avformat/tcp: workaround for IOS9 getaddrinfo in IPv6 only network use hardcode IPv4 address can not resolve port number.

Signed-off-by: liujingchao <jcliu@outlook.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/rtpdec: Add support for 24 bit RTSP audio playback
Timur Aydin [Fri, 4 Nov 2016 22:15:44 +0000 (01:15 +0300)]
avformat/rtpdec: Add support for 24 bit RTSP audio playback

When ffplay is used to play from the RTSP URL that serves 24 bit audio
content, ffplay fails to recognize the audio codec format. The attached
patch adds support for playing 24 bit audio content over RTSP by
defining a dynamic payload handler for "L24".

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: Remove show_formats for fate-mov-zombie test
Michael Niedermayer [Sat, 5 Nov 2016 14:25:44 +0000 (15:25 +0100)]
fate: Remove show_formats for fate-mov-zombie test

This includes the absolute path

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: add zombie test
Michael Niedermayer [Sat, 5 Nov 2016 00:36:53 +0000 (01:36 +0100)]
fate: add zombie test

This test tests some odd sample with odd aspect ratio

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/nvenc.c: Use new safe dlopen code.
Matt Oliver [Sat, 29 Oct 2016 07:25:36 +0000 (18:25 +1100)]
avcodec/nvenc.c: Use new safe dlopen code.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
3 years agoavformat/avisynth.c: Use new safe dlopen code.
Matt Oliver [Mon, 31 Oct 2016 03:30:43 +0000 (14:30 +1100)]
avformat/avisynth.c: Use new safe dlopen code.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
3 years agoavutil/hwcontext_dxva.c: Use new safe dlopen code.
Matt Oliver [Sat, 29 Oct 2016 07:25:05 +0000 (18:25 +1100)]
avutil/hwcontext_dxva.c: Use new safe dlopen code.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
3 years agocompat/w32dlfcn.h: Add safe win32 dlopen/dlclose/dlsym functions.
Matt Oliver [Sat, 29 Oct 2016 13:08:41 +0000 (00:08 +1100)]
compat/w32dlfcn.h: Add safe win32 dlopen/dlclose/dlsym functions.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
3 years agoffmpeg: don't overwrite av_bsf_receive_packet return value before checking it
James Almer [Sat, 5 Nov 2016 03:04:27 +0000 (00:04 -0300)]
ffmpeg: don't overwrite av_bsf_receive_packet return value before checking it

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/rawdec: check for side data before checking its size
James Almer [Fri, 4 Nov 2016 01:34:58 +0000 (22:34 -0300)]
avcodec/rawdec: check for side data before checking its size

Fixes valgrind warnings about usage of uninitialized values.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agofate: add bsf tests for ticket 5927
James Almer [Fri, 4 Nov 2016 20:38:53 +0000 (17:38 -0300)]
fate: add bsf tests for ticket 5927

Tested-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/mux: split side data before internal auto BSF
Michael Niedermayer [Fri, 4 Nov 2016 12:43:45 +0000 (13:43 +0100)]
avformat/mux: split side data before internal auto BSF

The bitstream filters do not work with merged in side data

This leaves the input packet split if it is being split.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoRevert "avformat/mux: split side data earlier in av_write_frame and av_interleaved_wr...
James Almer [Sat, 5 Nov 2016 00:58:49 +0000 (21:58 -0300)]
Revert "avformat/mux: split side data earlier in av_write_frame and av_interleaved_write_frame"

This reverts commit fba2a8a254997e0db39a30438e96e5f3e44c669a.

The changes were right for av_write_frame() but not for av_interleaved_write_frame().
The following commit will fix this in a simpler way.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agolavf/movenc: Do not print an error when muxing gray8 rawvideo.
Carl Eugen Hoyos [Fri, 4 Nov 2016 23:41:16 +0000 (00:41 +0100)]
lavf/movenc: Do not print an error when muxing gray8 rawvideo.

This was fixed in 9a2778082121ea44d06a2f00f822ea99109c7fd8

3 years agodoc/examples: add fuzz target for individual ffmpeg APIs for in-process fuzzing with...
Thomas Garnier [Fri, 28 Oct 2016 21:02:21 +0000 (23:02 +0200)]
doc/examples: add fuzz target for individual ffmpeg APIs for in-process fuzzing with libFuzzer, AFL, and similar fuzzing engines.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/mux: split side data earlier in av_write_frame and av_interleaved_write_frame
James Almer [Fri, 4 Nov 2016 15:48:20 +0000 (12:48 -0300)]
avformat/mux: split side data earlier in av_write_frame and av_interleaved_write_frame

Similarly, merge it back before returning.

Fixes ticket #5927.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agodiracdec: check return code of get_buffer_with_edge
Andreas Cadhalpun [Fri, 4 Nov 2016 18:00:17 +0000 (19:00 +0100)]
diracdec: check return code of get_buffer_with_edge

If it fails, buffers aren't allocated, causing NULL pointer dereferencing.

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agodiracdec: clear slice_params_num_buf on allocation failure
Andreas Cadhalpun [Fri, 4 Nov 2016 18:00:01 +0000 (19:00 +0100)]
diracdec: clear slice_params_num_buf on allocation failure

Otherwise it can be non-zero next time decode_lowdelay is called, causing
slice_params_buf not to be allocated, leading to a NULL pointer dereference.

The problem was introduced in commit
dcad4677d637cd2f701917e38361fa96b8c9a418.

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agodiracdec: use correct buffer for slice_params_buf realloc
Andreas Cadhalpun [Fri, 4 Nov 2016 17:59:31 +0000 (18:59 +0100)]
diracdec: use correct buffer for slice_params_buf realloc

This fixes a double-free detected by AddressSanitizer.

The problem was introduced in commit
dcad4677d637cd2f701917e38361fa96b8c9a418.

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavcodec/hap: consistent name for codec
Tom Butterworth [Fri, 4 Nov 2016 13:57:18 +0000 (13:57 +0000)]
avcodec/hap: consistent name for codec

"Vidvox Hap", not "Vidvox Hap encoder" or "Vidvox Hap decoder". Fixes
bad name in "ffmpeg -codecs", matches other codec naming.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoqsvenc: do not re-execute encoding on all positive status codes
Anton Khirnov [Thu, 14 Jul 2016 10:52:20 +0000 (12:52 +0200)]
qsvenc: do not re-execute encoding on all positive status codes

It should only be done for DEVICE_BUSY/IN_EXECUTION

(cherry picked from commit 0956fd460681e8ccbdae19f135f0d3970bf95c2f)
Fixes ticket #5924.

3 years agolavf/mux: Add missing CR/LF to error messages.
Carl Eugen Hoyos [Fri, 4 Nov 2016 11:23:47 +0000 (12:23 +0100)]
lavf/mux: Add missing CR/LF to error messages.

3 years agoffmpeg: Warn if thousands of frames are duplicated.
Carl Eugen Hoyos [Thu, 3 Nov 2016 23:16:51 +0000 (00:16 +0100)]
ffmpeg: Warn if thousands of frames are duplicated.

Fixes ticket #5193.

3 years agoavfilter/af_firequalizer: add fft2 option
Muhammad Faiz [Thu, 3 Nov 2016 01:11:27 +0000 (08:11 +0700)]
avfilter/af_firequalizer: add fft2 option

2-channels convolution using complex fft
improves speed significantly

not sure if it should be enabled by default
so disable it by default

Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
3 years agolibx265: Add option to force IDR frames
Derek Buitenhuis [Wed, 2 Nov 2016 14:37:25 +0000 (14:37 +0000)]
libx265: Add option to force IDR frames

This is in the same the same vein as c981b1145a857c8f962c93b8eecb1c613b20ffe9.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoffmpeg: Fix bsf corrupting merged side data
Michael Niedermayer [Thu, 3 Nov 2016 13:55:56 +0000 (14:55 +0100)]
ffmpeg: Fix bsf corrupting merged side data

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/ac3dec: Check expacc
Michael Niedermayer [Thu, 3 Nov 2016 10:30:50 +0000 (11:30 +0100)]
avcodec/ac3dec: Check expacc

this is somewhat a magic number, which can be understood from reading section
"7.1.2 Exponent Strategy" of the ac3 specification, in short:
Three exponents each represented as number 0-4 are grouped together and
base-5 encoded, so the maximal correct value is 25*4 + 5*4 + 4 = 124.

Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavd/xcbgrab: do not try to create refcounted packets.
Nicolas George [Sun, 23 Oct 2016 11:57:41 +0000 (13:57 +0200)]
lavd/xcbgrab: do not try to create refcounted packets.

The framework will allocate a buffer and copy the data to it,
that takes time. But it avoids constently creating and
destroyng the shared memory segment, and that saves more time.

On my setup,
from ~200 to ~300 FPS at full screen (1920×1200),
from ~1400 to ~3300 at smaller size (640×480),
similar to legacy x11grab and confirmed by others.

Plus, shared memory segments are a scarce resource,
allocating potentially many is a bad idea.

Note: if the application were to drop all references to the
buffer before the next call to av_read_frame(), then passing
the shared memory segment as a refcounted buffer would be
even more efficient, but it is hard to guarantee, and it does
not happen with the ffmpeg command-line tool. Using a small
number of preallocated buffers and resorting to a copy when
the pool is exhausted would be a solution to get the better
of both worlds.

3 years agolavf/mov.c: Use the first sidx for tracks without sidx.
Sasi Inguva [Wed, 26 Oct 2016 18:31:03 +0000 (11:31 -0700)]
lavf/mov.c: Use the first sidx for tracks without sidx.

According to spec ISO_IEC_15444_12 "For any media stream for which no segment index is present, referred to as non‐indexed stream, the media stream associated with the first Segment Index box in the segment serves as a reference stream in a sense that it also describes the subsegments for any non‐indexed media stream."

Signed-off-by: Sasi Inguva <isasi@google.com>
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agohevc: Move hevc_decode_extradata before frame decoding
Vittorio Giovara [Wed, 2 Nov 2016 15:48:57 +0000 (11:48 -0400)]
hevc: Move hevc_decode_extradata before frame decoding

Avoids a forward-declaration in the following commit.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoffmpeg: fix width/height overrides for sub2video processing
Hendrik Leppkes [Thu, 3 Nov 2016 15:20:59 +0000 (16:20 +0100)]
ffmpeg: fix width/height overrides for sub2video processing

3 years agoMerge commit '722ec3eb35bc152ce91d0a4502eca0df1c0086d0'
Hendrik Leppkes [Thu, 3 Nov 2016 13:53:58 +0000 (14:53 +0100)]
Merge commit '722ec3eb35bc152ce91d0a4502eca0df1c0086d0'

* commit '722ec3eb35bc152ce91d0a4502eca0df1c0086d0':
  avconv: decouple configuring filtergraphs and setting input parameters

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoppc: pixblockdsp: do unaligned block accesses correctly again
Andreas Cadhalpun [Wed, 2 Nov 2016 20:28:49 +0000 (21:28 +0100)]
ppc: pixblockdsp: do unaligned block accesses correctly again

This was broken by the following Libav commit:
4c387c7 ppc: dsputil: do unaligned block accesses correctly

The following tests fail due to this:
fate-checkasm
fate-vsynth1-dnxhd-2k-hr-hq fate-vsynth1-dnxhd-edge1-hr
fate-vsynth1-dnxhd-edge2-hr fate-vsynth1-dnxhd-edge3-hr
fate-vsynth1-dnxhd-hr-sq-mov fate-vsynth1-dnxhd-hr-hq-mov
fate-vsynth2-dnxhd-2k-hr-hq fate-vsynth2-dnxhd-edge1-hr
fate-vsynth2-dnxhd-edge2-hr fate-vsynth2-dnxhd-edge3-hr
fate-vsynth2-dnxhd-hr-sq-mov fate-vsynth2-dnxhd-hr-hq-mov
fate-vsynth3-dnxhd-2k-hr-hq fate-vsynth3-dnxhd-edge1-hr
fate-vsynth3-dnxhd-edge2-hr fate-vsynth3-dnxhd-edge3-hr
fate-vsynth3-dnxhd-hr-sq-mov fate-vsynth3-dnxhd-hr-hq-mov

Fixes trac ticket #5508.

Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavformat: close parser if codec changed
Andreas Cadhalpun [Mon, 17 Oct 2016 18:26:51 +0000 (20:26 +0200)]
avformat: close parser if codec changed

The parser depends on the codec and thus must not be used with a different one.
If it is, the 'avctx->codec_id == s->parser->codec_ids[0] ...' assert in
av_parser_parse2 gets triggered.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agocrystalhd: Update high level description
Philip Langdale [Sun, 16 Oct 2016 21:14:52 +0000 (14:14 -0700)]
crystalhd: Update high level description

We don't need to document the horrible hacks that we removed.

3 years agocrystalhd: Simplify output frame handling
Philip Langdale [Sun, 16 Oct 2016 21:06:13 +0000 (14:06 -0700)]
crystalhd: Simplify output frame handling

The old code had to retain a partial frame across two calls in
the case of separate interlaced fields. Now, we know that we'll
get both fields within the same receive_frame call, and so we
don't need to manage the frame as private state any more.

3 years agocrystalhd: Loop for a frame internally where possible.
Philip Langdale [Wed, 12 Oct 2016 03:17:06 +0000 (20:17 -0700)]
crystalhd: Loop for a frame internally where possible.

It's not possible to return EAGAIN when we've passed input EOF and are
in draining mode. If do return EAGAIN, we're saying there's no way to
get any more output - which isn't true in many cases.

So let's handled these cases in an internal loop as best we can.

3 years agocrystalhd: Keep NOPTS_VALUE so we know it's not there.
Philip Langdale [Sat, 15 Oct 2016 19:44:32 +0000 (12:44 -0700)]
crystalhd: Keep NOPTS_VALUE so we know it's not there.

3 years agocrystalhd: Remove h.264 parser
Philip Langdale [Wed, 12 Oct 2016 04:00:17 +0000 (21:00 -0700)]
crystalhd: Remove h.264 parser

Now that we don't need to do ridiculous things to work out if a
frame is interlaced or not, we don't need an extra h.264 parser.

3 years agocrystalhd: We don't need the track the last picture number anymore
Philip Langdale [Sun, 16 Oct 2016 18:01:40 +0000 (11:01 -0700)]
crystalhd: We don't need the track the last picture number anymore

This was needed to detect an interlaced failure case that doesn't
happen with the new decode api.

3 years agocrystalhd: Remove trust_interlaced heuristic
Philip Langdale [Mon, 10 Oct 2016 03:54:27 +0000 (20:54 -0700)]
crystalhd: Remove trust_interlaced heuristic

It seems that without all the other 1:1 heuristics, we don't have
a fundamental problem trusting the interlaced flag on output
pictures. That's a relief.

3 years agocrystalhd: Revert back to letting hardware handle packed b-frames
Philip Langdale [Sat, 15 Oct 2016 22:50:29 +0000 (15:50 -0700)]
crystalhd: Revert back to letting hardware handle packed b-frames

I'm not sure why, but the mpeg4_unpack_bframes bsf is not
interacting well with seeking. Looking at the code, it should be
ok, with possibly one warning shown, but I see it getting stuck
for an extended period of time after a seek where a packed frame
is cached to be shown later.

So, I gave up on that and went back to making the old hardware
based path work. Turns out that it wasn't broken except that some
samples have a 6 byte drop packet which I wasn't accounting for.

Now it works again and seeks are good.

3 years agocrystalhd: Switch to new decode API and remove the insanity
Philip Langdale [Mon, 10 Oct 2016 03:46:38 +0000 (20:46 -0700)]
crystalhd: Switch to new decode API and remove the insanity

The new decode API allows for m:n decode patterns, which is what
you need to use this hardware in a sane way. There are so many
situations where 1:1 doesn't happen naturally that it's a miracle
I got it working as well as I did.

With this change, we can throw all of the crazy heuristics and
sleeps(!) out, and things work correctly.

3 years agocrystalhd: Fix up the missing first sample
Philip Langdale [Sat, 15 Oct 2016 20:30:52 +0000 (13:30 -0700)]
crystalhd: Fix up the missing first sample

Why on earth the hardware returns garbage for the first sample of
a decoded picture is anyone's guess. The simplest reasonable way
to patch it up is to copy the first sample of the second line. This
should result in the correct chroma values (because the data was
original 4:2:0 upsampled to 4:2:2) even if the luma is isn't.

3 years agoavformat/matroskaenc: use display aspect ratio for DisplayWidth and DisplayHeight...
James Almer [Sat, 22 Oct 2016 18:56:28 +0000 (15:56 -0300)]
avformat/matroskaenc: use display aspect ratio for DisplayWidth and DisplayHeight when possible

This avoids potential rounding errors and guarantees the source aspect
ratio is preserved.
Keep writing pixel values when Stereo 3D Mode is enabled and for WebM,
as the format doesn't support anything else.

This fixes ticket #5743, implementing the suggestion from ticket #5903.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: support writing Chroma Location elements
James Almer [Sat, 15 Oct 2016 14:17:37 +0000 (11:17 -0300)]
avformat/matroskaenc: support writing Chroma Location elements

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/mpegtsenc: Add option to mark stream begin as discontinuous
Michael Niedermayer [Tue, 1 Nov 2016 23:51:52 +0000 (00:51 +0100)]
avformat/mpegtsenc: Add option to mark stream begin as discontinuous

This avoids continuity check failures in concatenated streams

Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavc: Add hevc main10 profile to ffmpeg cli
Vittorio Giovara [Tue, 1 Nov 2016 23:17:37 +0000 (19:17 -0400)]
lavc: Add hevc main10 profile to ffmpeg cli

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/sunrast: Fix input buffer pointer check
Michael Niedermayer [Tue, 1 Nov 2016 18:24:49 +0000 (19:24 +0100)]
avcodec/sunrast: Fix input buffer pointer check

Fixes: out of array read
Fixes: poc.dat

Found-by: Bingchang, Liu @VARAS of IIE
Tested-by: bc L <l.bing.chang.bc@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agotests/fate/avformat: add segment.c tests
Rodger Combs [Thu, 27 Oct 2016 06:16:08 +0000 (01:16 -0500)]
tests/fate/avformat: add segment.c tests

3 years agolavf/matroskaenc: don't try to modify the header when live-streaming
Rodger Combs [Thu, 27 Oct 2016 06:10:47 +0000 (01:10 -0500)]
lavf/matroskaenc: don't try to modify the header when live-streaming

3 years agolavf/matroskaenc: fix uninitialized read
Rodger Combs [Thu, 27 Oct 2016 06:09:23 +0000 (01:09 -0500)]
lavf/matroskaenc: fix uninitialized read

3 years agolavf/segment: fix autobsf
Rodger Combs [Thu, 27 Oct 2016 03:03:02 +0000 (22:03 -0500)]
lavf/segment: fix autobsf

3 years agolavc/hapenc: Use the correct printf length modifier for size_t arguments.
Carl Eugen Hoyos [Wed, 2 Nov 2016 00:55:40 +0000 (01:55 +0100)]
lavc/hapenc: Use the correct printf length modifier for size_t arguments.

Fixes the following warning:
libavcodec/hapenc.c:122:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat]

Based on a patch by Diego Biurrun.

3 years agoRevert "img2 encoder: allow %t in filename, based on patch from Yuval Adam"
Michael Niedermayer [Tue, 1 Nov 2016 21:58:01 +0000 (22:58 +0100)]
Revert "img2 encoder: allow %t in filename, based on patch from Yuval Adam"

breaks API

Found-by: jamrial
This reverts commit 1a956c64c8eff5edecb004fc7aafd21207e6485c.

3 years agovf_colorspace: Add support for film primaries
Vittorio Giovara [Tue, 1 Nov 2016 21:36:50 +0000 (17:36 -0400)]
vf_colorspace: Add support for film primaries

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
3 years agovf_colorspace: Add support for smpte 431/432 (dci/display p3) primaries
Vittorio Giovara [Tue, 1 Nov 2016 21:38:13 +0000 (17:38 -0400)]
vf_colorspace: Add support for smpte 431/432 (dci/display p3) primaries

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
3 years agovf_colorspace: Add support for ycgco color space
Vittorio Giovara [Tue, 1 Nov 2016 21:37:23 +0000 (17:37 -0400)]
vf_colorspace: Add support for ycgco color space

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
3 years agoimg2 encoder: use more descriptive vsync names
rogerdpack [Wed, 26 Oct 2016 00:33:30 +0000 (18:33 -0600)]
img2 encoder: use more descriptive vsync names

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoimg2 encoder: allow %t in filename, based on patch from Yuval Adam
rogerdpack [Wed, 26 Oct 2016 00:33:12 +0000 (18:33 -0600)]
img2 encoder: allow %t in filename, based on patch from Yuval Adam

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/dnxhdenc: Fix alignment of edge_buf*
Michael Niedermayer [Tue, 1 Nov 2016 01:31:10 +0000 (02:31 +0100)]
avcodec/dnxhdenc: Fix alignment of edge_buf*

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: add streamcopy test for apng
Andreas Cadhalpun [Tue, 1 Nov 2016 16:36:47 +0000 (17:36 +0100)]
fate: add streamcopy test for apng

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoapngdec: use side data to pass extradata to the decoder
Andreas Cadhalpun [Tue, 1 Nov 2016 16:06:51 +0000 (17:06 +0100)]
apngdec: use side data to pass extradata to the decoder

Fixes remuxing apng streams coming from the apng demuxer.
This is a regression since 940b8908b94404a65f9f55e33efb4ccc6c81383c.

Found-by: James Almer <jamrial@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agomov: immediately return from mov_fix_index without old index entries
Andreas Cadhalpun [Tue, 1 Nov 2016 00:05:01 +0000 (01:05 +0100)]
mov: immediately return from mov_fix_index without old index entries

If there are no index entries, e_old = st->index_entries is only one
byte large, since it was created by av_realloc called with size 0.

Thus accessing e_old[0].timestamp causes a heap buffer overflow.

Reviewed-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoFix build warnings due to misleading indentation
Adriano Pallavicino [Tue, 1 Nov 2016 12:42:27 +0000 (13:42 +0100)]
Fix build warnings due to misleading indentation

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate filter metadata : add test for aphasemeter - Test a mono file (in phase) ->...
Martin Vignali [Mon, 24 Oct 2016 21:00:23 +0000 (23:00 +0200)]
fate filter metadata : add test for aphasemeter - Test a mono file (in phase) -> 1. as result - Test a out of phase 1000 Hz -> -1. as result

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavfi/mergeplanes: Fix little endian yuv formats >8 bit and <16bit.
Carl Eugen Hoyos [Sat, 29 Oct 2016 22:39:19 +0000 (00:39 +0200)]
lavfi/mergeplanes: Fix little endian yuv formats >8 bit and <16bit.

Fixes remaining cases of ticket #5916.

3 years agolavfi/mergeplanes: Fix >8 bit for big endian formats and yuv4xxp16le.
Carl Eugen Hoyos [Sat, 29 Oct 2016 22:25:12 +0000 (00:25 +0200)]
lavfi/mergeplanes: Fix >8 bit for big endian formats and yuv4xxp16le.

Fixes part of ticket #5916.

3 years agolavf/mov: Only search for invalid moov in free if compliance < STRICT.
Carl Eugen Hoyos [Tue, 1 Nov 2016 10:31:39 +0000 (11:31 +0100)]
lavf/mov: Only search for invalid moov in free if compliance < STRICT.

3 years agointerplayacm: increase bitstream buffer size by AV_INPUT_BUFFER_PADDING_SIZE
Andreas Cadhalpun [Sun, 30 Oct 2016 20:18:20 +0000 (21:18 +0100)]
interplayacm: increase bitstream buffer size by AV_INPUT_BUFFER_PADDING_SIZE

This fixes out-of-bounds reads by the bitstream reader.

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

Fixes out of array read

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

Fixes out of array read

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/rscc: Fix constant
Michael Niedermayer [Mon, 31 Oct 2016 22:01:09 +0000 (23:01 +0100)]
avcodec/rscc: Fix constant

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agovf_colorspace: Add support for iec61966-2.4 (xvYCC) transfer
Vittorio Giovara [Sun, 30 Oct 2016 07:07:44 +0000 (03:07 -0400)]
vf_colorspace: Add support for iec61966-2.4 (xvYCC) transfer

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/qsv: remove MFX_EXTBUFF_CODING_OPTION3
Kyle Schwarz [Sat, 18 Jun 2016 04:33:12 +0000 (00:33 -0400)]
avcodec/qsv: remove MFX_EXTBUFF_CODING_OPTION3

4th generation Intel CPUs don't support MFX_EXTBUFF_CODING_OPTION3.

This patch fixes bug #5324.

3 years agoqsvdec: Avoid probing with qsv decoders
Mark Thompson [Sat, 29 Oct 2016 20:26:40 +0000 (21:26 +0100)]
qsvdec: Avoid probing with qsv decoders

Set the AV_CODEC_CAP_AVOID_PROBING flag on all of the qsv decoders.

3 years agoqsv: Merge libav implementation
Mark Thompson [Fri, 21 Oct 2016 17:57:12 +0000 (18:57 +0100)]
qsv: Merge libav implementation

Merged as-at libav 398f015, and therefore includes outstanding
skipped merges 04b17ff and 130e1f1.

All features not in libav are preserved, and no options change.

3 years agompegvideo: Return correct coded frame sizes from parser
Mark Thompson [Wed, 26 Oct 2016 19:28:18 +0000 (20:28 +0100)]
mpegvideo: Return correct coded frame sizes from parser

3 years agohevc: Return stream format information from parser
Mark Thompson [Wed, 26 Oct 2016 19:27:57 +0000 (20:27 +0100)]
hevc: Return stream format information from parser

3 years agovc1: Return stream format information from parser
Mark Thompson [Sun, 23 Oct 2016 17:42:22 +0000 (18:42 +0100)]
vc1: Return stream format information from parser

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>