]> git.sesse.net Git - ffmpeg/log
ffmpeg
8 years agoavcodec: Remove libdcadec, we already have it merged internally
Kieran Kunhya [Fri, 25 Mar 2016 21:32:26 +0000 (21:32 +0000)]
avcodec: Remove libdcadec, we already have it merged internally

8 years agoavcodec/h264_slice: Check PPS more extensively when its not copied
Michael Niedermayer [Fri, 25 Mar 2016 14:29:26 +0000 (15:29 +0100)]
avcodec/h264_slice: Check PPS more extensively when its not copied

Fixes Ticket5371
Fixes null pointer dereference

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/segment: set format options for all segments
Marton Balint [Tue, 15 Mar 2016 18:19:20 +0000 (19:19 +0100)]
avformat/segment: set format options for all segments

Fixes ticket #5318.

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agofate: Remove vsync drop from some h264 tests
Michael Niedermayer [Sun, 20 Mar 2016 19:10:40 +0000 (20:10 +0100)]
fate: Remove vsync drop from some h264 tests

Note some tests need vsync drop to produce exact timestamps, these seem not to
need it. quite likely many more dont need it either, ive not checked beyond finding
one that needs it and the ones which have it removed

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: Modify a random h264 test to also test the -framerate option
Michael Niedermayer [Sun, 20 Mar 2016 19:07:14 +0000 (20:07 +0100)]
fate: Modify a random h264 test to also test the -framerate option

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/audiotoolboxenc: Fix compile error on OS X 10.8.
Dan Dennedy [Fri, 25 Mar 2016 04:13:18 +0000 (04:13 +0000)]
avcodec/audiotoolboxenc: Fix compile error on OS X 10.8.

Fixes error "libavcodec/audiotoolboxenc.c:294:50: error: use of undeclared
identifier 'kAudioCodecPropertyPacketSizeLimitForVBR'."

That was added to 10.9:
https://developer.apple.com/library/mac/releasenotes/General/APIDiffsMacOSX10_9/AudioUnit.html

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc/flicvideo: Implement padding in COPY chunks.
Carl Eugen Hoyos [Sat, 26 Mar 2016 13:56:55 +0000 (14:56 +0100)]
lavc/flicvideo: Implement padding in COPY chunks.

Reviewed-by: Reimar
8 years agoavformat/rtpdec: Remove stray debug av_log()
Michael Niedermayer [Sat, 26 Mar 2016 09:50:43 +0000 (10:50 +0100)]
avformat/rtpdec: Remove stray debug av_log()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/exr: add support for B44 and B44A compression
Martin Vignali [Sun, 20 Mar 2016 10:53:27 +0000 (11:53 +0100)]
avcodec/exr: add support for B44 and B44A compression

8 years agoavcodec/jpeg2000dec: add slice threading support
Paul B Mahol [Fri, 25 Mar 2016 13:33:15 +0000 (14:33 +0100)]
avcodec/jpeg2000dec: add slice threading support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/jpeg2000dec: account two last bytes from end of bytestream as EOC marker
Paul B Mahol [Fri, 25 Mar 2016 10:22:39 +0000 (11:22 +0100)]
avcodec/jpeg2000dec: account two last bytes from end of bytestream as EOC marker

This silences missing EOC marker when decoding j2k files with Psot set to 0.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavfi: Add coreimage filter for GPU based image filtering on OSX.
Thilo Borgmann [Sat, 19 Mar 2016 15:28:40 +0000 (16:28 +0100)]
lavfi: Add coreimage filter for GPU based image filtering on OSX.

8 years agolavu/dict: Add new flag to allow multiple equal keys.
Thilo Borgmann [Sat, 12 Mar 2016 13:52:17 +0000 (14:52 +0100)]
lavu/dict: Add new flag to allow multiple equal keys.

8 years agosws/aarch64/yuv2rgb: save a few mul and add
Clément Bœsch [Fri, 25 Mar 2016 14:49:09 +0000 (15:49 +0100)]
sws/aarch64/yuv2rgb: save a few mul and add

27ms to 26ms with UHD 2160 input.

