ffmpeg.git
3 years agoUpdate for 2.8.1 n2.8.1
Michael Niedermayer [Tue, 13 Oct 2015 18:44:52 +0000 (20:44 +0200)]
Update for 2.8.1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale: fix ticket #4881
Pedro Arthur [Tue, 13 Oct 2015 16:32:07 +0000 (13:32 -0300)]
swscale: fix ticket #4881

When scaling only a slice of a frame the output was written always
in the first lines leaving the rest of the frame black.
(cherry picked from commit 5bd62a1b3c3356b84818efca3fcaf52da27a32af)

3 years agodoc: fix spelling errors
Andreas Cadhalpun [Tue, 29 Sep 2015 18:08:26 +0000 (20:08 +0200)]
doc: fix spelling errors

Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 8d6625642db064a45224cb7a8e037f6e79a6554d)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agohls: only seek if there is an offset
Andreas Cadhalpun [Tue, 22 Sep 2015 11:40:20 +0000 (13:40 +0200)]
hls: only seek if there is an offset

If there is no #EXT-X-BYTERANGE specified, there is no need to seek.
Seeking fails anyway for rtmp, because this protocol does not support
url_seek.

This fixes CNN.m3u from trac ticket 4797 (i.e. Debian bug #798189).

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit f9f0b4c08e7dc2c178ede137af4f64ca84ab2deb)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoasfdec: add more checks for size left in asf packet buffer
Alexandra Hájková [Mon, 7 Sep 2015 10:18:17 +0000 (12:18 +0200)]
asfdec: add more checks for size left in asf packet buffer

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit c0a49077ea4ff3a0ad30b9e33f1bb06ba9112aaa)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoasfdec: alloc enough space for storing name in asf_read_metadata_obj
Alexandra Hájková [Wed, 2 Sep 2015 12:27:42 +0000 (14:27 +0200)]
asfdec: alloc enough space for storing name in asf_read_metadata_obj

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 77cf23668991bfd1fb69339f13e1511b4186b7b3)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3 years agoavcodec/pngdec: Check blend_op.
Michael Niedermayer [Sun, 11 Oct 2015 01:46:44 +0000 (03:46 +0200)]
avcodec/pngdec: Check blend_op.

Fixes CID1322359, CID1322358

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoh264_mp4toannexb: fix pps offfset fault when there are more than one sps in avcc
赵宇龙 [Fri, 9 Oct 2015 05:59:56 +0000 (13:59 +0800)]
h264_mp4toannexb: fix pps offfset fault when there are more than one sps in avcc

the pps offset is used to locate pps in the spspps_buf; however, the
current calc method is wrong because it is the offset of the original
avctx->extradata;
when there is only one sps in the avcc; the value is correct by
coincidence, however, it will
fail in avcc with multi sps

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/h264_mp4toannexb_bsf: Use av_freep() to free spspps_buf
Michael Niedermayer [Fri, 9 Oct 2015 22:07:30 +0000 (00:07 +0200)]
avcodec/h264_mp4toannexb_bsf: Use av_freep() to free spspps_buf

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/avidec: Workaround broken initial frame
Michael Niedermayer [Tue, 15 Sep 2015 02:01:27 +0000 (04:01 +0200)]
avformat/avidec: Workaround broken initial frame

Fixes Ticket4851

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

3 years agoavformat/hls: fix some cases of HLS streams which require cookies
wm4 [Mon, 21 Sep 2015 12:43:06 +0000 (14:43 +0200)]
avformat/hls: fix some cases of HLS streams which require cookies

Broken by commit ba12ba859aabfa7153ba397d869db13acdaba340. This only
happens with HLS streams which use encryption and require preserving
cookies sent by the server.

Fixes trac issue #4846.
(cherry picked from commit 26eb2940079d0ec433cf9b2deae24560707cbcf8)

3 years agoavcodec/pngdec: reset has_trns after every decode_frame_png()
Paul B Mahol [Mon, 28 Sep 2015 18:53:01 +0000 (20:53 +0200)]
avcodec/pngdec: reset has_trns after every decode_frame_png()

