ffmpeg.git
4 years agoMerge commit 'f966498e433fead2f5e6b5b66fad2ac062146d22'
Clément Bœsch [Wed, 27 Jul 2016 15:28:00 +0000 (17:28 +0200)]
Merge commit 'f966498e433fead2f5e6b5b66fad2ac062146d22'

* commit 'f966498e433fead2f5e6b5b66fad2ac062146d22':
  h264: decode the poc values from the slice header into the per-slice context

Merged-by: Clément Bœsch <u@pkh.me>
4 years agolavc/h264_slice: adjust a few line breaks to reduce diff with Libav
Clément Bœsch [Wed, 27 Jul 2016 15:24:48 +0000 (17:24 +0200)]
lavc/h264_slice: adjust a few line breaks to reduce diff with Libav

4 years agoMerge commit '54dd9b1cdd9e54f1ee39ae25af0324f8aba2831b'
Clément Bœsch [Wed, 27 Jul 2016 14:11:02 +0000 (16:11 +0200)]
Merge commit '54dd9b1cdd9e54f1ee39ae25af0324f8aba2831b'

* commit '54dd9b1cdd9e54f1ee39ae25af0324f8aba2831b':
  h264: set mb_aff_frame in frame_start()
  h264: move the block starting a new field out of slice_header_parse()

Both commits are merged at the same time in order to prevent a
regression with Ticket #4440 (see 38660128).

Merged-by: Clément Bœsch <u@pkh.me>
4 years agolavc/ffjni: replace ff_jni_{attach,detach} with ff_jni_get_env
Matthieu Bouron [Fri, 1 Jul 2016 07:59:13 +0000 (09:59 +0200)]
lavc/ffjni: replace ff_jni_{attach,detach} with ff_jni_get_env

If a JNI environment is not already attached to the thread where the
MediaCodec calls are made the current implementation will attach /
detach an environment for each MediaCodec call wasting some CPU time.

ff_jni_get_env replaces ff_jni_{attach,detach} by permanently attaching
an environment (if it is not already the case) to the current thread.
The environment will be automatically detached at the thread destruction
using a pthread_key callback.

Saves around 5% of CPU time (out of 20%) while decoding a stream with
MediaCodec.

4 years agolibopenh264: Support building with the 1.6 release
Martin Storsjö [Fri, 8 Jul 2016 20:21:41 +0000 (23:21 +0300)]
libopenh264: Support building with the 1.6 release

This fixes trac issue #5417.

This is cherry-picked from libav commit
d825b1a5306576dcd0553b7d0d24a3a46ad92864.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoAdd an OpenH264 decoder wrapper
Martin Storsjö [Thu, 23 Jun 2016 21:58:17 +0000 (00:58 +0300)]
Add an OpenH264 decoder wrapper

This is cherrypicked from libav, from commits
82b7525173f20702a8cbc26ebedbf4b69b8fecec and
d0b1e6049b06eeeeca146ece4d2f199c5dba1565.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agocheckasm/vp9dsp: use declare_func_emms in check_loopfilter
James Almer [Wed, 27 Jul 2016 01:16:21 +0000 (22:16 -0300)]
checkasm/vp9dsp: use declare_func_emms in check_loopfilter

Fixes checkasm failures on mmxext functions

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoffprobe.xsd: add missing timecode attribute to frameSideDataType
dericed [Tue, 7 Jun 2016 23:53:40 +0000 (19:53 -0400)]
ffprobe.xsd: add missing timecode attribute to frameSideDataType

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavdev/jack: remove duplicated dispatch macros
Josh de Kock [Fri, 22 Jul 2016 15:09:06 +0000 (16:09 +0100)]
avdev/jack: remove duplicated dispatch macros

The macros were moved to compat/dispatch_semaphore/semaphore.h after a libav merge, and were never removed from jack.c

4 years agovp9: add mxext versions of the single-block (w=8,npx=8) h/v loopfilters.
Ronald S. Bultje [Tue, 19 Jul 2016 19:37:46 +0000 (15:37 -0400)]
vp9: add mxext versions of the single-block (w=8,npx=8) h/v loopfilters.

