ffmpeg.git
3 years agoChangelog: Fix minor formating inconsistency n3.0.2
Michael Niedermayer [Thu, 28 Apr 2016 01:03:39 +0000 (03:03 +0200)]
Changelog: Fix minor formating inconsistency

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoupdate for 3.0.2
Michael Niedermayer [Wed, 27 Apr 2016 23:40:54 +0000 (01:40 +0200)]
update for 3.0.2

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/ttaenc: Reallocate packet if its too small
Michael Niedermayer [Tue, 26 Apr 2016 17:17:19 +0000 (19:17 +0200)]
avcodec/ttaenc: Reallocate packet if its too small

Fixes assertion failure
Fixes Ticket5394

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 005c61c6b8982f977e415aa69d2d2b42e6b7f3f2)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoconfigure: build fix for P5600 with mips code restructuring
Shivraj Patil [Tue, 26 Apr 2016 06:47:15 +0000 (12:17 +0530)]
configure: build fix for P5600 with mips code restructuring

Note:- backporting commit 15ef98afd10b3696d29fb6d19606ba03a9dd47ad from head

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agomips: add support for R6
Vicente Olivert Riera [Tue, 26 Apr 2016 06:47:14 +0000 (12:17 +0530)]
mips: add support for R6

Note:- backporting commit ad16eff64ba78d8dc98a8324640025c7cb2857f3 from head

Understanding the mips32r6 and mips64r6 ISAs in the configure script is
not enough. In order to have full support for MIPS R6 in FFmpeg we need
to be able to build it, and for that we need to make sure we don't use
incompatible assembler code which makes the build fail. Ifdefing the
offending code is sufficient to fix the problem.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agopgssubdec: fix subpicture output colorspace and range
Jan Ekström [Sun, 24 Apr 2016 14:30:56 +0000 (17:30 +0300)]
pgssubdec: fix subpicture output colorspace and range

Functionality used before didn't widen the values from limited to
full range. Additionally, now the decoder uses BT.709 where it
should be used according to the video resolution.

Default for not yet set colorimetry is BT.709 due to most observed
HDMV content being HD.

BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.

Fixes #4637
(cherry picked from commit 9779b6262471d553c1ed811ff7312564e39d8adf)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/ac3dec: Reset SPX when switching from EAC3 to AC3
Michael Niedermayer [Mon, 25 Apr 2016 02:08:21 +0000 (04:08 +0200)]
avcodec/ac3dec: Reset SPX when switching from EAC3 to AC3

Fixes Ticket5319

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9ac154d1facd4756db6918f866dccf3e3ffb698c)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_drawtext: Check return code of load_glyph()
Michael Niedermayer [Sun, 24 Apr 2016 10:30:20 +0000 (12:30 +0200)]
avfilter/vf_drawtext: Check return code of load_glyph()

Fixes segfault
Fixes Ticket5347

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2e67a99fbc6b99315925de40fc6fa7161576be10)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/mux: Check that deinit is set before calling it
Michael Niedermayer [Sun, 24 Apr 2016 10:07:37 +0000 (12:07 +0200)]
avformat/mux: Check that deinit is set before calling it

Fixes null pointer dereference

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c84ba07db4abd123b2ad93784e312a24d9341553)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/takdec: add code that got somehow lost in process of REing
Paul B Mahol [Wed, 20 Apr 2016 20:45:05 +0000 (22:45 +0200)]
avcodec/takdec: add code that got somehow lost in process of REing

Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 38797a8033d061ade58b30b8ac86da222fe42a84)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/apedec: fix decoding of stereo files with one channel full of silence
Paul B Mahol [Tue, 12 Apr 2016 08:51:30 +0000 (10:51 +0200)]
avcodec/apedec: fix decoding of stereo files with one channel full of silence

Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 9149e9c0baaec122bc3da925d6068dffa60b5427)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/avpacket: Fix off by 5 error
Michael Niedermayer [Wed, 20 Apr 2016 20:38:26 +0000 (22:38 +0200)]
avcodec/avpacket: Fix off by 5 error