Fixes #4887.

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

3 years agolavf/img2dec: Fix memory leak
Przemysław Sobala [Tue, 29 Sep 2015 13:25:07 +0000 (15:25 +0200)]
lavf/img2dec: Fix memory leak

Fixes #4886

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

3 years agoavcodec/mp3: fix skipping zeros
wm4 [Wed, 30 Sep 2015 12:53:35 +0000 (14:53 +0200)]
avcodec/mp3: fix skipping zeros

Commits 43bc5cf9 and c5371f77 add code for skipping initial zeros in mp3
packets. This code forgot to report to the user that data was skipped at
all.

Since audio codecs allow partial packet decoding, the user application
has to rely on the return value. It will remove the data reported as
consumed by the decoder, and feed it to the decoder again. This resulted
in the mp3 frame after the zero region to be decoded over and over
again, until the zero region was finally skipped by the application.

Fix this by including the amount of skipped bytes to the number of
consumed bytes returned by the decode call.

Fixes trac ticket #4890.
(cherry picked from commit cb1da9fb8d71bb611a7b0028914c97afc3f5711d)

3 years agoavformat/srtdec: make sure we probe a number
Clément Bœsch [Fri, 9 Oct 2015 08:52:58 +0000 (10:52 +0200)]
avformat/srtdec: make sure we probe a number

Fixes regression since 7218352e0228028dfa009a3799ec93fd041065f1: WebVTT
files were matching the SRT probing.

(cherry picked from commit 40d9d6de90c3652f4c468ab14976c7faf5e40c07)

3 years agoconfigure: check for ID3D11VideoContext
James Almer [Fri, 11 Sep 2015 21:23:30 +0000 (18:23 -0300)]
configure: check for ID3D11VideoContext

Should fix compilation with mingw-w64 trunk, where ID3D11VideoDecoder is available
but ID3D11VideoContext still isn't.

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

3 years agoavformat/vobsub: compare correct packet stream IDs
wm4 [Mon, 21 Sep 2015 10:09:08 +0000 (12:09 +0200)]
avformat/vobsub: compare correct packet stream IDs

The stream ID is essentially an arbitrary number defined by the .idx
file headers. They have to match the IDs in the .sub stream. The vobsub
demuxer assumed the IDs would just start from 0, increassing by 1 for
each stream. This is not correct. In the sample I had, the IDs were
starting from 1, leading to no subtitles being displayed at all.

Fix this by using the correct stream ID.

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/srtdec: more lenient first line probing
Clément Bœsch [Thu, 1 Oct 2015 09:48:45 +0000 (11:48 +0200)]
avformat/srtdec: more lenient first line probing

Fixes Ticket #4898
(cherry picked from commit 7218352e0228028dfa009a3799ec93fd041065f1)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/srtdec: fix number check for the first character
Clément Bœsch [Thu, 1 Oct 2015 09:46:05 +0000 (11:46 +0200)]
avformat/srtdec: fix number check for the first character
(cherry picked from commit d161a2a72b083c51ec8fad33a29283703f5fd0cc)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mips: build fix for MSA 64bit
Shivraj Patil [Thu, 8 Oct 2015 09:17:52 +0000 (14:47 +0530)]
avcodec/mips: build fix for MSA 64bit

Modified datatype of function argument (pitch from int32_t to ptrdiff_t).

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Commit in master: 322e960dbf32b846b26f95afa6c0e652bc04e90d
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mips: build fix for MSA
Shivraj Patil [Thu, 8 Oct 2015 08:33:22 +0000 (14:03 +0530)]
avcodec/mips: build fix for MSA

Modified sps and pps access from old HEVCContext(s) structure to newly introduced HEVCParamSets(ps).

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Commit in master: b0732b0214a40cdbcaf49d72cc6f25a7e9e5f115
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/httpauth: Add space after commas in HTTP/RTSP auth header
Andrey Utkin [Thu, 1 Oct 2015 10:56:31 +0000 (13:56 +0300)]
avformat/httpauth: Add space after commas in HTTP/RTSP auth header