Each takes about 0.1% of runtime in my profiles, and they didn't have
any SIMD yet so far (we only had simd for npx=16 double-block versions).

4 years agovp9: add mxext versions of the single-block (w=4,npx=8) h/v loopfilters.
Ronald S. Bultje [Tue, 19 Jul 2016 16:06:32 +0000 (12:06 -0400)]
vp9: add mxext versions of the single-block (w=4,npx=8) h/v loopfilters.

Each takes about 0.5% of runtime in my profiles, and they didn't have
any SIMD yet so far (we only had simd for npx=16 double-block versions).

4 years agovp9: add 32x32 idct AVX2 implementation.
Ronald S. Bultje [Wed, 13 Jul 2016 16:37:21 +0000 (12:37 -0400)]
vp9: add 32x32 idct AVX2 implementation.

About 1.8x speedup compared to AVX version for full IDCT. Other
sub-IDCT scenarios also see speedups. Full --bench output for
idct_32x32_add_{bpp}_${subidct}_${opt} (50k cycles):

nop: 16.5
vp9_inv_dct_dct_32x32_add_8_1_c: 2284.4
vp9_inv_dct_dct_32x32_add_8_1_sse2: 145.0
vp9_inv_dct_dct_32x32_add_8_1_ssse3: 137.4
vp9_inv_dct_dct_32x32_add_8_1_avx: 137.1
vp9_inv_dct_dct_32x32_add_8_1_avx2: 73.2
vp9_inv_dct_dct_32x32_add_8_2_c: 14680.8
vp9_inv_dct_dct_32x32_add_8_2_sse2: 2617.2
vp9_inv_dct_dct_32x32_add_8_2_ssse3: 982.9
vp9_inv_dct_dct_32x32_add_8_2_avx: 958.5
vp9_inv_dct_dct_32x32_add_8_2_avx2: 704.2
vp9_inv_dct_dct_32x32_add_8_4_c: 14443.1
vp9_inv_dct_dct_32x32_add_8_4_sse2: 2717.1
vp9_inv_dct_dct_32x32_add_8_4_ssse3: 965.7
vp9_inv_dct_dct_32x32_add_8_4_avx: 1000.7
vp9_inv_dct_dct_32x32_add_8_4_avx2: 717.1
vp9_inv_dct_dct_32x32_add_8_8_c: 14436.4
vp9_inv_dct_dct_32x32_add_8_8_sse2: 2671.8
vp9_inv_dct_dct_32x32_add_8_8_ssse3: 1038.5
vp9_inv_dct_dct_32x32_add_8_8_avx: 983.0
vp9_inv_dct_dct_32x32_add_8_8_avx2: 729.4
vp9_inv_dct_dct_32x32_add_8_16_c: 14614.7
vp9_inv_dct_dct_32x32_add_8_16_sse2: 2701.7
vp9_inv_dct_dct_32x32_add_8_16_ssse3: 1334.4
vp9_inv_dct_dct_32x32_add_8_16_avx: 1276.7
vp9_inv_dct_dct_32x32_add_8_16_avx2: 719.5
vp9_inv_dct_dct_32x32_add_8_32_c: 14363.6
vp9_inv_dct_dct_32x32_add_8_32_sse2: 2575.6
vp9_inv_dct_dct_32x32_add_8_32_ssse3: 2633.9
vp9_inv_dct_dct_32x32_add_8_32_avx: 2539.6
vp9_inv_dct_dct_32x32_add_8_32_avx2: 1395.0

4 years agolavfi/curves: fix meaningless const int returned value
Clément Bœsch [Tue, 26 Jul 2016 19:22:22 +0000 (21:22 +0200)]
lavfi/curves: fix meaningless const int returned value

Spotted-by: James Almer <jamrial@gmail.com>
4 years agolibrtmp: Avoid an infiniloop setting connection arguments
Luca Barbato [Wed, 22 Jun 2016 04:36:31 +0000 (06:36 +0200)]
librtmp: Avoid an infiniloop setting connection arguments