8 years agoavcodec/libopenjpegenc: fix mixed declarations and code
James Almer [Fri, 25 Mar 2016 03:05:05 +0000 (00:05 -0300)]
avcodec/libopenjpegenc: fix mixed declarations and code

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/libopenjpegdec: fix mixed declarations and code
James Almer [Fri, 25 Mar 2016 03:04:57 +0000 (00:04 -0300)]
avcodec/libopenjpegdec: fix mixed declarations and code

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/libutvideodec: copy frame so it has reference counters when refcounted_frames...
Michael Niedermayer [Thu, 24 Mar 2016 19:55:30 +0000 (20:55 +0100)]
avcodec/libutvideodec: copy frame so it has reference counters when refcounted_frames is set

Reviewed-by: maintainer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/parseutils: mark args as static const
Michael Niedermayer [Thu, 24 Mar 2016 18:31:02 +0000 (19:31 +0100)]
avutil/parseutils: mark args as static const

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoAdded more tests to libavutil/parseutils.c
Petru Rares Sincraian [Tue, 22 Mar 2016 15:54:09 +0000 (16:54 +0100)]
Added more tests to libavutil/parseutils.c

    - Added tests for av_find_info_tag().
    - Added test for av_get_known_color_name()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/rtpdec_jpeg: fix low contrast image on low quality setting
Ico Doornekamp [Thu, 24 Mar 2016 13:31:38 +0000 (14:31 +0100)]
avformat/rtpdec_jpeg: fix low contrast image on low quality setting

Original mail and my own followup on ffmpeg-user earlier today:

I have a device sending out a MJPEG/RTP stream on a low quality setting.
Decoding and displaying the video with libavformat results in a washed
out, low contrast, greyish image. Playing the same stream with VLC results
in proper color representation.

Screenshots for comparison:

  http://zevv.nl/div/libav/shot-ffplay.jpg
  http://zevv.nl/div/libav/shot-vlc.jpg

A pcap capture of a few seconds of video and SDP file for playing the
stream are available at

  http://zevv.nl/div/libav/mjpeg.pcap
  http://zevv.nl/div/libav/mjpeg.sdp

I believe the problem might be in the calculation of the quantization
tables in the function create_default_qtables(), the attached patch
solves the issue for me.

The problem is that the argument 'q' is of the type uint8_t. According to the
JPEG standard, if 1 <= q <= 50, the scale factor 'S' should be 5000 / Q.
Because the create_default_qtables() reuses the variable 'q' to store the
result of this calculation, for small values of q < 19, q wil subsequently
overflow and give wrong results in the calculated quantization tables. The
patch below uses a new variable 'S' (same name as in RFC2435) with the proper
range to store the result of the division.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovc2enc: optimize and simplify quantization
Rostislav Pehlivanov [Thu, 24 Mar 2016 13:02:59 +0000 (13:02 +0000)]
vc2enc: optimize and simplify quantization

Everything except ORing the sign is now done in the LUT.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavformat/mpegtsenc: Fix used service
Michael Niedermayer [Wed, 23 Mar 2016 01:58:52 +0000 (02:58 +0100)]
avformat/mpegtsenc: Fix used service

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/mpegtsenc: Keep track of the program for each service
Michael Niedermayer [Wed, 23 Mar 2016 01:52:03 +0000 (02:52 +0100)]
avformat/mpegtsenc: Keep track of the program for each service

Simplifies code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoRefactor libavutil/parseutils.c
Petru Rares Sincraian [Wed, 23 Mar 2016 15:32:56 +0000 (15:32 +0000)]
Refactor libavutil/parseutils.c

All tests were in the main method which produces a long main. Now, each test
is in his own method.

I think this produces a more clear code and follows more with the main
priority of FFmpeg "simplicity and small code size"

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: Add test that also decodes packed_bframes.avi
Michael Niedermayer [Wed, 23 Mar 2016 18:24:43 +0000 (19:24 +0100)]
fate: Add test that also decodes packed_bframes.avi

No new reference samples are needed for this as the file already exists
for testing the bitstream filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovc2enc: simplify calc_slice_sizes()
Rostislav Pehlivanov [Wed, 23 Mar 2016 18:04:05 +0000 (18:04 +0000)]
vc2enc: simplify calc_slice_sizes()

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agovc2enc: correctly zero out the slice size cache
Rostislav Pehlivanov [Wed, 23 Mar 2016 17:48:05 +0000 (17:48 +0000)]
vc2enc: correctly zero out the slice size cache

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agovc2enc: macro out slice size rounding
Rostislav Pehlivanov [Wed, 23 Mar 2016 17:46:23 +0000 (17:46 +0000)]
vc2enc: macro out slice size rounding

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agolavc/psymodel: check for av_malloc failure
Ganesh Ajjanagadde [Thu, 3 Mar 2016 01:14:08 +0000 (20:14 -0500)]
lavc/psymodel: check for av_malloc failure