This fixes access to Grandstream cameras, which return 401 to ffmpeg
otherwise.
VLC sends Authorization: header with spaces between parameters, and it
is known to work with Grandstream devices and broad range of other HTTP
and RTSP servers, so author considers switching to such behaviour safe.
Just for record - RFC 2617 (HTTP Auth) does not specify the need in
spaces, so this is not a bug of FFmpeg.

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolibavformat/hlsenc: Use of uninitialized memory unlinking old files
DHE [Thu, 1 Oct 2015 23:21:33 +0000 (19:21 -0400)]
libavformat/hlsenc: Use of uninitialized memory unlinking old files

Fixes ticket#4900

Signed-off-by: DHE <git@dehacked.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 76e3f8242d607ac0394b7894196f83f8d02ce5ca)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/x86/sbrdsp: Fix using uninitialized upper 32bit of noise
Michael Niedermayer [Tue, 29 Sep 2015 11:08:48 +0000 (13:08 +0200)]
avcodec/x86/sbrdsp: Fix using uninitialized upper 32bit of noise

Fixes crash
Fixes: flicker-1.scout3d21443372922.28.m4a

Found-by: Dale Curtis <dalecurtis@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1b82b934a166e60f64e966eaa97512ba9dcb615b)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/ffv1dec: Fix off by 1 error in quant_table_count check
Michael Niedermayer [Sat, 26 Sep 2015 11:20:59 +0000 (13:20 +0200)]
avcodec/ffv1dec: Fix off by 1 error in quant_table_count check

Fixes: invalid_read.nut
Found-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2d221d9e069e6269cb41f3678f2734800171d87b)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/ffv1dec: Explicitly check read_quant_table() return value
Michael Niedermayer [Sat, 26 Sep 2015 11:09:59 +0000 (13:09 +0200)]
avcodec/ffv1dec: Explicitly check read_quant_table() return value

Forwards the error code, avoids potential integer overflow

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodnxhddata: correct weight tables
Jeremy James [Fri, 25 Sep 2015 16:57:18 +0000 (18:57 +0200)]
dnxhddata: correct weight tables

CID 1260 (as evidenced by incorrect decoding of a sample from ticket
4876) seems to use incorrect weight tables. It appears those tables
were not zigzag-scanned.

Apply zigzag on weight tables for new CIDs 1258, 1259, and 1260, and
fix an incorrect chroma table for CID 1256.

Fixes last issue from ticket #4876.

Found-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 428424fe75206753ab2039e624031c9643623ea0)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodnxhddec: decode and use interlace mb flag
Christophe Gisquet [Fri, 25 Sep 2015 16:57:17 +0000 (18:57 +0200)]
dnxhddec: decode and use interlace mb flag

This bit is 1 in some samples, and seems to coincide with interlaced
mbs and CID1260. 2008 specs do not know about it, and maintain qscale
is 11 bits. This looks oversized, but may help larger bitdepths.

Currently, it leads to an obviously incorrect qscale value, meaning
its syntax is shifted by 1. However, reading 11 bits also leads to
obviously incorrect decoding: qscale seems to be 10 bits.

However, as most profiles still have 11bits qscale, the feature is
restricted to the CID1260 profile.

The encoder writes 12 bits of syntax, last and first bits always 0,
which is now somewhat inconsistent with the decoder, but ends up with
the same effect (progressive + reserved bit).

Partially fixes ticket #4876.

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale: fix ticket #4877
Pedro Arthur [Fri, 25 Sep 2015 15:17:43 +0000 (12:17 -0300)]
swscale: fix ticket #4877
(cherry picked from commit a8602dde5e0a9858b9cee7e3788bef8efc43d950)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/rangecoder: Check e
Michael Niedermayer [Fri, 25 Sep 2015 12:26:14 +0000 (14:26 +0200)]
avcodec/rangecoder: Check e

Fixes hang.nut

Found-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b2955b6c5aed11026ec5c7164462899a10cdb937)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/ffv1: seperate slice_count from max_slice_count
Michael Niedermayer [Thu, 24 Sep 2015 21:49:30 +0000 (23:49 +0200)]
avcodec/ffv1: seperate slice_count from max_slice_count