The exit condition was missing.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
4 years agoavformt/matroskaenc: undo an accidental revert by commit 5d48e4ea
James Almer [Tue, 26 Jul 2016 18:22:32 +0000 (15:22 -0300)]
avformt/matroskaenc: undo an accidental revert by commit 5d48e4ea

Commit 5d48e4eafa6c4559683892b8638d10508125f3cf accidentally reverted changes
made to matroskaenc by commit 989a614b707dcff8abdffe28dc24ec64a83b2837.

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoffprobe: add missing PROGRAM_STREAM_TAGS case
Dmitry Vagin [Fri, 22 Jul 2016 05:52:00 +0000 (08:52 +0300)]
ffprobe: add missing PROGRAM_STREAM_TAGS case

ffprobe did not show tags with only '-show_entries programs'

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavutil/frame: access avframe fields directly in get_frame_defaults()
James Almer [Mon, 25 Jul 2016 18:04:42 +0000 (15:04 -0300)]
avutil/frame: access avframe fields directly in get_frame_defaults()

The accessors are needed only from outside libavutil.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolavd/libdc1394: distinguish between enumeration errors and no cameras found
Josh de Kock [Sun, 24 Jul 2016 18:49:40 +0000 (19:49 +0100)]
lavd/libdc1394: distinguish between enumeration errors and no cameras found

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavformat/rtpdec_asf: zero initialize the AVIOContext struct
Kacper Michajłow [Sat, 23 Jul 2016 21:47:39 +0000 (23:47 +0200)]
libavformat/rtpdec_asf: zero initialize the AVIOContext struct

This fixes crash in avformat_open_input() when accessing
protocol_whitelist field.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/dnxhddata: move avpriv_dnxhd_parse_header_prefix to a header
James Almer [Mon, 25 Jul 2016 15:09:22 +0000 (12:09 -0300)]
avcodec/dnxhddata: move avpriv_dnxhd_parse_header_prefix to a header

It's a small and simple function that can be inlined.

This removes one private symbol and should reduce object dependencies with the next
major bump

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoRevert "lavc: always build dnxhddata"
James Almer [Mon, 25 Jul 2016 15:19:31 +0000 (12:19 -0300)]
Revert "lavc: always build dnxhddata"

This reverts commit 2adbea4e216ce38a8bf6c72de16267c9162c174d.

A better solution will follow in the next commit.

4 years agolavc/Makefile: Fix standalone compilation of the svq3 decoder.
Carl Eugen Hoyos [Sun, 24 Jul 2016 21:50:33 +0000 (23:50 +0200)]
lavc/Makefile: Fix standalone compilation of the svq3 decoder.

Regression since 0bf5fd2e

4 years agolavc: always build dnxhddata
Matthieu Bouron [Sun, 24 Jul 2016 20:26:47 +0000 (22:26 +0200)]
lavc: always build dnxhddata

lavc/movenc rely on avpriv_dnxhd_parse_header_prefix declared by
dnxhddata.h since e47981dab7fb7c9499b959cb0125b7281301969a.

Fixes a missing symbol error in lavc/movenc if the dnxhd encoder is not
enabled.

4 years agolavc/h264_ps: Be more verbose when truncating likely oversized PPS.
Carl Eugen Hoyos [Fri, 22 Jul 2016 17:24:15 +0000 (19:24 +0200)]
lavc/h264_ps: Be more verbose when truncating likely oversized PPS.

4 years agoRevert "Merge commit '3c53627ac17fc6bdea5029be57da1e03b32d265d'"
Ivan Uskov [Sun, 24 Jul 2016 13:59:42 +0000 (09:59 -0400)]
Revert "Merge commit '3c53627ac17fc6bdea5029be57da1e03b32d265d'"

This reverts commit d30cf57a7b2097b565db02ecfffbdc9c16423d0e, reversing changes made to
acc155ac55baa95d1c16c0364b02244bc04d83a8. The commit d30cf57a7b2097b565db02ecfffbdc9c16423d0e
provided irrelevant code complexity and decoding slowdown. But the main disadvantage of this
commit is a decoder crash. So it should be reverted.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavfi/selectivecolor: add 16-bit support
Clément Bœsch [Thu, 14 Jul 2016 15:23:08 +0000 (17:23 +0200)]
lavfi/selectivecolor: add 16-bit support

