]> git.sesse.net Git - ffmpeg/log
ffmpeg
8 years agoavutil/opencl_internal: add av_warn_unused_result
Ganesh Ajjanagadde [Sat, 31 Oct 2015 14:36:22 +0000 (10:36 -0400)]
avutil/opencl_internal: add av_warn_unused_result

clSetKernelArg can return an error due to lack of memory (for instance):
https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clSetKernelArg.html.
Thus this error must be propagated.

Currently should not trigger warnings, but adds robustness.
Untested.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavfilter/vf_deshake: replace qsort with AV_QSORT
Ganesh Ajjanagadde [Fri, 30 Oct 2015 23:07:13 +0000 (19:07 -0400)]
avfilter/vf_deshake: replace qsort with AV_QSORT

qsort is called indirectly in filter_frame, suggesting its performance
criticality. AV_QSORT is substantially faster due to the inlining of the
comparison callback. Thus, the increase in performance should be worth
the increase in binary size.

This optimization is just a low hanging fruit. The trac ticket 1430 is
a request for an improved deshake filter.

Sample benchmark (x86-64, Haswell, GNU/Linux):
File: original from https://trac.ffmpeg.org/ticket/1430
command: ffmpeg -stream_loop 8 -i file.webm -vf deshake=rx=64:ry=64 -f null -

Timer truncated at 1024 runs.
new:
28260 decicycles in qsort,       1 runs,      0 skips
35570 decicycles in qsort,       2 runs,      0 skips
39010 decicycles in qsort,       4 runs,      0 skips
46897 decicycles in qsort,       8 runs,      0 skips
40442 decicycles in qsort,      16 runs,      0 skips
41611 decicycles in qsort,      32 runs,      0 skips
40345 decicycles in qsort,      64 runs,      0 skips
38967 decicycles in qsort,     128 runs,      0 skips
38647 decicycles in qsort,     256 runs,      0 skips
40238 decicycles in qsort,     512 runs,      0 skips
39676 decicycles in qsort,    1024 runs,      0 skips

old:
1740280 decicycles in qsort,       1 runs,      0 skips
 923560 decicycles in qsort,       2 runs,      0 skips
 511330 decicycles in qsort,       4 runs,      0 skips
 309720 decicycles in qsort,       8 runs,      0 skips
 194900 decicycles in qsort,      16 runs,      0 skips
 142686 decicycles in qsort,      32 runs,      0 skips
 112516 decicycles in qsort,      64 runs,      0 skips
  98166 decicycles in qsort,     128 runs,      0 skips
  88147 decicycles in qsort,     256 runs,      0 skips
  88706 decicycles in qsort,     512 runs,      0 skips
  86783 decicycles in qsort,    1024 runs,      0 skips

Reviewed-by: Nicolas George <george@nsup.org>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavutil/x86/intmath: Use tzcnt in place of bsf.
Matt Oliver [Wed, 28 Oct 2015 07:47:16 +0000 (18:47 +1100)]
avutil/x86/intmath: Use tzcnt in place of bsf.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
8 years agogdigrab: grab right desktop size if DPI in use, based on patch from Alexander Brotzge
Matt Oliver [Mon, 5 Oct 2015 09:00:37 +0000 (20:00 +1100)]
gdigrab: grab right desktop size if DPI in use, based on patch from Alexander Brotzge

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
8 years agoavutil/rational: use frexp rather than ad-hoc log to get floating point exponent
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:18:15 +0000 (00:18 -0400)]
avutil/rational: use frexp rather than ad-hoc log to get floating point exponent

This simplifies and cleans up the code.
Furthermore, it is much faster due to absence of the slow log computation.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavdevice/caca: change AV_OPT_TYPE_STRING to set .str default
Michael Niedermayer [Sat, 31 Oct 2015 01:31:40 +0000 (02:31 +0100)]
avdevice/caca: change AV_OPT_TYPE_STRING to set .str default

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/libopenh264enc: AV_OPT_TYPE_STRING should use .str default
Michael Niedermayer [Sat, 31 Oct 2015 01:29:01 +0000 (02:29 +0100)]
avcodec/libopenh264enc: AV_OPT_TYPE_STRING should use .str default

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/libopenh264enc: Fix project name
Michael Niedermayer [Sat, 31 Oct 2015 01:21:58 +0000 (02:21 +0100)]
avcodec/libopenh264enc: Fix project name

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/libopenh264enc: set .i64 for AV_OPT_TYPE_INT
Michael Niedermayer [Sat, 31 Oct 2015 01:20:53 +0000 (02:20 +0100)]
avcodec/libopenh264enc: set .i64 for AV_OPT_TYPE_INT

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/avf_showcqt: Replace all fmin* and fmax* by FFMIN/FFMAX
Michael Niedermayer [Fri, 30 Oct 2015 23:16:06 +0000 (00:16 +0100)]
avfilter/avf_showcqt: Replace all fmin* and fmax* by FFMIN/FFMAX