Fixes out of array read
Fixes: mozilla bug 1266129
Found-by: Tyson Smith
Tested-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9f36ea57ae6eefb42432220feab0350494f4144c)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/h264: Fix for H.264 configuration parsing
Ivan [Tue, 12 Apr 2016 20:32:04 +0000 (16:32 -0400)]
avcodec/h264: Fix for H.264 configuration parsing

Sometimes video fails to decode if H.264 configuration changes mid stream.
The reason is that configuration parser assumes that nal_ref_idc is equal to 11b
while actually some codecs but 01b there. The H.264 spec is somewhat
vague about this but it looks like it allows any non-zero nal_ref_idc for sps/pps.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3a727606c474d3d0b9efa3c900294a84bdb5e331)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/bmp_parser: Ensure remaining_size is not too small in startcode packet crossi...
Michael Niedermayer [Thu, 14 Apr 2016 13:10:31 +0000 (15:10 +0200)]
avcodec/bmp_parser: Ensure remaining_size is not too small in startcode packet crossing corner case

Fixes Ticket 5438

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8e26bdd59bf559d00c7e60c53fff292de10139ff)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/pngdec: Fix alpha detection with skip_frame
Michael Niedermayer [Fri, 8 Apr 2016 22:47:10 +0000 (00:47 +0200)]
avcodec/pngdec: Fix alpha detection with skip_frame

Fixes Ticket4816

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d433623fba2b273491ff7dda401648e7d07e19fe)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoChangelog: Make formating consistent
Michael Niedermayer [Mon, 4 Apr 2016 20:45:14 +0000 (22:45 +0200)]
Changelog: Make formating consistent

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/src_movie: fix how we check for overflows with seek_point
Marios Titas [Sat, 2 Apr 2016 18:11:44 +0000 (21:11 +0300)]
avfilter/src_movie: fix how we check for overflows with seek_point

Currently, if the movie source filter is used and a seek_point is
specified on a file that has a negative start time, ffmpeg will fail.

An easy way to reproduce this is as follows:
$ ffmpeg -vsync passthrough -filter_complex 'color=d=10,setpts=PTS-1/TB' test.mp4
$ ffmpeg -filter_complex 'movie=filename=test.mp4:seek_point=2' -f null -

The problem is caused by checking for int64_t overflow the wrong way.
In general, to check whether a + b overflows, it is not enough to do:
    a > INT64_MAX - b
because b might be negative; the correct way is:
    b > 0 && > a > INT64_MAX - b

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c1f9734f977f59bc0034096afbe8e43e40d93a5d)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/j2kenc: Add attribution to OpenJPEG project:
Aaron Boxer [Thu, 31 Mar 2016 20:02:14 +0000 (16:02 -0400)]
avcodec/j2kenc: Add attribution to OpenJPEG project:

http://ghostscript.com/~tor/gs-browse/gs/openjpeg/libopenjpeg/t1.c

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b6b4b0a65e02495edf9d7e5b23bef99a92921147)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/Doxyfile: update for 3.0.1 n3.0.1
Michael Niedermayer [Tue, 29 Mar 2016 02:25:48 +0000 (04:25 +0200)]
doc/Doxyfile: update for 3.0.1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoChangelog: update
Michael Niedermayer [Tue, 29 Mar 2016 01:53:36 +0000 (03:53 +0200)]
Changelog: update

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/diracdec: check bitstream size related fields for overflows
Michael Niedermayer [Mon, 28 Mar 2016 02:01:08 +0000 (04:01 +0200)]
avcodec/diracdec: check bitstream size related fields for overflows

Fixes segfault
Fixes Ticket5333

Regression since bfc8a4dabe5a0154b31128b59dca575010176441
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8f2a1990c06df73cf58401c8ba193711eb8947e7)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit c50be7a52bc1e8e18a0059e489743ec12a43f257)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/svag: fix division by zero
James Almer [Tue, 29 Mar 2016 00:34:08 +0000 (21:34 -0300)]
avformat/svag: fix division by zero