Fix segfault with too large slice_count
Fixes Ticket4879

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale: fix ticket 4850
Pedro Arthur [Sun, 20 Sep 2015 21:03:49 +0000 (18:03 -0300)]
swscale: fix ticket 4850
(cherry picked from commit 77367f61b38dbdf17c31aa6a6b3edccb2ebf5354)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agocmdutils: Filter dst/srcw/h
Michael Niedermayer [Sat, 19 Sep 2015 19:23:11 +0000 (21:23 +0200)]
cmdutils: Filter dst/srcw/h

Dimensions / pixel formats for scaling must be set through the -s / pix_fmt options
or the scale / format filters. Otherwise there are mismatches between whet is
in/output to the scaler and for what the scaler is configured

Fixes Ticket4856

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/log: fix zero length gnu_printf format string warning
Ganesh Ajjanagadde [Thu, 17 Sep 2015 12:11:39 +0000 (08:11 -0400)]
avutil/log: fix zero length gnu_printf format string warning

This should fix warning reported by fate client:
http://fate.ffmpeg.org/report.cgi?time=20150917113121&slot=x86_32-linux-gnu-gcc-4.5.1-have_6regs.
Untested.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 63cdb6e4a59e296e27a78ac08f15500b42cd27fc)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/webvttenc: Require webvtt file to contain exactly one WebVTT stream.
Simon Thelen [Fri, 11 Sep 2015 19:49:07 +0000 (21:49 +0200)]
lavf/webvttenc: Require webvtt file to contain exactly one WebVTT stream.

Not requiring this can end up producing hilariously broken files
together with -c:s copy (e.g. a webvtt file containing binary subtitle data).

Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b84232694ef0c6897e82b52326c9ea4027c69ec4)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale/swscale: Fix "unused variable" warning
Michael Niedermayer [Fri, 11 Sep 2015 18:59:32 +0000 (20:59 +0200)]
swscale/swscale: Fix "unused variable" warning

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mjpegdec: Fix decoding RGBA RCT LJPEG
Michael Niedermayer [Fri, 11 Sep 2015 11:28:51 +0000 (13:28 +0200)]
avcodec/mjpegdec: Fix decoding RGBA RCT LJPEG

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoMAINTAINERS: add 2.8, drop 2.2
Michael Niedermayer [Wed, 9 Sep 2015 02:33:17 +0000 (04:33 +0200)]
MAINTAINERS: add 2.8, drop 2.2

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc: mention libavcodec can decode Opus natively
James Almer [Mon, 21 Sep 2015 02:20:43 +0000 (23:20 -0300)]
doc: mention libavcodec can decode Opus natively

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

3 years agohevc: properly handle no_rasl_output_flag when removing pictures from the DPB
Hendrik Leppkes [Sat, 12 Sep 2015 19:50:24 +0000 (21:50 +0200)]
hevc: properly handle no_rasl_output_flag when removing pictures from the DPB

Fixes ticket #4185.

Reviewed-By: Mickael Raulet <Mickael.Raulet@insa-rennes.fr>
Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoavfilter/af_ladspa: process all channels for nb_handles > 1
Paul B Mahol [Wed, 16 Sep 2015 09:27:30 +0000 (09:27 +0000)]
avfilter/af_ladspa: process all channels for nb_handles > 1

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

3 years agoconfigure: add libsoxr to swresample's pkgconfig
Ricardo Constantino [Mon, 7 Sep 2015 19:58:10 +0000 (20:58 +0100)]
configure: add libsoxr to swresample's pkgconfig

Fixes linking in FFMS and f265 at least, when ffmpeg is compiled with
libsoxr.

Signed-off-by: Ricardo Constantino <wiiaboo@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2641eeeefe93767e812d0acb9e3cb9bf157e6e95)
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
3 years agolavc: Fix compilation with --disable-everything --enable-parser=mpeg4video.
Hendrik Schreiber [Wed, 9 Sep 2015 10:10:04 +0000 (12:10 +0200)]
lavc: Fix compilation with --disable-everything --enable-parser=mpeg4video.
(cherry picked from commit 9d742d23d28c11749f90128aee0522270fd93a81)