4 years agolavfi/selectivecolor: fix picking black as neutral when alpha is present
Clément Bœsch [Sun, 24 Jul 2016 12:21:01 +0000 (14:21 +0200)]
lavfi/selectivecolor: fix picking black as neutral when alpha is present

4 years agotests/fate: add dnxhr encoding tests
Mark Reid [Sun, 24 Jul 2016 01:10:33 +0000 (18:10 -0700)]
tests/fate: add dnxhr encoding tests

added sws_flags flags and tested against x86_32

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavfi: bump minor after recent curves filter additions
Clément Bœsch [Sun, 24 Jul 2016 10:22:41 +0000 (12:22 +0200)]
lavfi: bump minor after recent curves filter additions

4 years agolavfi/curves: prefix init and uninit function names
Clément Bœsch [Sun, 24 Jul 2016 10:17:01 +0000 (12:17 +0200)]
lavfi/curves: prefix init and uninit function names

4 years agolavfi/curves: pass log ctx as void* instead of AVFilterContext*
Clément Bœsch [Sun, 24 Jul 2016 10:13:46 +0000 (12:13 +0200)]
lavfi/curves: pass log ctx as void* instead of AVFilterContext*

4 years agolavfi/curves: reindent after previous commit
Clément Bœsch [Sun, 24 Jul 2016 10:11:30 +0000 (12:11 +0200)]
lavfi/curves: reindent after previous commit

4 years agolavfi/curves: add 16-bit support
Clément Bœsch [Sat, 23 Jul 2016 09:56:56 +0000 (11:56 +0200)]
lavfi/curves: add 16-bit support

4 years agolavfi/curves: move alloc and init of LUTs inside config_input()
Clément Bœsch [Sun, 24 Jul 2016 09:13:29 +0000 (11:13 +0200)]
lavfi/curves: move alloc and init of LUTs inside config_input()

This is needed in order to have different sizes of LUTs according to the
input.

4 years agolavfi/curves: dynamically allocate LUTs
Clément Bœsch [Fri, 22 Jul 2016 20:20:53 +0000 (22:20 +0200)]
lavfi/curves: dynamically allocate LUTs

This simplifies following commits.

4 years agolavfi/curves: add various const where it makes sense
Clément Bœsch [Fri, 22 Jul 2016 20:00:37 +0000 (22:00 +0200)]
lavfi/curves: add various const where it makes sense

4 years agolavfi/curves: remove pointless logging since the addition of plot option
Clément Bœsch [Fri, 22 Jul 2016 20:01:37 +0000 (22:01 +0200)]
lavfi/curves: remove pointless logging since the addition of plot option

4 years agolavfi/curves: add plot option
Clément Bœsch [Thu, 21 Jul 2016 23:17:44 +0000 (01:17 +0200)]
lavfi/curves: add plot option

4 years agolavfi/curves: do not automatically insert points at x=0 and x=1
Clément Bœsch [Sat, 16 Jul 2016 11:46:32 +0000 (13:46 +0200)]
lavfi/curves: do not automatically insert points at x=0 and x=1

There is actually a need for the origin and end point not to be defined.
We can not automatically insert them with the y value of the first and
last point as it will influence the curves in a wrong way.

Fixes #5397

4 years agotests/fate/filter-audio: fate-filter-chorus: Randomly change parameters to some value...
Michael Niedermayer [Sun, 24 Jul 2016 01:34:33 +0000 (03:34 +0200)]
tests/fate/filter-audio: fate-filter-chorus: Randomly change parameters to some values which pass on arm/mips/x86-32/64

If this still doesnt give the same results on all platforms then this should be
disabled

Found-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavutil/opt: Small bugfix in example.
Kacper Michajłow [Sat, 23 Jul 2016 19:43:06 +0000 (21:43 +0200)]
libavutil/opt: Small bugfix in example.