Should fix build on x86_32-msvc2012

The alternative of emulating fmin/fmax* turns out to be non trivial

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/showcqt: fix dependency with avformat
Muhammad Faiz [Fri, 30 Oct 2015 16:35:02 +0000 (23:35 +0700)]
avfilter/showcqt: fix dependency with avformat

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoffprobe: add support for printing packet strings metadata as packet tags
Marton Balint [Sat, 24 Oct 2015 13:13:25 +0000 (15:13 +0200)]
ffprobe: add support for printing packet strings metadata as packet tags

ffprobe.xsd already contains the tag element.

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoall: fix enum definition for large values
Ganesh Ajjanagadde [Fri, 23 Oct 2015 18:29:35 +0000 (14:29 -0400)]
all: fix enum definition for large values

ISO C restricts enumerator values to the range of int. Thus (for instance) 0x80000000
unfortunately does not work, and throws a warning with -Wpedantic on
clang 3.7.

This fixes it by using alternative expressions that result in identical
values but do not have this issue.

Tested with FATE.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavutil/wchar_filename: add av_warn_unused_result
Ganesh Ajjanagadde [Fri, 16 Oct 2015 00:01:21 +0000 (20:01 -0400)]
avutil/wchar_filename: add av_warn_unused_result

Current code is fine, this just adds robustness.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavutil/mathematics: correct documentation for av_gcd
Ganesh Ajjanagadde [Wed, 28 Oct 2015 00:11:40 +0000 (20:11 -0400)]
avutil/mathematics: correct documentation for av_gcd

av_gcd is now always defined regardless of input. This documents this
change in the "documented API". Two benefits (closely related):
1. The function is robust, and there is no need to worry about INT64_MIN, etc.

2. Clients of av_gcd, like av_reduce, can now be made fully correct. Currently,
av_reduce can trigger undefined behavior if e.g num is INT64_MIN due to
integer overflow in the FFABS. Furthermore, this undefined behavior is
completely undocumented, and could be a fuzzer's paradise. The FFABS was needed in the past as
av_gcd was undefined for negative inputs. In order to make av_reduce
robust, it is essential to guarantee that av_gcd works for all int64_t.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoffmpeg_filter: check encoder before using it to set frame size.
Nicolas George [Sun, 25 Oct 2015 18:48:10 +0000 (19:48 +0100)]
ffmpeg_filter: check encoder before using it to set frame size.

Fix a segfault when no encoder is found for a default codec
with a complex filter graph.

8 years agovf_lut: Add support for RGB48 and RGBA64.
Steven Robertson [Sun, 11 Oct 2015 01:27:17 +0000 (18:27 -0700)]
vf_lut: Add support for RGB48 and RGBA64.

Signed-off-by: Steven Robertson <steven@strobe.cc>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/3dostr: Remove redundant ;
Michael Niedermayer [Fri, 30 Oct 2015 02:02:41 +0000 (03:02 +0100)]
avformat/3dostr: Remove redundant ;

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/oggparseogm: Enable parser for mpeg4
Michael Niedermayer [Thu, 29 Oct 2015 23:31:13 +0000 (00:31 +0100)]
avformat/oggparseogm: Enable parser for mpeg4

Fixes regression with iJi.ogv

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc/proresdec2: Fix slice_count for very high resolutions.
Carl Eugen Hoyos [Fri, 30 Oct 2015 00:32:39 +0000 (01:32 +0100)]
lavc/proresdec2: Fix slice_count for very high resolutions.

QT ignores the value written in the frame header.
Issue reported by forum user Koracas.

8 years agolavc/cdg: Add transparency support.
Carl Eugen Hoyos [Fri, 30 Oct 2015 00:24:50 +0000 (01:24 +0100)]
lavc/cdg: Add transparency support.