Fixes ticket #5386

Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit d5a3578350a3901a26df39df196bb085760ec46f)

3 years agoChangelog: update for 3.0.1's vc2enc fixes
Rostislav Pehlivanov [Mon, 28 Mar 2016 16:04:23 +0000 (17:04 +0100)]
Changelog: update for 3.0.1's vc2enc fixes

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agovc2enc: correctly zero out coefficient array padding
Rostislav Pehlivanov [Fri, 26 Feb 2016 12:21:36 +0000 (12:21 +0000)]
vc2enc: correctly zero out coefficient array padding

Credit for figuring this out goes to James Darnley.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
(cherry picked from commit 3ef10406e19663a78791ed1b38178fb00d4c7d88)

3 years agoChangelog: update for 3.0.1's aacenc optimizations
Rostislav Pehlivanov [Mon, 28 Mar 2016 15:59:14 +0000 (16:59 +0100)]
Changelog: update for 3.0.1's aacenc optimizations

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 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>
(cherry picked from commit bccc81dfa08e6561df6ed37860e3a08f7d983825)

3 years agoaacenc_utils: Use temporary variable.
Reimar Döffinger [Sun, 6 Mar 2016 20:25:11 +0000 (21:25 +0100)]
aacenc_utils: Use temporary variable.

This ensures gcc does not create unnecessary
loads or stores and possibly even does not vectorize
the negation.
Speeds up mp3 to aac transcoding with default settings
by 10% when using "gcc (Debian 5.3.1-10) 5.3.1 20160224".

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit b60dfae7af65c4c7d255ef599352f2c54964303d)

3 years agoaacenc: avoid double in quantize_bands.
Reimar Döffinger [Tue, 1 Mar 2016 21:53:18 +0000 (22:53 +0100)]
aacenc: avoid double in quantize_bands.

I cannot see any point whatsoever to use
double here instead of float, the results
are likely identical in all cases..
Using float allows for much more
efficient use of SIMD.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit 0a04c2885f02f7db6b410b6d43d120e5eb48dc18)

3 years agolavc/aacenc_utils: replace sqrtf(Q*sqrtf(Q)) by precomputed value
Ganesh Ajjanagadde [Tue, 1 Mar 2016 03:16:16 +0000 (22:16 -0500)]
lavc/aacenc_utils: replace sqrtf(Q*sqrtf(Q)) by precomputed value

It makes no sense whatsoever to do this at each function call; we
already have a table for this.

Yields a 2x improvement in find_min_book (x86-64, Haswell+GCC):
ffmpeg -i sin.flac -acodec aac -y sin.aac
find_min_book
old
    605 decicycles in find_min_book, 8388453 runs,    155 skips.9x
    606 decicycles in find_min_book,16776912 runs,    304 skips.9x
    607 decicycles in find_min_book,33553819 runs,    613 skips.2x
    607 decicycles in find_min_book,67107668 runs,   1196 skips.3x
    607 decicycles in find_min_book,134215360 runs,   2368 skips3x

new
    359 decicycles in find_min_book, 8388552 runs,     56 skips.3x
    360 decicycles in find_min_book,16777112 runs,    104 skips.1x
    361 decicycles in find_min_book,33554218 runs,    214 skips.4x
    361 decicycles in find_min_book,67108381 runs,    483 skips.5x
    361 decicycles in find_min_book,134216725 runs,   1003 skips5x

and more importantly a non-negligible speedup (~ 8%) to overall AAC encoding:
old:
ffmpeg -i sin.flac -acodec aac -strict -2 -y sin_new.aac  6.82s user 0.03s system 104% cpu 6.565 total
new:
ffmpeg -i sin.flac -acodec aac -strict -2 -y sin_old.aac  6.24s user 0.03s system 104% cpu 5.993 total

This also improves accuracy of the expression by ~ 2 ulp in some cases.

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
(cherry picked from commit bd9c58756a50b52e495b748d6ea6b0aafe397c25)