No idea why in commit 01ecb7172b684f1c4b3e748f95c5a9a494ca36ec the
checks were removed; this can lead to NULL pointer dereferences. This
effectively reverts that portion of the commit.

Reviewed-by: Benoit Fouet <benoit.fouet@free.fr>
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
8 years agoavcodec/dvaudiodec: now that we got samples, fix 12bit case
Paul B Mahol [Wed, 23 Mar 2016 08:26:35 +0000 (09:26 +0100)]
avcodec/dvaudiodec: now that we got samples, fix 12bit case

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavc: add AudioToolbox encoders
Rodger Combs [Wed, 24 Feb 2016 03:01:24 +0000 (21:01 -0600)]
lavc: add AudioToolbox encoders

Fixes trac #4828

8 years agolavc: add AudioToolbox decoders
Rodger Combs [Fri, 19 Feb 2016 03:38:37 +0000 (21:38 -0600)]
lavc: add AudioToolbox decoders

Part of trac #4828

8 years agoall: move ff_exp10, ff_exp10f, ff_fast_powf to lavu/ffmath.h
Ganesh Ajjanagadde [Tue, 15 Mar 2016 01:28:56 +0000 (21:28 -0400)]
all: move ff_exp10, ff_exp10f, ff_fast_powf to lavu/ffmath.h

The idea is to use ffmath.h for internal implementations of math functions.
Currently, it is used for variants of libm functions, but is by no means
limited to such things.

Note that this is not exported; use lavu/mathematics for such purposes.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
8 years agoAdded a selftest to libavutil/display.c
Petru Rares Sincraian [Sun, 20 Mar 2016 08:54:07 +0000 (09:54 +0100)]
Added a selftest to libavutil/display.c

    - Check if av_display_rotation_get() gets the correct degrees
    - Check if av_display_rotation_set() sets the correct matrix
    - Check if av_display_matrix_flip() changes correct the matrix

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovc2enc: add non-experimental support for all video formats from spec
Rostislav Pehlivanov [Mon, 21 Mar 2016 17:32:55 +0000 (17:32 +0000)]
vc2enc: add non-experimental support for all video formats from spec

Until now, for formats which were in the spec but not in the encoder's
list of supported formats required the -strict -1 flag. This enables
support for all video formats which are specified, all the way from
QSIF525 to 8K.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoswresample/swresample: Remove "less than" comparissions of enums
Michael Niedermayer [Tue, 22 Mar 2016 13:11:03 +0000 (14:11 +0100)]
swresample/swresample: Remove "less than" comparissions of enums

Found-by: wm4
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/img2dec: Skip COM when auto-detecting jpeg.
Carl Eugen Hoyos [Tue, 22 Mar 2016 10:13:24 +0000 (11:13 +0100)]
lavf/img2dec: Skip COM when auto-detecting jpeg.

It could theoretically contain invalid data that gets ignored by decoders.

8 years agofate: add audiomatch
Michael Niedermayer [Mon, 21 Mar 2016 03:18:48 +0000 (04:18 +0100)]
fate: add audiomatch

Testset provided by Justin Greer <justin@zencoder.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoconfigure: Remove (b)zlib and iconv dependencies for videoltoolbox encoder.
Carl Eugen Hoyos [Tue, 22 Mar 2016 00:30:33 +0000 (01:30 +0100)]
configure: Remove (b)zlib and iconv dependencies for videoltoolbox encoder.

8 years agortpdec: support for VC-2 HQ RTP payload format (draft v1)
Thomas Volkert [Mon, 21 Mar 2016 23:17:12 +0000 (00:17 +0100)]
rtpdec: support for VC-2 HQ RTP payload format (draft v1)