8 years agoavutil/mathematics: make av_gcd more robust
Ganesh Ajjanagadde [Thu, 29 Oct 2015 02:02:25 +0000 (22:02 -0400)]
avutil/mathematics: make av_gcd more robust

This ensures that no undefined behavior is invoked, while retaining
identical return values in all cases and at no loss of performance
(identical asm on clang and gcc).
Essentially, this patch exchanges undefined behavior with implementation
defined behavior, a strict improvement.

Rationale:
1. The ideal solution is to have the return type a uint64_t. This
unfortunately requires an API change.
2. The only pathological behavior happens if both arguments are
INT64_MIN, to the best of my knowledge. In such a case, the
implementation defined behavior is invoked in the sense that UINT64_MAX
is interpreted as INT64_MIN, which any reasonable implementation will
do. In any case, any usage where both arguments are INT64_MIN is a
fuzzer anyway.
3. Alternatives of checking, etc require branching and lose performance
for no concrete gain - no client cares about av_gcd's actual value when
both args are INT64_MIN. Even if it did, on sane platforms (e.g all the
ones FFmpeg cares about), it produces a correct gcd, namely INT64_MIN.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavfilter/avf_showvolume: use log10 instead of log()/M_LN10
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:15:25 +0000 (00:15 -0400)]
avfilter/avf_showvolume: use log10 instead of log()/M_LN10

This is likely more precise and conveys the intent better.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoffmpeg: use log10 instead of log()/log(10)
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:01:43 +0000 (00:01 -0400)]
ffmpeg: use log10 instead of log()/log(10)

This is more concise and conveys the intent better.
Furthermore, it is likely more precise as well due to lack of floating
point division.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavfilter/vf_ssim: use log10 instead of log()/log(10)
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:17:19 +0000 (00:17 -0400)]
avfilter/vf_ssim: use log10 instead of log()/log(10)

This is likely more precise and conveys the intent better.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavfilter/avf_showspectrum: use log10 instead of log()/...
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:14:39 +0000 (00:14 -0400)]
avfilter/avf_showspectrum: use log10 instead of log()/...

This is likely more precise and conveys the intent better.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavfilter/vf_psnr: use log10 instead of log()/log(10)
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:16:34 +0000 (00:16 -0400)]
avfilter/vf_psnr: use log10 instead of log()/log(10)

This is likely more precise and conveys the intent better.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoswscale: rename sws_rgb2rgb_init to ff_sws_rgb2rgb_init
Andreas Cadhalpun [Tue, 27 Oct 2015 21:56:56 +0000 (22:56 +0100)]
swscale: rename sws_rgb2rgb_init to ff_sws_rgb2rgb_init

It is an internal swscale function and thus should not be exported.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years agoswscale: rename sws_context_class to ff_sws_context_class
Andreas Cadhalpun [Tue, 27 Oct 2015 21:56:53 +0000 (22:56 +0100)]
swscale: rename sws_context_class to ff_sws_context_class

It is an internal swscale symbol and thus should not be exported.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years agoavformat: stop exporting ffurl_read_complete, ffurl_seek and ffurl_size
Andreas Cadhalpun [Tue, 27 Oct 2015 20:29:47 +0000 (21:29 +0100)]
avformat: stop exporting ffurl_read_complete, ffurl_seek and ffurl_size

They are not in public headers and not used outside of libavformat.

Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years agoavfilter/af_volume: use log10 instead of log()/M_LN10
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:11:44 +0000 (00:11 -0400)]
avfilter/af_volume: use log10 instead of log()/M_LN10

This is likely more precise and conveys the intent better.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavcodec/zmbvenc: use log2 instead of log()/M_LN2
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:10:45 +0000 (00:10 -0400)]
avcodec/zmbvenc: use log2 instead of log()/M_LN2

This is likely more precise and conveys the intent better.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavcodec/nellymoserenc: use log2 instead of log()/M_LN2
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:06:00 +0000 (00:06 -0400)]
avcodec/nellymoserenc: use log2 instead of log()/M_LN2

This is likely more precise and conveys the intent better.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavcodec/snowenc: use log2 instead of log() / log(2...)
Ganesh Ajjanagadde [Thu, 29 Oct 2015 04:08:32 +0000 (00:08 -0400)]
avcodec/snowenc: use log2 instead of log() / log(2...)