Fix const corectness and zero init the struct. This example code would actually crash when initializing string.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/tee: Rescale ts using av_packet_rescale_ts
Jan Sebechlebsky [Sat, 16 Jul 2016 11:27:50 +0000 (13:27 +0200)]
avformat/tee: Rescale ts using av_packet_rescale_ts

This ensures that AV_NOPTS_VALUE value is handled
correctly.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agolibavcodec/dnxhdenc: add support for dnxhr encoding
Mark Reid [Sun, 17 Jul 2016 02:37:39 +0000 (19:37 -0700)]
libavcodec/dnxhdenc: add support for dnxhr encoding

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavcodec/dnxhdenc: add support for variable mircoblock counts
Mark Reid [Sun, 17 Jul 2016 02:37:38 +0000 (19:37 -0700)]
libavcodec/dnxhdenc: add support for variable mircoblock counts

dnxhr has variable resolution, 8160 is the mb num for 1920x1080

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotests/fate/dnxhd: add dnxhr prefix tests
Mark Reid [Thu, 21 Jul 2016 01:15:38 +0000 (18:15 -0700)]
tests/fate/dnxhd: add dnxhr prefix tests

The data offset value in the prefix increases as the heights increases.
This test adds a tests for some common dnxhr heights.

can somebody add the following test footage to fate/dnxhd?
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x1536.dnxhr
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x1716.dnxhr
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x2048.dnxhr
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x2160.dnxhr
https://dl.dropboxusercontent.com/u/170952/fate/dnxhd/prefix-256x3212.dnxhr

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavformat/movenc: add dnxhr compatibility for apple players
Mark Reid [Fri, 22 Jul 2016 20:30:15 +0000 (13:30 -0700)]
libavformat/movenc: add dnxhr compatibility for apple players

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMAINTAINERS: add myself to the project server
Nikolay Aleksandrov [Fri, 22 Jul 2016 14:15:20 +0000 (16:15 +0200)]
MAINTAINERS: add myself to the project server

I've been helping out with the project servers' maintenance and migration
to the new machine hosted in Telepoint's data center in Sofia, BG.

Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavformat/matroskadec: fix unsigned overflow to improve seeking
Chris Cunningham [Thu, 21 Jul 2016 19:01:45 +0000 (12:01 -0700)]
libavformat/matroskadec: fix unsigned overflow to improve seeking

When seeking a file where codec delay is greater than 0, the timecode
can become negative after offsetting by the codec delay. Failing to cast
to a signed int64 will cause the check against skip_to_timecode to evaluate
true for these negative values. This breaks the "skip_to" seek mechanism.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoffmpeg.c: copy video profile when using stream_copy
Mark Reid [Fri, 22 Jul 2016 20:30:14 +0000 (13:30 -0700)]
ffmpeg.c: copy video profile when using stream_copy

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/intrax8: Use correct printf specifier for size_t on Windows.
Carl Eugen Hoyos [Fri, 22 Jul 2016 17:23:01 +0000 (19:23 +0200)]
lavc/intrax8: Use correct printf specifier for size_t on Windows.

4 years agoavcodec/mpeg4_unpack_bframes_bsf: Check av_packet_from_data() return value
Jan Sebechlebsky [Fri, 22 Jul 2016 15:59:30 +0000 (17:59 +0200)]
avcodec/mpeg4_unpack_bframes_bsf: Check av_packet_from_data() return value

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/mpeg4_unpack_bframes_bsf: Copy packet props
Jan Sebechlebsky [Fri, 22 Jul 2016 15:59:29 +0000 (17:59 +0200)]
avcodec/mpeg4_unpack_bframes_bsf: Copy packet props

mpeg4_unpack_bframes_bsf bitstream filters constructs
resulting packet using av_packet_from_data() function.
This function however modifies only buffer (data) and leaves
other fields untouched, so the content of other fields
of the output packet is undefined.
It is working with old BSF API, since old API filters
just data and the packet fields are copied in
av_apply_bitstream_filters from input packet.