3 years agoavcodec/h264_sei: Remove "Subtitles with data type 0x%02x" sample request n2.8
Michael Niedermayer [Tue, 8 Sep 2015 20:38:01 +0000 (22:38 +0200)]
avcodec/h264_sei: Remove "Subtitles with data type 0x%02x" sample request

Suggested-by: Carl and Hendrik
3 years agoRELEASE_NOTES based on 2.7
Michael Niedermayer [Mon, 7 Sep 2015 12:43:19 +0000 (14:43 +0200)]
RELEASE_NOTES based on 2.7

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec: loongson delete invalid simple idct put and add optimization
周晓勇 [Wed, 2 Sep 2015 10:00:24 +0000 (18:00 +0800)]
avcodec: loongson delete invalid simple idct put and add optimization

Change-Id: I23a36c65915f01a1cf20e317c14b8eaaa62958b4
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn>
Fixes Decoding of http://loongnix.org/ftp/multimedia/testing/nanocore_720p_24fps_mpeg4_ac3_short.avi

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoAdd NOA credits
Michael Niedermayer [Mon, 7 Sep 2015 16:52:38 +0000 (18:52 +0200)]
Add NOA credits

3 years agovaapi: fix local header include.
Gwenole Beauchesne [Mon, 7 Sep 2015 13:28:00 +0000 (15:28 +0200)]
vaapi: fix local header include.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
(cherry picked from commit aea611dc3e9e8e40c43b2b89f1af957c383cb0f3)

3 years agoChangelog: Add 2.8
Michael Niedermayer [Sun, 6 Sep 2015 14:00:01 +0000 (16:00 +0200)]
Changelog: Add 2.8

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoset version to 2.8
Michael Niedermayer [Sun, 6 Sep 2015 13:48:55 +0000 (15:48 +0200)]
set version to 2.8

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/af_asyncts: use llabs for int64_t
Ganesh Ajjanagadde [Sun, 6 Sep 2015 03:42:02 +0000 (20:42 -0700)]
avfilter/af_asyncts: use llabs for int64_t

long may not be 64 bit on all platforms; so labs on int64_t is unsafe.
This fixes a warning reported in:
http://fate.ffmpeg.org/log.cgi?time=20150905071512&log=compile&slot=i386-darwin-clang-polly-3.7

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d74123d03eb1047b844bc39fbde26f199c72cbcb)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/async: replace strerror with av_err2str
Zhang Rui [Sun, 6 Sep 2015 04:51:54 +0000 (12:51 +0800)]
avformat/async: replace strerror with av_err2str

Fixes CID1322337

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: increase the fuzz of the AAC encoder aref test
Rostislav Pehlivanov [Sat, 5 Sep 2015 20:47:26 +0000 (21:47 +0100)]
fate: increase the fuzz of the AAC encoder aref test

Almost fine on SunOS without yasm but 5 wasn't enough.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agodoc/APIchanges: Fill in missing fields and correct one lavu version
Michael Niedermayer [Sat, 5 Sep 2015 15:00:22 +0000 (17:00 +0200)]
doc/APIchanges: Fill in missing fields and correct one lavu version

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/APIchanges: add 2.8 cut line
Michael Niedermayer [Sat, 5 Sep 2015 14:38:53 +0000 (16:38 +0200)]
doc/APIchanges: add 2.8 cut line

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil: undo FF_API_CRYPTO_CONTEXT deprecation for 2.8 release
James Almer [Sat, 5 Sep 2015 15:58:39 +0000 (12:58 -0300)]
avutil: undo FF_API_CRYPTO_CONTEXT deprecation for 2.8 release

There's no consensus yet if this deprecation is desired, so it's removed
from this release for the time being

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavfilter/avf_showfreqs: Fix memleak of out frame
Michael Niedermayer [Sat, 5 Sep 2015 13:35:37 +0000 (15:35 +0200)]
avfilter/avf_showfreqs: Fix memleak of out frame

