]> git.sesse.net Git - ffmpeg/log
ffmpeg
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>
8 years agoMerge commit 'e02dcdf6bb6835ef4b49986b85a67efcb3495a7f'
Hendrik Leppkes [Tue, 27 Oct 2015 11:41:37 +0000 (12:41 +0100)]
Merge commit 'e02dcdf6bb6835ef4b49986b85a67efcb3495a7f'

* commit 'e02dcdf6bb6835ef4b49986b85a67efcb3495a7f':
  rtsp: Allow $ as interleaved packet indicator before a complete response header

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

* commit 'dca23ffbc7568c9af5c5fbaa86e6a0761ecae50c':
  lavc: Deprecate AVPicture structure and related functions

Deprecation flag on AVPicture struct replaced by a comment, as it causes
excess deprecation warnings for every include of avcodec.h

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agodoc/filters.texi: ebur128 grammar fix
Kyle Swanson [Mon, 26 Oct 2015 22:44:33 +0000 (17:44 -0500)]
doc/filters.texi: ebur128 grammar fix

Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofix: assigning instead of comparing
AppChecker [Mon, 26 Oct 2015 17:21:07 +0000 (20:21 +0300)]
fix: assigning instead of comparing

Signed-off-by: AppChecker <support.appc@cnpo.ru>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec: disallow hwaccel with frame threads
Hendrik Leppkes [Fri, 23 Oct 2015 11:54:25 +0000 (13:54 +0200)]
avcodec: disallow hwaccel with frame threads

HWAccels with frame threads are fundamentally flawed in avcodecs current
design, and there are several known problems ranging from image corruption
to driver crashes.

These problems come down to two design problems in the interaction of
threads and HWAccel decoding:

(1)
While avcodec prevents parallel decoding and as such simultaneous access
to the hardware accelerator from the decoding threads, it cannot account
for the user code and its access to the hardware surfaces and the hardware
itself.

This can result in image corruption or even driver crashes if the
user code locks image surfaces while they are being used by the decoder
threads as reference frames.

The current HWAccel API does not offer any way to ensure exclusive access
to the hardware or the surfaces if frame threading is used.

(2)
Initialization of the HWAccel with frame threads is non-trivial, and many
decoders had and still have issues that cause excess calls to the
get_format callback.

This will potentially cause duplicate HWAccel initialization, which in
extreme cases can even lead to driver crashes if the HWAccel is
re-initialized while the user code is actively accessing the hardware
surfaces associated with it, or lead to image corruption due to lost
reference frames.

While both of these issues are solvable, fixing (1) would at least require
a huge API redesign which would move a lot of complexity into the user
code.

The only reason the combination of frame threads and HWAccel was
considered useful is to allow a seamless fallback to multi-threaded
software decoding if the HWAccel is not available, however the issues
outlined above far outweigh this.

The proper solution for a fallback is to re-open the AVCodecContext with
threading enabled if the HWAccel failed, which is a practice commonly used
by various user applications using avcodec today already.

Reviewed-by: Gwenole Beauchesne <gb.devel@gmail.com>
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
8 years agoFATE: Increase FUZZ value on AAC LTP encoding test
Rostislav Pehlivanov [Tue, 27 Oct 2015 07:41:33 +0000 (07:41 +0000)]
FATE: Increase FUZZ value on AAC LTP encoding test

Clang prerelease on Darwin is making the test fail.

8 years agosrtenc: Reindent
Timothy Gu [Tue, 27 Oct 2015 06:24:45 +0000 (23:24 -0700)]
srtenc: Reindent

8 years agodrawutils: Reindent
Timothy Gu [Tue, 27 Oct 2015 06:24:30 +0000 (23:24 -0700)]
drawutils: Reindent

8 years agoavfilter: Reindent
Timothy Gu [Tue, 27 Oct 2015 06:24:18 +0000 (23:24 -0700)]
avfilter: Reindent

8 years agoavcodec: srtdec: Reindent
Timothy Gu [Tue, 27 Oct 2015 06:23:59 +0000 (23:23 -0700)]
avcodec: srtdec: Reindent

8 years agox86/vf_w3fdif: use aligned loads in w3fdif_complex_high
James Almer [Tue, 27 Oct 2015 04:49:22 +0000 (01:49 -0300)]
x86/vf_w3fdif: use aligned loads in w3fdif_complex_high

Found-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoFATE: Slightly increase thresholds on prediction AAC encoding tests
Rostislav Pehlivanov [Tue, 27 Oct 2015 03:48:17 +0000 (03:48 +0000)]
FATE: Slightly increase thresholds on prediction AAC encoding tests

They barely fail on some systems by being off by 0.81.