This is likely more precise and conveys the intent better.
The expression has also been accordingly simplified.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agodoc/general.texi: fix SDX2 description
Paul B Mahol [Thu, 29 Oct 2015 20:29:47 +0000 (21:29 +0100)]
doc/general.texi: fix SDX2 description

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agodoc/general.texi: move Screenpresso to right section
Paul B Mahol [Thu, 29 Oct 2015 20:20:09 +0000 (21:20 +0100)]
doc/general.texi: move Screenpresso to right section

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat: add DC STR demuxer
Paul B Mahol [Wed, 28 Oct 2015 13:10:01 +0000 (14:10 +0100)]
avformat: add DC STR demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec: add ADPCM AICA decoder
Paul B Mahol [Wed, 28 Oct 2015 13:51:27 +0000 (14:51 +0100)]
avcodec: add ADPCM AICA decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat: add 3dostr demuxer
Paul B Mahol [Tue, 27 Oct 2015 19:58:23 +0000 (20:58 +0100)]
avformat: add 3dostr demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/tremolo: fix wavetable buffer size
Kyle Swanson [Thu, 29 Oct 2015 02:29:59 +0000 (21:29 -0500)]
avfilter/tremolo: fix wavetable buffer size

Signed-off-by: Kyle Swanson <k@ylo.ph>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/asrc_sine: fix options typos
Kyle Swanson [Wed, 28 Oct 2015 18:03:43 +0000 (13:03 -0500)]
avfilter/asrc_sine: fix options typos

Signed-off-by: Kyle Swanson <k@ylo.ph>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoMerge commit '8edaf625f3c38c695c33745822182e94e17d6e1b'
Hendrik Leppkes [Thu, 29 Oct 2015 13:26:17 +0000 (14:26 +0100)]
Merge commit '8edaf625f3c38c695c33745822182e94e17d6e1b'

* commit '8edaf625f3c38c695c33745822182e94e17d6e1b':
  libopenh264enc: Count and warn about the number of skipped frames

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '9e14a992409348630ea96521411127418a92e8a3'
Hendrik Leppkes [Thu, 29 Oct 2015 13:26:07 +0000 (14:26 +0100)]
Merge commit '9e14a992409348630ea96521411127418a92e8a3'

* commit '9e14a992409348630ea96521411127418a92e8a3':
  libopenh264enc: Add an option for controlling the frame skipping

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'b8deb7c34f755d5e3eee0b5930c3a6ad2dda96bc'
Hendrik Leppkes [Thu, 29 Oct 2015 13:25:19 +0000 (14:25 +0100)]
Merge commit 'b8deb7c34f755d5e3eee0b5930c3a6ad2dda96bc'

* commit 'b8deb7c34f755d5e3eee0b5930c3a6ad2dda96bc':
  opus: Do not call vector_fmul_scalar on zero samples

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '6dcd82290438eb810936de4febd0558b38a08ec5'
Hendrik Leppkes [Thu, 29 Oct 2015 13:24:53 +0000 (14:24 +0100)]
Merge commit '6dcd82290438eb810936de4febd0558b38a08ec5'

* commit '6dcd82290438eb810936de4febd0558b38a08ec5':
  opus: Buffer the samples from the correct offset

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'f3aff31e5f66a4f1c4e34ce4944f4a402aca61ed'
Hendrik Leppkes [Thu, 29 Oct 2015 13:23:24 +0000 (14:23 +0100)]
Merge commit 'f3aff31e5f66a4f1c4e34ce4944f4a402aca61ed'

* commit 'f3aff31e5f66a4f1c4e34ce4944f4a402aca61ed':
  avpicture: Deprecate the single fields

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'cd0e08813a0484002b5defbf557c859f123953ae'
Hendrik Leppkes [Thu, 29 Oct 2015 13:21:41 +0000 (14:21 +0100)]
Merge commit 'cd0e08813a0484002b5defbf557c859f123953ae'

* commit 'cd0e08813a0484002b5defbf557c859f123953ae':
  avconv: support infinite loop for the loop option

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'a9a60106370f862e191dea58e748626da6a8fe97'
Hendrik Leppkes [Thu, 29 Oct 2015 13:18:03 +0000 (14:18 +0100)]
Merge commit 'a9a60106370f862e191dea58e748626da6a8fe97'