Fixes CID1322344

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/avf_showfreqs: Fix "may be used uninitialized in this function" warning
Michael Niedermayer [Sat, 5 Sep 2015 13:34:35 +0000 (15:34 +0200)]
avfilter/avf_showfreqs: Fix "may be used uninitialized in this function" warning

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/avf_showfreqs: Free fin
Michael Niedermayer [Sat, 5 Sep 2015 13:32:00 +0000 (15:32 +0200)]
avfilter/avf_showfreqs: Free fin

Fixes CID1322345

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/af_amerge: avoid undefined shift (<<64) in outlayout setup
Michael Niedermayer [Thu, 3 Sep 2015 22:33:49 +0000 (00:33 +0200)]
avfilter/af_amerge: avoid undefined shift (<<64) in outlayout setup

Fixes CID1322306

Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_stack: Fix memleak of out frame
Michael Niedermayer [Sat, 5 Sep 2015 12:41:45 +0000 (14:41 +0200)]
avfilter/vf_stack: Fix memleak of out frame

Fixes CID1322347

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/hls: Check for av_opt_set_dict() failure
Michael Niedermayer [Sat, 5 Sep 2015 12:21:47 +0000 (14:21 +0200)]
avformat/hls: Check for av_opt_set_dict() failure

Fixes: CID1320426

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/rawenc: Use AVFrame parameters instead of AVCodecContext
Michael Niedermayer [Sat, 5 Sep 2015 09:56:23 +0000 (11:56 +0200)]
avcodec/rawenc: Use AVFrame parameters instead of AVCodecContext

This allows encoding raw frames with changing dimensions

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/avfilter: Add a few more basic filters to the list which support frame size...
Michael Niedermayer [Sat, 5 Sep 2015 09:43:27 +0000 (11:43 +0200)]
avfilter/avfilter: Add a few more basic filters to the list which support frame size changes

Fixes assertion failures

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/aiffenc: Clarify an error message.
Carl Eugen Hoyos [Sat, 5 Sep 2015 08:53:55 +0000 (10:53 +0200)]
lavf/aiffenc: Clarify an error message.

Only one audio stream is allowed in aiff.

3 years agofate: adjust AAC encoder TNS test target
Rostislav Pehlivanov [Sat, 5 Sep 2015 08:11:05 +0000 (09:11 +0100)]
fate: adjust AAC encoder TNS test target

The new commits improve the quality.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agoaacenc_tns: adjust coefficient calculation, add double filter support
Rostislav Pehlivanov [Sat, 5 Sep 2015 08:08:30 +0000 (09:08 +0100)]
aacenc_tns: adjust coefficient calculation, add double filter support

This commit improves the TNS implementation to the point where it's
actually usable and very rarely results in nastyness (in all bitrates
except extremely low bitrates it's increasing the quality and prevents
some distortions from the coder being audiable).

Also adds a double filter support which is only used if the energy
difference between the top and bottom of the SFBs is above the
thresholds defined in the header file. Looking at the bitstream
that fdk_aac generates it sometimes used a double filter despite
the specs stating that a single filter should be enough for almost
all cases and purposes.

Unlike FAAC or fdk_aac we sometimes use a reverse filter in case
the energy difference isn't enought to use a double filter. This
actually works better.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agolpc: increase error array size of ff_lpc_calc_ref_coefs_f by one
Rostislav Pehlivanov [Sat, 5 Sep 2015 07:51:19 +0000 (08:51 +0100)]
lpc: increase error array size of ff_lpc_calc_ref_coefs_f by one

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agoaacenc_is: add a flag to use pure coefficients instead
Rostislav Pehlivanov [Sat, 5 Sep 2015 07:32:09 +0000 (08:32 +0100)]
aacenc_is: add a flag to use pure coefficients instead

This commit adds a flag to use the pure coefficients instead
of the processed ones (sce->coeffs). This is needed because
IS will apply the changes to the coefficients immediately
before the adjust_common_prediction function and it doesn't
make sense to measure stereo channel coefficient difference
when one of the channels coefficients are all zero.