This change fixes the behaviour for the new BSF API.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibx264: Increase x264 opts character limit to 4096
Sasi Inguva [Fri, 22 Jul 2016 01:52:41 +0000 (18:52 -0700)]
libx264: Increase x264 opts character limit to 4096

Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/muxers: improve hlsenc description
Steven Liu [Mon, 18 Jul 2016 12:10:25 +0000 (20:10 +0800)]
doc/muxers: improve hlsenc description

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/muxers: add hls_flags option description
Steven Liu [Mon, 18 Jul 2016 12:05:35 +0000 (20:05 +0800)]
doc/muxers: add hls_flags option description

Signed-off-by: Steven Liu <liuqi@gosun.com>
Reviewed-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: add test for extrastereo filter
Petru Rares Sincraian [Thu, 21 Jul 2016 05:21:01 +0000 (07:21 +0200)]
fate: add test for extrastereo filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/teeproto: Fix memset sizeof
Michael Niedermayer [Fri, 22 Jul 2016 08:34:14 +0000 (10:34 +0200)]
avformat/teeproto: Fix memset sizeof

Found-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibvpxenc,cosmetics: rename common fns vp8 -> vpx
James Zern [Thu, 21 Jul 2016 03:41:55 +0000 (20:41 -0700)]
libvpxenc,cosmetics: rename common fns vp8 -> vpx

+ the context struct

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Zern <jzern@google.com>
4 years agolibvpxdec,cosmetics: rename common fns vp8 -> vpx
James Zern [Thu, 21 Jul 2016 03:40:59 +0000 (20:40 -0700)]
libvpxdec,cosmetics: rename common fns vp8 -> vpx

+ the context struct

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Zern <jzern@google.com>
4 years agoavcodec/huffman: beautify: add space between #include and filename.
Yong Lei [Thu, 21 Jul 2016 22:32:23 +0000 (15:32 -0700)]
avcodec/huffman: beautify: add space between #include and filename.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/protocols: Fix seperated typo
Michael Niedermayer [Thu, 21 Jul 2016 23:05:49 +0000 (01:05 +0200)]
doc/protocols: Fix seperated typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/ffv1dec: Test extradata_size instead of extradata for better robustness
Michael Niedermayer [Thu, 21 Jul 2016 21:37:02 +0000 (23:37 +0200)]
avcodec/ffv1dec: Test extradata_size instead of extradata for better robustness

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/mov: Do not allocate empty extradata
Michael Niedermayer [Thu, 21 Jul 2016 19:43:59 +0000 (21:43 +0200)]
avformat/mov: Do not allocate empty extradata

Fixes Ticket5723

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_psnr: Fix rounding error in average_max
Michael Niedermayer [Thu, 21 Jul 2016 00:04:03 +0000 (02:04 +0200)]
avfilter/vf_psnr: Fix rounding error in average_max

The intermediate was rounded to an integer

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavformat/rawenc: add dnxhr raw format extension
Mark Reid [Thu, 21 Jul 2016 01:22:20 +0000 (18:22 -0700)]
libavformat/rawenc: add dnxhr raw format extension

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibopenmpt: Add "date" to metadata.
Jörn Heusipp [Sun, 17 Jul 2016 13:37:14 +0000 (15:37 +0200)]
libopenmpt: Add "date" to metadata.

Signed-off-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de>
Signed-off-by: Josh de Kock <josh@itanimul.li>
4 years agolibopenmpt: set stream duration and fix time base
Jörn Heusipp [Sun, 17 Jul 2016 13:37:13 +0000 (15:37 +0200)]
libopenmpt: set stream duration and fix time base

Fix the confusion around the used time base.

Check size returned from avio_size()

Signed-off-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de>
Signed-off-by: Josh de Kock <josh@itanimul.li>
4 years agodocs/demuxers: add libopenmpt section
Josh de Kock [Tue, 19 Jul 2016 14:48:30 +0000 (15:48 +0100)]
docs/demuxers: add libopenmpt section