* commit 'a9a60106370f862e191dea58e748626da6a8fe97':
  avpacket: Provide an alloc and a free function for the struct

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '9b56d5c11488656254e9aed8d964ef2b7c2ff5e6'
Hendrik Leppkes [Thu, 29 Oct 2015 13:16:44 +0000 (14:16 +0100)]
Merge commit '9b56d5c11488656254e9aed8d964ef2b7c2ff5e6'

* commit '9b56d5c11488656254e9aed8d964ef2b7c2ff5e6':
  avpacket: Deprecate av_dup_packet

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'd584533cf38141172e20bae5436629ee17c8ce50'
Hendrik Leppkes [Thu, 29 Oct 2015 13:06:11 +0000 (14:06 +0100)]
Merge commit 'd584533cf38141172e20bae5436629ee17c8ce50'

* commit 'd584533cf38141172e20bae5436629ee17c8ce50':
  avformat: Rework add_to_pktbuf

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agovp9: update timestamps in ref files using multiple invisible frames.
Ronald S. Bultje [Thu, 29 Oct 2015 11:34:37 +0000 (07:34 -0400)]
vp9: update timestamps in ref files using multiple invisible frames.

For the 10-show-existing-frame, the source file indeed has a timestamp
of 3 (or 100/33) for the second visible frame, so the fix appears to
work correctly. For the other, only the timebase is fixed, but again
appears to be correct now.

8 years agolavc/mjpegdec: honor skip_frame option
Matthieu Bouron [Fri, 9 Oct 2015 13:15:15 +0000 (15:15 +0200)]
lavc/mjpegdec: honor skip_frame option

8 years agolavc/pngdec: honor skip_frame option
Matthieu Bouron [Fri, 9 Oct 2015 13:14:11 +0000 (15:14 +0200)]
lavc/pngdec: honor skip_frame option

8 years agoavfilter/showcqt: fix compilation with libswscale disabled
James Almer [Thu, 29 Oct 2015 05:11:58 +0000 (02:11 -0300)]
avfilter/showcqt: fix compilation with libswscale disabled

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavutil/audio_fifo: add av_warn_unused_result
Ganesh Ajjanagadde [Thu, 15 Oct 2015 23:24:14 +0000 (19:24 -0400)]
avutil/audio_fifo: add av_warn_unused_result

This one should not trigger any warnings, but will be useful for future
robustness.

Strictly speaking, one could check the size after the call by examining
the structure instead of the return value. Such a use case is highly
unusual, and this commit may be easily reverted if there is a legitimate
need of such use.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agovp9_parser: don't overwrite cached timestamps with nopts.
Ronald S. Bultje [Wed, 28 Oct 2015 16:20:25 +0000 (12:20 -0400)]
vp9_parser: don't overwrite cached timestamps with nopts.

8 years agoavcodec/motion_est_template: replace qsort with AV_QSORT
Ganesh Ajjanagadde [Wed, 28 Oct 2015 02:46:18 +0000 (22:46 -0400)]
avcodec/motion_est_template: replace qsort with AV_QSORT

This code is in a performance critical section. AV_QSORT is
substantially faster due to the inlining of the comparison callback.
Thus, the increase in performance is worth the increase in binary size.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavutil/ripemd: make rol macro more robust by adding parentheses
Ganesh Ajjanagadde [Tue, 27 Oct 2015 23:58:41 +0000 (19:58 -0400)]
avutil/ripemd: make rol macro more robust by adding parentheses

This ensures that the macro remains correct in the sense of allowing
expressions for value and bits, by placing the value and bits expressions within
parentheses.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agodoc/encoders: fix "the their" typo
Lou Logan [Wed, 28 Oct 2015 21:23:52 +0000 (13:23 -0800)]
doc/encoders: fix "the their" typo

Signed-off-by: Lou Logan <lou@lrcd.com>
8 years agolibopenh264enc: Count and warn about the number of skipped frames
Martin Storsjö [Wed, 28 Oct 2015 09:12:42 +0000 (11:12 +0200)]
libopenh264enc: Count and warn about the number of skipped frames

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agolibopenh264enc: Add an option for controlling the frame skipping
Martin Storsjö [Wed, 28 Oct 2015 09:06:36 +0000 (11:06 +0200)]
libopenh264enc: Add an option for controlling the frame skipping