3 years agoUpdate for 3.0.1
Michael Niedermayer [Sat, 26 Mar 2016 21:37:41 +0000 (22:37 +0100)]
Update for 3.0.1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit 0cd9ff4e3aa23318a855c21d60b1c9035b2b99d2)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit e3e6a2cff4af9542455d416faec4584d5e823d5d)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit 26811fd9468dc484402faca3ca33cacb2e58c53e)

Conflicts:

libavformat/version.h

3 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>
(cherry picked from commit 50d017a28171177b89c367194ec8d02f963e7e9e)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit efa98cdc2ff17a2f3b0ceb69e22864fd5bc433db)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit 068026b0f7845e0f1850094d974f60d181480d64)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit fbec157ea08f61063847bbe0dba28525e6283ff5)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit 50ef7361cb5f78c94da2323f3bae86c6bbd618c8)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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)
(cherry picked from commit 73f3c8f73edf0a69502233b2c50fa9e7104f99ec)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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)
(cherry picked from commit 522ab0b9a92962edda7156a91a494a1e2b8a7f64)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/hlsenc: Fix passing options, regression since bc9a5965c815cf7fd998d8ce14a18b...
Michael Niedermayer [Thu, 10 Mar 2016 23:29:59 +0000 (00:29 +0100)]
avformat/hlsenc: Fix passing options, regression since bc9a5965c815cf7fd998d8ce14a18b8e861dd9ce

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b2ab3398f59ed18a565063584f961ff84484d699)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/random_seed: Add the runtime in cycles of the main loop to the entropy pool
Michael Niedermayer [Wed, 9 Dec 2015 14:18:53 +0000 (15:18 +0100)]
avutil/random_seed: Add the runtime in cycles of the main loop to the entropy pool

This should theoretically improve the randomness slightly

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2540d884f3fd7cfac503e048112098967be2569a)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsing
Martin Cracauer [Tue, 1 Dec 2015 22:59:36 +0000 (17:59 -0500)]
avutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsing

Trying to make heads and tails out of DTS 6.1 I can across this typo.

I also noticed that this wiki page is incorrect or misleading, the
channel order for 6.1 given does not match the source code.  At the
least it should be clarified that the layout given does not apply to
DTS.  https://trac.ffmpeg.org/wiki/AudioChannelManipulation

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 73d1398f0c4ce2de16790f46e05a79242137d153)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/concatdec: set safe mode to enabled instead of auto
Michael Niedermayer [Tue, 19 Jan 2016 21:13:14 +0000 (22:13 +0100)]
avformat/concatdec: set safe mode to enabled instead of auto

This is safer, as a selected demuxer could still mean that it was auto-detected
by a user application

Reviewed-previously-by: Nicolas George <george@nsup.org>
Reviewed-previously-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 689211d5727231c3fe92762d224dbadebdbf4e30)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/utils: fix dts from pts code in compute_pkt_fields() during ascending delay
Michael Niedermayer [Tue, 8 Mar 2016 01:42:10 +0000 (02:42 +0100)]
avformat/utils: fix dts from pts code in compute_pkt_fields() during ascending delay

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit de1de4932419d0fb49c9c23f62e68cdbe90d0ee3)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/rtpenc: Fix integer overflow in NTP_TO_RTP_FORMAT
Boris Nagels [Sun, 6 Mar 2016 15:31:36 +0000 (16:31 +0100)]
avformat/rtpenc: Fix integer overflow in NTP_TO_RTP_FORMAT

RTCP synchronization packet was broken since commit in ffmpeg version > 2.8.3
(commit: e04b039b1528f4c7df5c2b93865651bfea168a19) Since this commit (2e814d0329aded98c811d0502839618f08642685)
"rtpenc: Simplify code by introducing a macro for rescaling NTP timestamps", NTP_TO_RTP_FORMAT
uses av_rescale_rnd() function to add the data to the packet.