8 years agoffplay: remove redundant silence buffer
Lukasz Marek [Thu, 17 Mar 2016 17:26:09 +0000 (18:26 +0100)]
ffplay: remove redundant silence buffer

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
8 years agoavformat/utils: scan a bit farther for a keyframe in mpeg/mpegts (7 sec instead of...
Michael Niedermayer [Sat, 19 Mar 2016 20:11:58 +0000 (21:11 +0100)]
avformat/utils: scan a bit farther for a keyframe in mpeg/mpegts (7 sec instead of 5, we already scan 90sec in some cases by default)

Fixes Ticket5305

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovc2enc: simplify count_hq_slice() and caching
Rostislav Pehlivanov [Mon, 21 Mar 2016 11:04:49 +0000 (11:04 +0000)]
vc2enc: simplify count_hq_slice() and caching

The count_hq_slice() function is always used with a SliceArgs struct

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agovc2enc: fix segfault
Rostislav Pehlivanov [Mon, 21 Mar 2016 11:01:01 +0000 (11:01 +0000)]
vc2enc: fix segfault

Fixes trac bug #5353

Uninitialized memory for the initial quantization index

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agolavf/matroskaenc.c: add early support for colour elements
Neil Birkbeck [Mon, 7 Mar 2016 22:42:47 +0000 (14:42 -0800)]
lavf/matroskaenc.c: add early support for colour elements

Adding early support for a subset of the proposed colour elements
according to the latest version of spec:
https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&index=hIKLhMdgTMTEwUTeA4ct38h0tmE

Like matroskadec, I've left out elements for pix_fmt related things
 as there still seems to be some discussion around these.

The new elements are exposed under strict experimental mode.

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_vectorscope: always flip output vertically
Paul B Mahol [Sun, 20 Mar 2016 20:03:43 +0000 (21:03 +0100)]
avfilter/vf_vectorscope: always flip output vertically

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat/mov: read start_pad from edit list start time if codec is aac
Marton Balint [Sat, 20 Feb 2016 19:09:42 +0000 (20:09 +0100)]
avformat/mov: read start_pad from edit list start time if codec is aac

Related to ticket #2324, #2325.

Stream duration still need to be fixed...

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/utils: increase detected start_time with skip_samples
Marton Balint [Sat, 20 Feb 2016 21:39:07 +0000 (22:39 +0100)]
avformat/utils: increase detected start_time with skip_samples

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agotests/gapless: add gapless aac tests
Marton Balint [Mon, 7 Mar 2016 21:57:51 +0000 (22:57 +0100)]
tests/gapless: add gapless aac tests

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agolavf/dv: use c->sys->frame_size in dv_frame_offset()
Clément Bœsch [Sun, 20 Mar 2016 15:14:22 +0000 (16:14 +0100)]
lavf/dv: use c->sys->frame_size in dv_frame_offset()

dv_frame_offset() is static and called only from dv_read_seek(), where
c->sys->frame_size is already used.

This simplifies the incoming codecpar merge where
avctx->{coded_width,coded_height,time_base} are not accessible anymore.

8 years agolavf/dv: reindent after previous commit
Clément Bœsch [Sun, 20 Mar 2016 18:28:07 +0000 (19:28 +0100)]
lavf/dv: reindent after previous commit

8 years agolavf/dv: do not check for c->sys
Clément Bœsch [Sun, 20 Mar 2016 13:24:53 +0000 (14:24 +0100)]
lavf/dv: do not check for c->sys

dv_extract_video_info() is a static function called only from
avpriv_dv_produce_packet(), where c->sys is made sure to be set.

8 years agoffplay: Remove "&& 0" from already disabled debug code
Michael Niedermayer [Fri, 18 Mar 2016 10:27:57 +0000 (11:27 +0100)]
ffplay: Remove "&& 0" from already disabled debug code

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_waveform: set color range for output frames
Paul B Mahol [Sun, 20 Mar 2016 09:00:53 +0000 (10:00 +0100)]
avfilter/vf_waveform: set color range for output frames

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat/utils: Do not wait for more than 1 frame on attachments
Michael Niedermayer [Sat, 19 Mar 2016 21:11:34 +0000 (22:11 +0100)]
avformat/utils: Do not wait for more than 1 frame on attachments

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/wtvdec: Set AVFMTCTX_NOHEADER
Michael Niedermayer [Sat, 19 Mar 2016 21:37:52 +0000 (22:37 +0100)]
avformat/wtvdec: Set AVFMTCTX_NOHEADER

Needed for noStreams.wtv unless something else forces continued parsing (like looking for more than 1
frame in attachments)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_waveform: add graticule to aflat filter
Paul B Mahol [Sat, 19 Mar 2016 20:47:15 +0000 (21:47 +0100)]
avfilter/vf_waveform: add graticule to aflat filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_waveform: add subsampling input support for remaining filters
Paul B Mahol [Sat, 19 Mar 2016 19:44:59 +0000 (20:44 +0100)]
avfilter/vf_waveform: add subsampling input support for remaining filters

Remove achroma filter, as same output can be done with lowpass filter
and multiple components with overlay display.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat/file: Add crypto to default whitelist
Michael Niedermayer [Sat, 19 Mar 2016 17:37:53 +0000 (18:37 +0100)]
avformat/file: Add crypto to default whitelist

Fixes Ticket5287

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/mjpegenc_common: Store approximate aspect if exact cannot be stored
Michael Niedermayer [Sat, 19 Mar 2016 14:41:30 +0000 (15:41 +0100)]
avcodec/mjpegenc_common: Store approximate aspect if exact cannot be stored

Fixes Ticket5244

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_detelecine: Remove redundant declaration
Michael Niedermayer [Sat, 19 Mar 2016 11:26:14 +0000 (12:26 +0100)]
avfilter/vf_detelecine: Remove redundant declaration

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc/hevc: Allow arbitrary garbage in bytestream as long as at least one NAL unit...
Mark Thompson [Thu, 17 Mar 2016 13:41:02 +0000 (13:41 +0000)]
lavc/hevc: Allow arbitrary garbage in bytestream as long as at least one NAL unit is found.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoFix start_frame handling in detelecine filter
Benjamin Steffes [Thu, 17 Mar 2016 22:10:00 +0000 (23:10 +0100)]
Fix start_frame handling in detelecine filter

Signed-off-by: Benjamin Steffes <benjaminst123@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoFix detelecine filter for patterns containing 1
Benjamin Steffes [Thu, 17 Mar 2016 22:09:59 +0000 (23:09 +0100)]
Fix detelecine filter for patterns containing 1

Signed-off-by: Benjamin Steffes <benjaminst123@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/srtdec: do not be strict wrt timing digit lengths
Clément Bœsch [Fri, 18 Mar 2016 15:41:20 +0000 (16:41 +0100)]
lavf/srtdec: do not be strict wrt timing digit lengths

Fixes a sample with 3-length digits for the seconds reported by wm4.

8 years agolavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y)
Ganesh Ajjanagadde [Tue, 8 Mar 2016 02:16:29 +0000 (21:16 -0500)]
lavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y)