This allows enabling the frame skipping, which is required for the
encoder to properly hit the target bitrate.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agodoc/filters: Remove article redundancy
Michael Niedermayer [Wed, 28 Oct 2015 13:20:09 +0000 (14:20 +0100)]
doc/filters: Remove article redundancy

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoswr: do not reject channel layouts that use channel 63
wm4 [Wed, 28 Oct 2015 18:25:49 +0000 (19:25 +0100)]
swr: do not reject channel layouts that use channel 63

Channel layouts are essentially uint64_t, and every value is valid.

8 years agoopus: Do not call vector_fmul_scalar on zero samples
Kieran Kunhya [Wed, 28 Oct 2015 16:01:56 +0000 (17:01 +0100)]
opus: Do not call vector_fmul_scalar on zero samples

The x86 variant of this function crashes in that specific case.

CC: libav-devel@libav.org
8 years agoopus: Buffer the samples from the correct offset
Michael Niedermayer [Tue, 27 Oct 2015 12:47:12 +0000 (13:47 +0100)]
opus: Buffer the samples from the correct offset

When not all the opus stream have the same amount of decoded samples
process the least amount and store what is left from the other streams.

Bug-Id: 909
CC: libav-stable@libav.org
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agolavu/aes: test CBC functionality
Rodger Combs [Mon, 12 Oct 2015 03:15:52 +0000 (22:15 -0500)]
lavu/aes: test CBC functionality

8 years agoavcodec/png: read and write stereo3d frame side data information
Kirill Gavrilov [Thu, 22 Oct 2015 20:36:52 +0000 (23:36 +0300)]
avcodec/png: read and write stereo3d frame side data information

Use optional sTER chunk defining side-by-side stereo pair
within "Extensions to the PNG 1.2 Specification", version 1.3.0.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavu/aes: align AVAES struct members
Rodger Combs [Mon, 12 Oct 2015 03:15:08 +0000 (22:15 -0500)]
lavu/aes: align AVAES struct members

8 years agolavu/aes: add runtime dispatch for crypt function
Rodger Combs [Mon, 12 Oct 2015 03:14:20 +0000 (22:14 -0500)]
lavu/aes: add runtime dispatch for crypt function

8 years agolavu/aes: move AVAES to separate internal header
Rodger Combs [Mon, 12 Oct 2015 03:12:16 +0000 (22:12 -0500)]
lavu/aes: move AVAES to separate internal header

8 years agolavu: add AESNI CPU flag
Rodger Combs [Mon, 26 Oct 2015 07:08:58 +0000 (02:08 -0500)]
lavu: add AESNI CPU flag

8 years agoffprobe: Remove abort()
Michael Niedermayer [Wed, 28 Oct 2015 09:11:22 +0000 (10:11 +0100)]
ffprobe: Remove abort()

Found-by: Ganesh Ajjanagadde and wm4
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/avstring: add av_warn_unused_result
Ganesh Ajjanagadde [Thu, 15 Oct 2015 22:04:45 +0000 (18:04 -0400)]
avutil/avstring: add av_warn_unused_result

This does not trigger any warnings, but adds robustness.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agoavfilter/avf_showcqt: Fix ;;
Michael Niedermayer [Wed, 28 Oct 2015 02:23:40 +0000 (03:23 +0100)]
avfilter/avf_showcqt: Fix ;;

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/avf_showcqt: rewrite showcqt and add features
Muhammad Faiz [Sun, 25 Oct 2015 17:18:41 +0000 (00:18 +0700)]
avfilter/avf_showcqt: rewrite showcqt and add features

add yuv444p, yuv422p, and yuv420p output format (lower cpu usage
on ffplay playback because it does not do format conversion)
custom size with size/s option (fullhd option is deprecated)
custom layout with bar_h, axis_h, and sono_h option
support rational frame rate (within fps/r/rate option)
relaxed frame rate restriction (support fractional sample step)
support all input sample rates
separate sonogram and bargraph volume (with volume/sono_v and
volume2/bar_v)
timeclamp option alias (timeclamp/tc)
fcount option
gamma option alias (gamma/sono_g and gamma2/bar_g)
support custom frequency range (basefreq and endfreq)
support drawing axis using external image file (axisfile option)
alias for disabling drawing to axis (text/axis)
possibility to optimize it using arch specific asm code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/img2enc: re enable atomic writes with split planes
Michael Niedermayer [Tue, 27 Oct 2015 20:38:40 +0000 (21:38 +0100)]
avformat/img2enc: re enable atomic writes with split planes