This causes an overflow in the av_rescale_rnd() function and it will return INT64_MIN.
Causing the NTP stamp in the RTCP packet to have an invalid value.

Github: Closes #182

Reverting commit '2e814d0329aded98c811d0502839618f08642685' solves the problem.
(cherry picked from commit 1109ed7973c7fd1e7001898adc4976590d862122)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/dca: clear X96 channels if nothing was decoded
foo86 [Wed, 2 Mar 2016 19:31:10 +0000 (22:31 +0300)]
avcodec/dca: clear X96 channels if nothing was decoded

The first X96 channel set can have more channels than core, causing X96
decoding to be skipped. Clear the number of decoded X96 channels to zero
in this rudimentary case.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit db44b599805fdd96940cf2e5a336f872648bbda1)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate/aac: Increase fuzz from of fate-aac-pns-encode from 72 to 74 for Loongson
Michael Niedermayer [Sat, 5 Mar 2016 20:58:16 +0000 (21:58 +0100)]
fate/aac: Increase fuzz from of fate-aac-pns-encode from 72 to 74 for Loongson

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c78a7267175a3d1e07b88be42f949f95124925e3)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/cache: Fix memleak of tree entries
Michael Niedermayer [Wed, 2 Mar 2016 13:09:23 +0000 (14:09 +0100)]
avformat/cache: Fix memleak of tree entries

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 554f6e930ce05a4c5449efcaae36bdafe2d9de74)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216
Rodger Combs [Tue, 23 Feb 2016 00:34:01 +0000 (18:34 -0600)]
lavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216
(cherry picked from commit 22dbc1caaf13e4bb17c9e0164a5b1ccaf490e428)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/mov: fix sidx with edit lists
Rodger Combs [Thu, 18 Feb 2016 18:57:37 +0000 (12:57 -0600)]
lavf/mov: fix sidx with edit lists
(cherry picked from commit 3617e69d50dd9dd07b5011dfb9477a9d1a630354)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mjpegdec: Fix decoding slightly odd progressive jpeg
Michael Niedermayer [Sun, 28 Feb 2016 17:10:23 +0000 (18:10 +0100)]
avcodec/mjpegdec: Fix decoding slightly odd progressive jpeg

Fixes: ebd58db6-dc86-11e5-91c2-59daeddf50c7.jpg

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c6f4720b8664e6e22eb5b3da6bb48ed5b113f746)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale/utils: Fix chrSrcHSubSample for GBRAP16
Michael Niedermayer [Tue, 23 Feb 2016 22:48:11 +0000 (23:48 +0100)]
swscale/utils: Fix chrSrcHSubSample for GBRAP16

Fixes part of Ticket5264

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 67e5bd0c501f7568fc8d93284d0f7eb40663ab06)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale/input: Fix GBRAP16 input
Michael Niedermayer [Tue, 23 Feb 2016 22:14:03 +0000 (23:14 +0100)]
swscale/input: Fix GBRAP16 input

Fixes part of Ticket5264

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit df36257a53561a51af969a6ea6319dd2579509b9)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/pixdesc: Make get_color_type() aware of CIE XYZ formats
Michael Niedermayer [Mon, 22 Feb 2016 02:31:34 +0000 (03:31 +0100)]
avutil/pixdesc: Make get_color_type() aware of CIE XYZ formats

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1ec7a703806049265991723a8826bd61555edef4)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/h264: Execute error concealment before marking the frame as done.
Michael Niedermayer [Fri, 19 Feb 2016 00:31:16 +0000 (01:31 +0100)]
avcodec/h264: Execute error concealment before marking the frame as done.

Fixes race condition causing artifacts
Fixes Ticket4122

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 98a0053d0f90e3309dc1038b1bae3a48bbd9067c)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale/x86/output: Fix yuv2planeX_16* with unaligned destination
Michael Niedermayer [Tue, 16 Feb 2016 23:14:56 +0000 (00:14 +0100)]
swscale/x86/output: Fix yuv2planeX_16* with unaligned destination