This is ~2x faster for y not an integer on Haswell+GCC, and should
generally be faster due to the fact that anyway powf essentially does
this under the hood. Made an inline function in lavu/internal.h for this
purpose.

Note that there are some accuracy differences, that should generally be
negligible. In particular, FATE still passes on this platform.

Results in ~ 7% speedup in aac encoding with -march=native, Haswell+GCC.
before:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  6.05s user 0.06s system 104% cpu 5.821 total

after:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  5.67s user 0.03s system 105% cpu 5.416 total

This is also faster than an alternative approach that pulls in powf, gets rid of
the crufty NaN checks and other special cases, exploits knowledge about the intervals, etc.
This of course does not exclude smarter approaches; just suggests that
there would need to be significant work on this front of lower utility than
searches for hotspots elsewhere.

Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
8 years agovc2enc_dwt: remove outdated comment
Rostislav Pehlivanov [Fri, 18 Mar 2016 14:42:33 +0000 (14:42 +0000)]
vc2enc_dwt: remove outdated comment

Support for Haar was added a month or so ago.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agolavf/avidec: Add blurb regarding the skipping of xxpc entries in the index
Mats Peterson [Fri, 18 Mar 2016 10:09:18 +0000 (11:09 +0100)]
lavf/avidec: Add blurb regarding the skipping of xxpc entries in the index

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovc2enc: increase the starting value of the size scaler
Rostislav Pehlivanov [Fri, 18 Mar 2016 11:55:48 +0000 (11:55 +0000)]
vc2enc: increase the starting value of the  size scaler