They work now after fixing the implementation

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec: install avdct.h as public header
Andreas Cadhalpun [Tue, 27 Oct 2015 20:22:20 +0000 (21:22 +0100)]
avcodec: install avdct.h as public header

The commit 932ff70 introducing this header mentions it should be public.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years agoavpicture: Deprecate the single fields
Luca Barbato [Tue, 27 Oct 2015 20:53:26 +0000 (21:53 +0100)]
avpicture: Deprecate the single fields

Silence pointless warnings from gcc.

8 years agoavformat/img2enc: Fix img2enc atomic implementation to work with split planes
Michael Niedermayer [Tue, 27 Oct 2015 20:21:17 +0000 (21:21 +0100)]
avformat/img2enc: Fix img2enc atomic implementation to work with split planes

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/img2enc: Disable rename&atomic writing for non file protocol and split planes
Michael Niedermayer [Tue, 27 Oct 2015 18:45:59 +0000 (19:45 +0100)]
avformat/img2enc: Disable rename&atomic writing for non file protocol and split planes

For protocols other than local files ff_rename() is not implemented
For split planes support the implementation is simply wrong

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agompegts: Fix FATE seek test
Hendrik Leppkes [Tue, 27 Oct 2015 14:42:59 +0000 (15:42 +0100)]
mpegts: Fix FATE seek test

8 years agoasfdec: fix FATE seek test
Hendrik Leppkes [Tue, 27 Oct 2015 14:29:12 +0000 (15:29 +0100)]
asfdec: fix FATE seek test

8 years agoReplace remaining occurances of av_free_packet with av_packet_unref
Hendrik Leppkes [Tue, 27 Oct 2015 13:35:30 +0000 (14:35 +0100)]
Replace remaining occurances of av_free_packet with av_packet_unref

8 years agoMerge commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457'
Hendrik Leppkes [Tue, 27 Oct 2015 13:28:56 +0000 (14:28 +0100)]
Merge commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457'

* commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457':
  avpacket: Replace av_free_packet with av_packet_unref

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'a5d42043093a39636a1f4021a37dd9c612479f6f'
Hendrik Leppkes [Tue, 27 Oct 2015 13:12:27 +0000 (14:12 +0100)]
Merge commit 'a5d42043093a39636a1f4021a37dd9c612479f6f'

* commit 'a5d42043093a39636a1f4021a37dd9c612479f6f':
  avformat: Always return ref-counted AVPacket

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'f0ca6ffa0ae5d5564516ee7a18aa1e234751444a'
Hendrik Leppkes [Tue, 27 Oct 2015 13:10:04 +0000 (14:10 +0100)]
Merge commit 'f0ca6ffa0ae5d5564516ee7a18aa1e234751444a'

* commit 'f0ca6ffa0ae5d5564516ee7a18aa1e234751444a':
  avprobe: Unref the packet once it is used

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '9cbae3a7d57bd2b862c37fd8123bd1fba680e801'
Hendrik Leppkes [Tue, 27 Oct 2015 13:07:36 +0000 (14:07 +0100)]
Merge commit '9cbae3a7d57bd2b862c37fd8123bd1fba680e801'

* commit '9cbae3a7d57bd2b862c37fd8123bd1fba680e801':
  roqvideodec: use av_frame_copy

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '9f5d6f460ceeda8b4ac29b3249a49e275b64c706'
Hendrik Leppkes [Tue, 27 Oct 2015 13:06:45 +0000 (14:06 +0100)]
Merge commit '9f5d6f460ceeda8b4ac29b3249a49e275b64c706'

* commit '9f5d6f460ceeda8b4ac29b3249a49e275b64c706':
  hap: Set avctx.bits_per_coded_sample

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'fe66671bd5f446f8d0a9c70968ba8fe891efe028'
Hendrik Leppkes [Tue, 27 Oct 2015 13:06:30 +0000 (14:06 +0100)]
Merge commit 'fe66671bd5f446f8d0a9c70968ba8fe891efe028'

* commit 'fe66671bd5f446f8d0a9c70968ba8fe891efe028':
  cmdutils: Check for and report the correct codec capability

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '3c5cf2a31b4b29a8e4282cbe6a3f0617c14698b8'
Hendrik Leppkes [Tue, 27 Oct 2015 13:05:41 +0000 (14:05 +0100)]
Merge commit '3c5cf2a31b4b29a8e4282cbe6a3f0617c14698b8'