Reviewed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f6492a2ea8df80be0ed9591aee4019cef0e36e99)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale/x86/output: Move code into yuv2planeX_mainloop
Michael Niedermayer [Wed, 17 Feb 2016 03:15:29 +0000 (04:15 +0100)]
swscale/x86/output: Move code into yuv2planeX_mainloop

Reviewed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d07f6e5f1c36be675e0900edba3e40a32f05f0f4)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoMAINTAINERS: add myself as an OS/2 maintainer
KO Myung-Hun [Mon, 15 Feb 2016 04:16:23 +0000 (13:16 +0900)]
MAINTAINERS: add myself as an OS/2 maintainer

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 346ec917646c18fc9e26bddf04bfa8f8f1e2e18f)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 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>
(cherry picked from commit f875ba48739f59691661393eed1f7cc2371c93f1)

3 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>
(cherry picked from commit 626b6b769ced6d3e55d2661985ab2a1cb89f481e)

3 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.

3 years agolavf/http: Add httpproxy to the default protocol whitelist.
Carl Eugen Hoyos [Mon, 14 Mar 2016 15:33:57 +0000 (16:33 +0100)]
lavf/http: Add httpproxy to the default protocol whitelist.
(cherry picked from commit 58fa694978735e30f433f8ede6c7f808b9409919)

3 years agodoc/utils: fix typo for min() description
Paul B Mahol [Wed, 2 Mar 2016 10:20:07 +0000 (11:20 +0100)]
doc/utils: fix typo for min() description

Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit bdf474bcff29f5b40fe14f6fa1dbe10e69c73ab7)
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
3 years agoffserver&ffm: Fixed issues preventing ffserver write_index and files_size from being...
Oliver Collyer [Sat, 20 Feb 2016 07:33:49 +0000 (09:33 +0200)]
ffserver&ffm: Fixed issues preventing ffserver write_index and files_size from being set correctly which was breaking ffserver streaming.

I discovered that ffserver streaming was broken (it seems like it has been since 20th November) and I opened a ticket for this (https://trac.ffmpeg.org/ticket/5250 <https://trac.ffmpeg.org/ticket/5250>).

I spent yesterday learning git bisect (with the kind help of cehoyos) to painstakingly track down the cause. This was made more difficult due to the presence of a segfault in ffserver during the period where the bug was introduced so I first had to identify when and how that was fixed and then retrospectively apply that fix again for each step of the second git bisect to find the actual bug.

Anyway, the fruits of my labour are the innocent looking patch below to correct a couple of typos and define a valid range for two variables.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a2f8beef2dfaee573f7c4a607afaa9e83fc2c1e0)

3 years agopostproc: fix unaligned access
Carl Eugen Hoyos [Tue, 23 Feb 2016 14:50:28 +0000 (15:50 +0100)]
postproc: fix unaligned access

Based on 59074310 by Andreas Cadhalpun.
Fixes ticket #5259.
(cherry picked from commit 2aa21eec1adcb3737be59f0eab7081c5a790faa9)

3 years agovc2enc: fix use of uninitialized variables in the rate control system
Rostislav Pehlivanov [Mon, 15 Feb 2016 12:08:11 +0000 (12:08 +0000)]
vc2enc: fix use of uninitialized variables in the rate control system

Fixes: CID1352550
Fixes: CID1352549

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
(cherry picked from commit 7cdea450c67d24a3503a0eb64f491f58e474973f)

3 years agofate/source-check.sh: Use "git show" instead of git --version to test for git n3.0
Michael Niedermayer [Mon, 15 Feb 2016 02:40:32 +0000 (03:40 +0100)]
fate/source-check.sh: Use "git show" instead of git --version to test for git

This fixes fate with non git source trees

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 295de3efc53efa3945c3116b5a910b1464632358)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/cfhd: Temporary disable frame threading until related bugs have been fixed
Michael Niedermayer [Mon, 15 Feb 2016 02:10:09 +0000 (03:10 +0100)]
avcodec/cfhd: Temporary disable frame threading until related bugs have been fixed

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agox86: use the new helper macros where useful
James Almer [Sun, 7 Feb 2016 03:52:06 +0000 (00:52 -0300)]
x86: use the new helper macros where useful

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 70d685a77f283b110e7b1ab565ff5de53f752d55)