In some cases this caused the slice size rounding to generate invalid
slice sizes and overwrite some slices.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavfilter/vf_waveform: add subsampled input support for (a)color filter
Paul B Mahol [Fri, 18 Mar 2016 10:08:32 +0000 (11:08 +0100)]
avfilter/vf_waveform: add subsampled input support for (a)color filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/error_resilience: remove unneeded and disabled code
Michael Niedermayer [Thu, 17 Mar 2016 20:03:17 +0000 (21:03 +0100)]
avcodec/error_resilience: remove unneeded and disabled code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/error_resilience: wait for previous frame to be available
Michael Niedermayer [Fri, 18 Mar 2016 01:11:55 +0000 (02:11 +0100)]
avcodec/error_resilience: wait for previous frame to be available

This is possibly redundant but its more correct

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibwebpenc_animencoder: add missing braces to struct initialization
James Almer [Fri, 18 Mar 2016 00:46:06 +0000 (21:46 -0300)]
libwebpenc_animencoder: add missing braces to struct initialization

The first member of the WebPAnimEncoderOptions struct is non scalar

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/motion_est_template: Fix map cache use in qpel_motion_search()
Michael Niedermayer [Thu, 17 Mar 2016 15:10:12 +0000 (16:10 +0100)]
avcodec/motion_est_template: Fix map cache use in qpel_motion_search()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/segment: Fix "occured" typo
Michael Niedermayer [Thu, 17 Mar 2016 11:17:44 +0000 (12:17 +0100)]
avformat/segment: Fix "occured" typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibwebpenc_animencoder: print library messages in verbose log levels
James Almer [Thu, 17 Mar 2016 04:01:02 +0000 (01:01 -0300)]
libwebpenc_animencoder: print library messages in verbose log levels

Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agolibwebpenc_animencoder: zero initialize the WebPAnimEncoderOptions struct
James Almer [Thu, 17 Mar 2016 03:50:08 +0000 (00:50 -0300)]
libwebpenc_animencoder: zero initialize the WebPAnimEncoderOptions struct

This zeroes the WebPAnimEncoderOptions.verbose field, silencing library info messages
printed to stderr.

Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavformat/avio: Fix unknown protocol handling
Michael Niedermayer [Thu, 17 Mar 2016 00:53:02 +0000 (01:53 +0100)]
avformat/avio: Fix unknown protocol handling

Fixes regression since bb8cc89b2986df6f60831b67cd250da312cce1d0

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoFix detelecine filter for patterns like 3444 or 33333334.
Benjamin Steffes [Mon, 14 Mar 2016 12:44:24 +0000 (13:44 +0100)]
Fix detelecine filter for patterns like 3444 or 33333334.

Signed-off-by: Benjamin Steffes <benjaminst123@gmail.com>
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
8 years agoavcodec/resample: Remove disabled and faulty code
Michael Niedermayer [Wed, 16 Mar 2016 18:40:32 +0000 (19:40 +0100)]
avcodec/resample: Remove disabled and faulty code

Fixes Ticket5345

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoconfigure: check for SEC_I_CONTEXT_EXPIRED before enabling SChannel
Hendrik Leppkes [Wed, 16 Mar 2016 14:23:28 +0000 (15:23 +0100)]
configure: check for SEC_I_CONTEXT_EXPIRED before enabling SChannel

Fixes build on mingw32, which lacks this constant.

8 years agodxva2_h264: fix size alignment asserts
Hendrik Leppkes [Wed, 16 Mar 2016 12:12:59 +0000 (13:12 +0100)]
dxva2_h264: fix size alignment asserts

Convert them to av_assert0 in the process

8 years agomatroskaenc: set the actual PCM bitdepth in the header
Hendrik Leppkes [Wed, 16 Mar 2016 11:39:19 +0000 (12:39 +0100)]
matroskaenc: set the actual PCM bitdepth in the header

The actual bitdepth can be different to the storage format (ie. sample format).
Fixes the stored bitdepth for 24-bit formats like FLAC.

8 years agolavc/dxva2_h264: Fix incorrect assert statement.
Matt Oliver [Wed, 16 Mar 2016 11:28:29 +0000 (22:28 +1100)]
lavc/dxva2_h264: Fix incorrect assert statement.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
8 years agoindeo2: Fix banding artefacts
Luca Barbato [Tue, 23 Feb 2016 00:58:19 +0000 (19:58 -0500)]
indeo2: Fix banding artefacts

Rename luma table to delta table and change how it is used.

CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
(cherry picked from commit f8c34f4b8d62afad3f63cf3d9617d73735bef8c1)