* commit '3c5cf2a31b4b29a8e4282cbe6a3f0617c14698b8':
  screenpresso: Drop parameter change check

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '447b5b278c689b21bbb7b5747c8773145cbd9448'
Hendrik Leppkes [Tue, 27 Oct 2015 13:04:47 +0000 (14:04 +0100)]
Merge commit '447b5b278c689b21bbb7b5747c8773145cbd9448'

* commit '447b5b278c689b21bbb7b5747c8773145cbd9448':
  mpegvideo_enc: Fix encoding videos with less frames than the delay of the encoder

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '27eeee76b2546fd313808997b3d07ba9cce94551'
Hendrik Leppkes [Tue, 27 Oct 2015 13:01:18 +0000 (14:01 +0100)]
Merge commit '27eeee76b2546fd313808997b3d07ba9cce94551'

* commit '27eeee76b2546fd313808997b3d07ba9cce94551':
  mpegvideo_enc: Merge ifs with identical conditions

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit 'f0a88d4d2a74534460f4a8b79c448bd5890dbd41'
Hendrik Leppkes [Tue, 27 Oct 2015 13:01:03 +0000 (14:01 +0100)]
Merge commit 'f0a88d4d2a74534460f4a8b79c448bd5890dbd41'

* commit 'f0a88d4d2a74534460f4a8b79c448bd5890dbd41':
  mpegvideo_enc: Factor new_picture unref out

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '533a6198505edd1379e1cd722852350ae4a85acc'
Hendrik Leppkes [Tue, 27 Oct 2015 12:58:44 +0000 (13:58 +0100)]
Merge commit '533a6198505edd1379e1cd722852350ae4a85acc'

* commit '533a6198505edd1379e1cd722852350ae4a85acc':
  innoHeim/Rsupport Screen Capture Codec decoder

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '233d2fa0443197df12b4f7823d591dad964149b3'
Hendrik Leppkes [Tue, 27 Oct 2015 12:47:32 +0000 (13:47 +0100)]
Merge commit '233d2fa0443197df12b4f7823d591dad964149b3'

* commit '233d2fa0443197df12b4f7823d591dad964149b3':
  kvazaar: Add libkvazaar HEVC encoder

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoavformat/aiff: add ADP4 DVI ADPCM support
Paul B Mahol [Tue, 27 Oct 2015 12:24:15 +0000 (13:24 +0100)]
avformat/aiff: add ADP4 DVI ADPCM support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoMerge commit '18f9308e6a96bbeb034ee5213a6d41e0b6c2ae74'
Hendrik Leppkes [Tue, 27 Oct 2015 11:55:51 +0000 (12:55 +0100)]
Merge commit '18f9308e6a96bbeb034ee5213a6d41e0b6c2ae74'

* commit '18f9308e6a96bbeb034ee5213a6d41e0b6c2ae74':
  mpjpeg: Cope with multipart lacking the initial CRLF

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '22f4d9c303ede1a240538fd105c97047db40dc86'
Hendrik Leppkes [Tue, 27 Oct 2015 11:50:56 +0000 (12:50 +0100)]
Merge commit '22f4d9c303ede1a240538fd105c97047db40dc86'

* commit '22f4d9c303ede1a240538fd105c97047db40dc86':
  img2enc: Make sure the images are atomically written

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '1ec72c6c68dbc78bf4ebb6f06c13316dc488bdfa'
Hendrik Leppkes [Tue, 27 Oct 2015 11:48:27 +0000 (12:48 +0100)]
Merge commit '1ec72c6c68dbc78bf4ebb6f06c13316dc488bdfa'

* commit '1ec72c6c68dbc78bf4ebb6f06c13316dc488bdfa':
  libx264: Make sure the extradata are padded

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoMerge commit '5ea5a24eb70646a9061b85af407fcbb5dd4f89fd'
Hendrik Leppkes [Tue, 27 Oct 2015 11:46:21 +0000 (12:46 +0100)]
Merge commit '5ea5a24eb70646a9061b85af407fcbb5dd4f89fd'

* commit '5ea5a24eb70646a9061b85af407fcbb5dd4f89fd':
  movenc: Honor flush requests with delay_moov, when some tracks lack samples

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>