Therefore add a flag to use pure coefficients in that case.
TNS is the only thing touching the coefficients before IS
so common window prediction will not take that into account
but the effect of the TNS filter per coefficient can be small
(a few percent) so to some approximation it's fine to just
ignore that.

Also fixed a small error which doesn't alter the results
that much. pow(sqrt(number), 3.0/4.0) == pow(number, 3.0/8.0) !=
pow(number, 3.0/4.0).

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agoavcodec/jpeg2000dec: Initialize ret to avoid warning and make the code more robust
Michael Niedermayer [Fri, 4 Sep 2015 22:33:59 +0000 (00:33 +0200)]
avcodec/jpeg2000dec: Initialize ret to avoid warning and make the code more robust

"Fixes" CID1322361

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/jpeg2000dec: Assert that step_x/y are valid
Michael Niedermayer [Fri, 4 Sep 2015 22:28:36 +0000 (00:28 +0200)]
avcodec/jpeg2000dec: Assert that step_x/y are valid

Fixes CID1322304, CID1322305

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/hapdec: Check section_size for non negativity in parse_section_header()
Michael Niedermayer [Fri, 4 Sep 2015 22:09:32 +0000 (00:09 +0200)]
avcodec/hapdec: Check section_size for non negativity in parse_section_header()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/mxfdec: Support more codecs in mxf_picture_essence_container_uls[].
Arnaud Bienner [Fri, 4 Sep 2015 22:11:14 +0000 (00:11 +0200)]
lavf/mxfdec: Support more codecs in mxf_picture_essence_container_uls[].

Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
3 years agolavf/mxf: Support video essence container uls for vc1.
Arnaud Bienner [Fri, 4 Sep 2015 22:02:33 +0000 (00:02 +0200)]
lavf/mxf: Support video essence container uls for vc1.

Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
3 years agolavf/riff: Support fourcc AVd1 for dvvideo.
Arnaud Bienner [Fri, 4 Sep 2015 21:55:32 +0000 (23:55 +0200)]
lavf/riff: Support fourcc AVd1 for dvvideo.

Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
3 years agoswscale: re-enable gamma
Pedro Arthur [Fri, 4 Sep 2015 21:11:21 +0000 (18:11 -0300)]
swscale: re-enable gamma

+added gamma conversion to refactored code

3 years agoswscale: added proper error check for ff_init_filters
Pedro Arthur [Fri, 4 Sep 2015 21:09:20 +0000 (18:09 -0300)]
swscale: added proper error check for ff_init_filters

3 years agolavc/mxfdec: Support more mxf files with codec_ul.
Carl Eugen Hoyos [Fri, 4 Sep 2015 21:50:34 +0000 (23:50 +0200)]
lavc/mxfdec: Support more mxf files with codec_ul.

Fixes decoding for the sample from ticket #4820.

3 years agolavc/j2kenc: Remove experimental flag.
Carl Eugen Hoyos [Fri, 4 Sep 2015 21:48:32 +0000 (23:48 +0200)]
lavc/j2kenc: Remove experimental flag.

The encoder produces valid and - if requested - lossless files.

3 years agoavfilter/vf_vectorscope: change intensity to float
Paul B Mahol [Fri, 4 Sep 2015 18:47:46 +0000 (18:47 +0000)]
avfilter/vf_vectorscope: change intensity to float

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter/vf_waveform: stop abusing s->size for calculating limit
Paul B Mahol [Fri, 4 Sep 2015 17:34:23 +0000 (17:34 +0000)]
avfilter/vf_waveform: stop abusing s->size for calculating limit

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter/vf_waveform: change intensity to float
Paul B Mahol [Fri, 4 Sep 2015 17:14:32 +0000 (17:14 +0000)]
avfilter/vf_waveform: change intensity to float

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter/vf_waveform: reduce number of operations a little
Paul B Mahol [Thu, 3 Sep 2015 14:21:52 +0000 (14:21 +0000)]
avfilter/vf_waveform: reduce number of operations a little

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter/vf_waveform: 9 and 10 bit depth support for lowpass & color filter
Paul B Mahol [Thu, 3 Sep 2015 13:53:05 +0000 (13:53 +0000)]
avfilter/vf_waveform: 9 and 10 bit depth support for lowpass & color filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agovp9_parse: fix parsing of pskip and profile 2/3.
Ronald S. Bultje [Fri, 4 Sep 2015 13:59:17 +0000 (09:59 -0400)]
vp9_parse: fix parsing of pskip and profile 2/3.