Signed-off-by: Josh de Kock <josh@itanimul.li>
4 years agolibopenmpt: add subsong support
Josh de Kock [Mon, 18 Jul 2016 12:58:04 +0000 (13:58 +0100)]
libopenmpt: add subsong support

Signed-off-by: Josh de Kock <josh@itanimul.li>
4 years agoavformat/oggenc: add vp8 muxing support
James Almer [Thu, 21 Jul 2016 01:29:54 +0000 (22:29 -0300)]
avformat/oggenc: add vp8 muxing support

Addresses ticket #5687

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat: add an Ogg Video muxer
James Almer [Thu, 21 Jul 2016 00:55:12 +0000 (21:55 -0300)]
avformat: add an Ogg Video muxer

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoChangelog: move a misplaced entry to the correct section
James Almer [Thu, 21 Jul 2016 00:45:20 +0000 (21:45 -0300)]
Changelog: move a misplaced entry to the correct section

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/mux: Fix some codecpar non uses
Michael Niedermayer [Sun, 17 Jul 2016 02:10:38 +0000 (04:10 +0200)]
avformat/mux: Fix some codecpar non uses

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: add test for earwax filter
Petru Rares Sincraian [Wed, 20 Jul 2016 16:41:58 +0000 (18:41 +0200)]
fate: add test for earwax filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: add test for dcshift filter
Petru Rares Sincraian [Wed, 20 Jul 2016 16:32:04 +0000 (18:32 +0200)]
fate: add test for dcshift filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agox86/diracdsp: make ff_put_signed_rect_clamped_10_sse4 work on x86_32
James Almer [Wed, 20 Jul 2016 01:37:04 +0000 (22:37 -0300)]
x86/diracdsp: make ff_put_signed_rect_clamped_10_sse4 work on x86_32

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolibavcodec/dnxhd: add dnxhr profiles
Mark Reid [Sun, 17 Jul 2016 02:37:37 +0000 (19:37 -0700)]
libavcodec/dnxhd: add dnxhr profiles

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoffmpeg_opt: Delete duplicate “hwaccel_output_format” option.
Jun Zhao [Fri, 24 Jun 2016 07:06:08 +0000 (15:06 +0800)]
ffmpeg_opt: Delete duplicate “hwaccel_output_format” option.

Delete duplicate “hwaccel_output_format” option.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavcodec/libvpx: Add VPx alpha decode support
Vignesh Venkatasubramanian [Thu, 14 Jul 2016 19:15:57 +0000 (12:15 -0700)]
libavcodec/libvpx: Add VPx alpha decode support

VPx (VP8/VP9) alpha encoding has been part of FFmpeg. Now, add the
ability to decode such files with alpha channel.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
4 years agofate: add test for chorus filter
Petru Rares Sincraian [Tue, 19 Jul 2016 19:18:08 +0000 (21:18 +0200)]
fate: add test for chorus filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/avlanguage: make av_convert_lang_to() internal
James Almer [Fri, 13 May 2016 21:03:28 +0000 (18:03 -0300)]
avformat/avlanguage: make av_convert_lang_to() internal

The header was never installed and the function is only used in libavformat

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/oggenc: fix page duration calculation when granule differs from timestamp
James Almer [Fri, 8 Jul 2016 01:41:55 +0000 (22:41 -0300)]
avformat/oggenc: fix page duration calculation when granule differs from timestamp

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/oggparsevp8: fix pts calculation on pages ending with an invisible frame
James Almer [Tue, 12 Jul 2016 20:05:42 +0000 (17:05 -0300)]
avformat/oggparsevp8: fix pts calculation on pages ending with an invisible frame

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoconfigure: add support for new CPUs
James Almer [Sun, 17 Jul 2016 22:14:12 +0000 (19:14 -0300)]
configure: add support for new CPUs

Add new -march values for Intel and AMD CPUs introduced with GCC 5 and 6, and
improve SunCC flags accordingly.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec/h264_slice: Move h264_init_ps() call into h264_field_start()
Michael Niedermayer [Tue, 19 Jul 2016 20:31:56 +0000 (22:31 +0200)]
avcodec/h264_slice: Move h264_init_ps() call into h264_field_start()