8 years agoindeo2data: K&R formatting cosmetics
Luca Barbato [Tue, 23 Feb 2016 00:58:18 +0000 (19:58 -0500)]
indeo2data: K&R formatting cosmetics

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
(cherry picked from commit d4066a702407352a0648af882c34ea81a404fa2b)

8 years agohls: handle crypto in the protocol checks
Hendrik Leppkes [Mon, 14 Mar 2016 11:19:31 +0000 (12:19 +0100)]
hls: handle crypto in the protocol checks

Fixes issue 5248

8 years agohls: read protocol options through the AVIOContext
Hendrik Leppkes [Mon, 14 Mar 2016 10:38:20 +0000 (11:38 +0100)]
hls: read protocol options through the AVIOContext

This reverts commit 9f9ed79d4cb40e5d9093899f8a79086ff23da844.

The hlsopts member was never set anywhere and always NULL, furthermore
the HLS demuxer needs to retrieve the proper options from the underlying
http protocol (cookies, user-agent, etc), so a dummy context won't help.

Instead, use the AVIOContext directly to access the options.

8 years agoconfigure: Use lowercase includes/library names for schannel check.
İsmail Dönmez [Tue, 8 Mar 2016 12:45:16 +0000 (14:45 +0200)]
configure: Use lowercase includes/library names for schannel check.

Fixes cross-build on Linux with mingw-w64.

Reviewed-by: Reimar Döffinger
Reviewed-by: Hendrik Leppkes
8 years agoavfilter/vf_bwdif: Add yadif base information to copyright header
Thomas Mundt [Tue, 15 Mar 2016 15:04:20 +0000 (16:04 +0100)]
avfilter/vf_bwdif: Add yadif base information to copyright header

Signed-off-by: Thomas Mundt <loudmax@yahoo.de>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agolavf/segment: change type of increment_tc to BOOL
Stefano Sabatini [Tue, 15 Mar 2016 16:50:00 +0000 (17:50 +0100)]
lavf/segment: change type of increment_tc to BOOL

8 years agolavf/segment: add increment_tc option
Martin Vignali [Sun, 28 Feb 2016 20:36:42 +0000 (21:36 +0100)]
lavf/segment: add increment_tc option

For example you can split a file, keeping a continuous timecode between
each segment:
ffmpeg -i src.mov -timecode 10:00:00:00 -vcodec copy -f segment \
-segment_time 2 -reset_timestamps 1 -increment_tc 1 target_%03d.mov

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
8 years agoavcodec/mediacodec_sw_buffer: remove redundant article
Michael Niedermayer [Tue, 15 Mar 2016 02:20:17 +0000 (03:20 +0100)]
avcodec/mediacodec_sw_buffer: remove redundant article

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc/mediacodec: remove stray empty lines
Matthieu Bouron [Mon, 14 Mar 2016 18:41:53 +0000 (19:41 +0100)]
lavc/mediacodec: remove stray empty lines

8 years agolavc/mediacodec: fix codec_name leak
Matthieu Bouron [Mon, 14 Mar 2016 18:27:14 +0000 (19:27 +0100)]
lavc/mediacodec: fix codec_name leak

8 years agoavfilter/vf_waveform: add forgotten color and acolor filter to switch case
Paul B Mahol [Tue, 15 Mar 2016 08:15:03 +0000 (09:15 +0100)]
avfilter/vf_waveform: add forgotten color and acolor filter to switch case

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavutil/dict: add warning to docs about invalidating existing entries when adding...
Marton Balint [Sat, 6 Feb 2016 16:43:03 +0000 (17:43 +0100)]
avutil/dict: add warning to docs about invalidating existing entries when adding a new entry

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavutil/dict: do not realloc entries when deleting a non-existing item
Marton Balint [Sat, 6 Feb 2016 16:23:02 +0000 (17:23 +0100)]
avutil/dict: do not realloc entries when deleting a non-existing item

Deleting a non-existing item should not invalidate existing entries returned
with av_dict_get.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavcodec/pthread_frame: Remove unused variable
Michael Niedermayer [Mon, 14 Mar 2016 22:57:34 +0000 (23:57 +0100)]
avcodec/pthread_frame: Remove unused variable

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/aactab: do not use floats for constants
Marton Balint [Sat, 5 Mar 2016 03:24:45 +0000 (04:24 +0100)]
avcodec/aactab: do not use floats for constants

This may improve the precision of the fixed point encoder/decoder for some
compilers and architectures.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>