3 years agox86: add some more helper macros to check for slow cpuflags
James Almer [Sun, 7 Feb 2016 03:29:43 +0000 (00:29 -0300)]
x86: add some more helper macros to check for slow cpuflags

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 73a4589d4b0d97cbd6f8bf8be18b78151b657898)

3 years agoChangelog: add entries for the SMPTE VC-2 decoder and encoder
Rostislav Pehlivanov [Sun, 14 Feb 2016 21:59:50 +0000 (21:59 +0000)]
Changelog: add entries for the SMPTE VC-2 decoder and encoder

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agoBasic updates for 3.0
Michael Niedermayer [Sun, 14 Feb 2016 21:29:44 +0000 (22:29 +0100)]
Basic updates for 3.0

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoChangelog/APIChanges Put 3.0 release marker
Michael Niedermayer [Sun, 14 Feb 2016 20:34:08 +0000 (21:34 +0100)]
Changelog/APIChanges Put 3.0 release marker

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/img2enc: remove unused variable
Michael Niedermayer [Sun, 14 Feb 2016 20:30:53 +0000 (21:30 +0100)]
avformat/img2enc: remove unused variable

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/imgutils: remove special case for aligning the palette
Michael Niedermayer [Sun, 14 Feb 2016 14:22:47 +0000 (15:22 +0100)]
avutil/imgutils: remove special case for aligning the palette

This was suggested by wm4 and stefano.
After this patch using align=1 the size used by various functions would not
contain padding, while the palette would be aligned at align>1

This patch makes it required to use align>=4 if the palette is to be accessed
as uint32

As a side-effect It fixes storing pal8 in nut with odd with&height

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/protocols: document protocol_whitelist
Michael Niedermayer [Thu, 11 Feb 2016 12:11:48 +0000 (13:11 +0100)]
doc/protocols: document protocol_whitelist

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/h264_cabac: Check decode_cabac_mb_mvd() for failure
Michael Niedermayer [Tue, 26 Jan 2016 01:23:31 +0000 (02:23 +0100)]
avcodec/h264_cabac: Check decode_cabac_mb_mvd() for failure

Fixes harmless integer overflow
Fixes Ticket5150

No speedloss measured, actually its slightly faster, but please benchmark & double check this

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/genh: Mark coef_splitted as av_unused
Michael Niedermayer [Sun, 18 Oct 2015 18:31:27 +0000 (20:31 +0200)]
avformat/genh: Mark coef_splitted as av_unused

This avoid "libavformat/genh.c:43:14: warning: variable coef_splitted set but not used"
Fewer warnings makes it easier to see new and important warnings

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/parseutils: remove 2112 date from fate test
Marton Balint [Sun, 14 Feb 2016 12:33:14 +0000 (13:33 +0100)]
avutil/parseutils: remove 2112 date from fate test

It is not supported on 32bit.

Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agox86/vc1dsp: Port vc1_*_hor_16b_shift2 to NASM format
Timothy Gu [Sun, 14 Feb 2016 04:22:48 +0000 (04:22 +0000)]
x86/vc1dsp: Port vc1_*_hor_16b_shift2 to NASM format

Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com>
3 years agocheckasm/vf_blend: Decrease iteration count
Timothy Gu [Sun, 14 Feb 2016 18:48:24 +0000 (10:48 -0800)]
checkasm/vf_blend: Decrease iteration count

The test is already slow.

3 years agocheckasm: Add vf_blend tests
Timothy Gu [Wed, 10 Feb 2016 09:07:40 +0000 (09:07 +0000)]
checkasm: Add vf_blend tests

3 years agovf_blend: Move C dsp function mapping to separate function
Timothy Gu [Wed, 10 Feb 2016 09:05:30 +0000 (09:05 +0000)]
vf_blend: Move C dsp function mapping to separate function