This was missing from f512e4a39037ef798ec78170f734c7733abe3231

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/h264: remove list_count and ref_count clearing
Michael Niedermayer [Tue, 19 Jul 2016 20:31:57 +0000 (22:31 +0200)]
avcodec/h264: remove list_count and ref_count clearing

The code conflicts with moving the h264_init_ps() call point

Without this, ff_h264_parse_ref_count() fills ref and list count and
h264_init_ps() subsequently wipes them out on a "success" path.
Subsequently things crash as the wiped fields are used.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: add test for avfft
Petru Rares Sincraian [Mon, 4 Jul 2016 15:23:14 +0000 (17:23 +0200)]
fate: add test for avfft

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat: Add tee protocol
Michael Niedermayer [Mon, 18 Jul 2016 12:42:22 +0000 (14:42 +0200)]
avformat: Add tee protocol

Option passing support will be submitted seperately to the ML

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/h264: fix spacing before comment
Clément Bœsch [Tue, 19 Jul 2016 13:34:03 +0000 (15:34 +0200)]
lavc/h264: fix spacing before comment

4 years agoavutil/mem: fix wrong comment
Zhao Zhili [Mon, 18 Jul 2016 16:03:19 +0000 (00:03 +0800)]
avutil/mem: fix wrong comment

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMAINTAINERS: add myself for libopenmpt
Josh de Kock [Sun, 17 Jul 2016 15:59:03 +0000 (16:59 +0100)]
MAINTAINERS: add myself for libopenmpt

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/ccaption_dec: default rollup to row 10
Aman Gupta [Tue, 14 Jun 2016 18:57:45 +0000 (11:57 -0700)]
avcodec/ccaption_dec: default rollup to row 10

This ensures that captions are written towards the bottom of the screen
when tuning into mid-stream. The row will be reset on the receipt of the
next PAC command. Row 10 was chosen as it corresponds to the value of
"0" in a PAC (see row_map in handle_pac()).

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/ccaption_dec: implement positioning for closed captions
Aman Gupta [Tue, 14 Jun 2016 18:57:43 +0000 (11:57 -0700)]
avcodec/ccaption_dec: implement positioning for closed captions

Positioning math is based on the guidelines in https://dvcs.w3.org/hg/text-tracks/raw-file/default/608toVTT/608toVTT.html#positioning-in-cea-608

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotools/patcheck: add a couple more common typos
James Almer [Sun, 17 Jul 2016 21:38:14 +0000 (18:38 -0300)]
tools/patcheck: add a couple more common typos

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec/ccaption_dec: change write_char() to void as return value is unused
Aman Gupta [Tue, 14 Jun 2016 18:57:41 +0000 (11:57 -0700)]
avcodec/ccaption_dec: change write_char() to void as return value is unused

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMAINTAINERS: Add Aman Gupta for ccaption_dec
Michael Niedermayer [Sat, 16 Jul 2016 12:58:20 +0000 (14:58 +0200)]
MAINTAINERS: Add Aman Gupta for ccaption_dec

Anshul appears to have no time currently as he has not reacted to patches or mails
and Aman agreed to take over maintaince or help

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agocosmetics: fix some misspelled words
James Almer [Sun, 17 Jul 2016 16:10:27 +0000 (13:10 -0300)]
cosmetics: fix some misspelled words

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolibavformat/libopenmpt: Fix memory leak in error path in read_header_openmpt().
Jörn Heusipp [Sun, 17 Jul 2016 13:37:12 +0000 (15:37 +0200)]
libavformat/libopenmpt: Fix memory leak in error path in read_header_openmpt().

Signed-off-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/dnxhddata: replace % by &
Michael Niedermayer [Sat, 16 Jul 2016 14:15:33 +0000 (16:15 +0200)]
avcodec/dnxhddata: replace % by &

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: fix apng tests dependencies
James Almer [Sat, 16 Jul 2016 18:29:43 +0000 (15:29 -0300)]
fate: fix apng tests dependencies

Signed-off-by: James Almer <jamrial@gmail.com>