The fate results change because we now correctly timestamp the pskip
frames, which means the results are now identical to -vsync 0.

3 years agolibvpxdec: explicitly signal RGB.
Ronald S. Bultje [Thu, 3 Sep 2015 13:32:46 +0000 (09:32 -0400)]
libvpxdec: explicitly signal RGB.

3 years agovp9: don't erase values for {lf,ref,skip,q}_enabled if segmentation=0.
Ronald S. Bultje [Thu, 3 Sep 2015 00:36:37 +0000 (20:36 -0400)]
vp9: don't erase values for {lf,ref,skip,q}_enabled if segmentation=0.

Instead, use segmentation.enabled before accessing each of these values.

3 years agovp9: fix segmentation map retention across keyframe boundaries.
Ronald S. Bultje [Wed, 2 Sep 2015 21:56:08 +0000 (17:56 -0400)]
vp9: fix segmentation map retention across keyframe boundaries.

3 years agovp9: fix RGB chroma subsampling.
Ronald S. Bultje [Wed, 2 Sep 2015 20:47:51 +0000 (16:47 -0400)]
vp9: fix RGB chroma subsampling.

3 years agovp9: read reserved bit in RGB header.
Ronald S. Bultje [Wed, 2 Sep 2015 18:35:03 +0000 (14:35 -0400)]
vp9: read reserved bit in RGB header.

3 years agovp9: clip intermediates in dequant calculations.
Ronald S. Bultje [Wed, 2 Sep 2015 17:47:22 +0000 (13:47 -0400)]
vp9: clip intermediates in dequant calculations.

This makes values consistent with libvpx.

3 years agovp9: fix segmentation map retention if segmentation is turned off.
Ronald S. Bultje [Wed, 2 Sep 2015 16:21:12 +0000 (12:21 -0400)]
vp9: fix segmentation map retention if segmentation is turned off.

3 years agovp9: use resetctx in the same way as libvpx.
Ronald S. Bultje [Wed, 2 Sep 2015 16:20:29 +0000 (12:20 -0400)]
vp9: use resetctx in the same way as libvpx.

3 years agovp9: fix indentation.
Ronald S. Bultje [Wed, 2 Sep 2015 16:20:10 +0000 (12:20 -0400)]
vp9: fix indentation.

3 years agovp9: deal with the case where update_map=0 but we're key/intraonly.
Ronald S. Bultje [Wed, 2 Sep 2015 15:26:24 +0000 (11:26 -0400)]
vp9: deal with the case where update_map=0 but we're key/intraonly.

3 years agovp9: reset segmentation information on context reset.
Ronald S. Bultje [Tue, 1 Sep 2015 20:44:10 +0000 (16:44 -0400)]
vp9: reset segmentation information on context reset.

3 years agoavcodec/g2meet: Also clear tile dimensions on header_fail
Michael Niedermayer [Fri, 4 Sep 2015 10:11:46 +0000 (12:11 +0200)]
avcodec/g2meet: Also clear tile dimensions on header_fail

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/g2meet: Fix potential overflow in tile dimensions check
Michael Niedermayer [Fri, 4 Sep 2015 10:10:02 +0000 (12:10 +0200)]
avcodec/g2meet: Fix potential overflow in tile dimensions check

Fixes CID1322351

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/eatgq: Check init_get_bits8() for failure
Michael Niedermayer [Fri, 4 Sep 2015 09:53:38 +0000 (11:53 +0200)]
avcodec/eatgq: Check init_get_bits8() for failure

Fixes CID1322315

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/adpcm: Check init_get_bits8() for failure
Michael Niedermayer [Fri, 4 Sep 2015 09:47:38 +0000 (11:47 +0200)]
avcodec/adpcm: Check init_get_bits8() for failure

Fixes CID1322317

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