3 years agolibavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats
Mark Reid [Sun, 14 Feb 2016 05:44:32 +0000 (21:44 -0800)]
libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agocompat/os2threads: split long lines
KO Myung-Hun [Sun, 14 Feb 2016 15:20:35 +0000 (00:20 +0900)]
compat/os2threads: split long lines

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agocompat/os2threads: support the return value of joined thread
KO Myung-Hun [Sun, 14 Feb 2016 15:20:34 +0000 (00:20 +0900)]
compat/os2threads: support the return value of joined thread

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agocompat/os2threads: Improve pthread_cond_xxx() functions
KO Myung-Hun [Sun, 14 Feb 2016 15:20:33 +0000 (00:20 +0900)]
compat/os2threads: Improve pthread_cond_xxx() functions

1. Manipulate waiting count in pthread_cond_wait()
2. Use builtin atomic functions to manipulate waiting count

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_tinterlace: fix image alignment
Michael Niedermayer [Sun, 14 Feb 2016 14:51:10 +0000 (15:51 +0100)]
avfilter/vf_tinterlace: fix image alignment

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agovf_blend: Use integers for divide mode
Timothy Gu [Sun, 14 Feb 2016 02:15:18 +0000 (02:15 +0000)]
vf_blend: Use integers for divide mode

2.5x faster for 8-bit mode without autovectorization in GCC, 2x
slower with it on x86. However, since the platforms we enable GCC
autovectorization on most probably has support for SSE2
optimization (added in the subsequent commit), this commit should
in general do good.

3 years agolavf/spdifenc: Support MLP encapsulation.
David Monro [Sun, 14 Feb 2016 17:02:22 +0000 (18:02 +0100)]
lavf/spdifenc: Support MLP encapsulation.

Fixes bug 821.

Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
3 years agovf_blend: Reduce number of arguments for kernel function
Timothy Gu [Sun, 14 Feb 2016 02:01:35 +0000 (02:01 +0000)]
vf_blend: Reduce number of arguments for kernel function

3 years agovf_blend: Use memcpy when opacity is 0
Timothy Gu [Sat, 13 Feb 2016 23:42:45 +0000 (23:42 +0000)]
vf_blend: Use memcpy when opacity is 0

For xor mode, 1.8x faster on Haswell.

3 years agovf_blend: Templatize identity function and use a better name
Timothy Gu [Sat, 13 Feb 2016 23:23:17 +0000 (23:23 +0000)]
vf_blend: Templatize identity function and use a better name

3 years agoavcodec: Fix a typo.
Carl Eugen Hoyos [Sun, 14 Feb 2016 15:14:08 +0000 (16:14 +0100)]
avcodec: Fix a typo.

3 years agoMAINTAINERS: Add myself as libutvideo maintainer.
Carl Eugen Hoyos [Sun, 14 Feb 2016 14:51:38 +0000 (15:51 +0100)]
MAINTAINERS: Add myself as libutvideo maintainer.

3 years agoavfilter/f_metadata: remove unused headers
Paul B Mahol [Sun, 14 Feb 2016 14:21:36 +0000 (15:21 +0100)]
avfilter/f_metadata: remove unused headers

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agolavf/mpjpeg: do not include CRLF preceding boundary as part of the returned frame
Alex Agranovsky [Sun, 14 Feb 2016 04:16:45 +0000 (23:16 -0500)]
lavf/mpjpeg: do not include CRLF preceding boundary as part of the returned frame

Signed-off-by: Alex Agranovsky <alex@sighthound.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec: only warn about hwaccel with frame threads
Andreas Cadhalpun [Sat, 23 Jan 2016 09:12:30 +0000 (10:12 +0100)]
avcodec: only warn about hwaccel with frame threads

VLC uses hwaccel with frame threads and it works fine, but returning
an error here made it fail.

This regression was introduced in commit 31741ae.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Warning message text by nevcairiel

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>