]>
git.sesse.net Git - ffmpeg/log
Ronald S. Bultje [Wed, 2 Sep 2015 18:35:03 +0000 (14:35 -0400)]
vp9: read reserved bit in RGB header.
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.
Ronald S. Bultje [Wed, 2 Sep 2015 16:21:12 +0000 (12:21 -0400)]
vp9: fix segmentation map retention if segmentation is turned off.
Ronald S. Bultje [Wed, 2 Sep 2015 16:20:29 +0000 (12:20 -0400)]
vp9: use resetctx in the same way as libvpx.
Ronald S. Bultje [Wed, 2 Sep 2015 16:20:10 +0000 (12:20 -0400)]
vp9: fix indentation.
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.
Ronald S. Bultje [Tue, 1 Sep 2015 20:44:10 +0000 (16:44 -0400)]
vp9: reset segmentation information on context reset.
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>
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>
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>
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>
Michael Niedermayer [Fri, 4 Sep 2015 09:42:23 +0000 (11:42 +0200)]
ffmpeg: Drop redundant ist check
stream copy always has a input stream, it cannot use complex video/audio filters with unambigous input
Fixes CID1322348
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Fri, 4 Sep 2015 09:30:25 +0000 (11:30 +0200)]
doc/examples/http_multiclient: Fix occured typo
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Fri, 4 Sep 2015 09:26:14 +0000 (11:26 +0200)]
avcodec/libfdk-aacdec: Remove unused variable
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Fri, 4 Sep 2015 01:09:03 +0000 (03:09 +0200)]
avcodec/hevc_parser: Check init_get_bits8() for failure
Fixes: CID1322322
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 23:18:13 +0000 (01:18 +0200)]
avcodec/ira288: Check init_get_bits8() for failure
Fixes: CID1322321
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 23:18:13 +0000 (01:18 +0200)]
avcodec/smacker: Check init_get_bits8() for failure
Fixes: CID1322314
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 23:18:13 +0000 (01:18 +0200)]
avcodec/sonic: Check init_get_bits8() for failure
Fixes: CID1322310
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 23:18:13 +0000 (01:18 +0200)]
avcodec/svq1dec: Check init_get_bits8() for failure
Fixes: CID1322313
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 23:18:13 +0000 (01:18 +0200)]
avcodec/tta: Check init_get_bits8() for failure
Fixes: CID1322319
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 23:13:05 +0000 (01:13 +0200)]
avcodec/vp3: Check init_get_bits8() for failure
Fixes CID1322316
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 22:10:41 +0000 (00:10 +0200)]
avfilter/af_channelmap: Reorder operations to avoid memleak
Fixes CID1322346
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 21:13:24 +0000 (23:13 +0200)]
avfilter/af_sidechaincompress: Also assert that i < 2
This should help static analyzers (CID1322339)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 21:07:43 +0000 (23:07 +0200)]
avfilter/vf_atadenoise: Check for ff_get_video_buffer() failure
Fixes CID1322338
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 21:02:03 +0000 (23:02 +0200)]
avfilter/vf_histogram: Fix order of operations with flags
Fixes CID1322325
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 19:58:59 +0000 (21:58 +0200)]
avcodec/gsmdec_template: avoid undefined negative left shifts
Fixes: unknown_unknown_338_824_cov_1045285351_sample-gsm-8000.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 19:54:44 +0000 (21:54 +0200)]
avformat/mov: Change the type of the r/g/b variables
Fixes integer overflow
Fixes: unknown_unknown_31b_795_cov_1818643045_raybauduc.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Stephan Holljes [Thu, 3 Sep 2015 13:56:12 +0000 (15:56 +0200)]
lavf/http: Remove superfluous parenthesis.
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 12:52:18 +0000 (14:52 +0200)]
avfilter/avf_showwaves: Check max_samples
Fixes potential division by zero
Fixes: CID1292295
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Stephan Holljes [Thu, 3 Sep 2015 13:55:10 +0000 (15:55 +0200)]
lavf/http: Fix incorrectly placed parenthesis.
The assignment had incorrectly placed parentheses which resulted in ret
always being > 0.
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 12:42:40 +0000 (14:42 +0200)]
avfilter/af_dynaudnorm: Fix typo in assert
Fixes: CID1322303
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 12:39:08 +0000 (14:39 +0200)]
avfilter/avf_showfreqs: Use floating point division in WFUNC_BHANN
Fixes: CID1322365
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 11:35:37 +0000 (13:35 +0200)]
avformat/concatdec: Check file variable before dereferencing
Fixes CID1322328
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Claudio Freire [Thu, 3 Sep 2015 13:49:17 +0000 (10:49 -0300)]
AAC: MIPS: Add missing codebooks in quantize funcs
Add entries on the quantize function tables for the missing
codebooks (which all behave like ZERO)
Claudio Freire [Thu, 3 Sep 2015 13:16:33 +0000 (10:16 -0300)]
AAC: Increase fuzziness of fate-aac tests
Needed to make them pass in mips
Carl Eugen Hoyos [Thu, 3 Sep 2015 12:36:34 +0000 (14:36 +0200)]
doc: Explain how to use the fps and the fieldmatch filter together.
Fixes ticket #3968.
Michael Niedermayer [Thu, 3 Sep 2015 10:40:12 +0000 (12:40 +0200)]
avformat/file: Fix copy and paste error
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Ganesh Ajjanagadde [Tue, 1 Sep 2015 15:10:04 +0000 (08:10 -0700)]
avfilter/vf_sab: use the name 's' for the pointer to the private context
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Paul B Mahol [Thu, 3 Sep 2015 09:40:49 +0000 (09:40 +0000)]
avcodec/fraps: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Michael Niedermayer [Thu, 3 Sep 2015 09:18:10 +0000 (11:18 +0200)]
avformat/hlsenc: Fix memleak of path
Fixes: CID1322343
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 09:14:48 +0000 (11:14 +0200)]
avformat/hlsenc: Initialize vtt_oc to help static analyzers
This is also more robust in case it ever is used
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 08:37:13 +0000 (10:37 +0200)]
avformat/latmenc: Add assert to avoid coverity warning
Fixes CID1322323
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Paul B Mahol [Wed, 2 Sep 2015 06:06:02 +0000 (06:06 +0000)]
avfilter/vf_drawgraph: add rscroll slide mode
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol [Tue, 1 Sep 2015 15:53:56 +0000 (15:53 +0000)]
avcodec/vorbisdec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol [Wed, 2 Sep 2015 09:11:52 +0000 (09:11 +0000)]
avfilter/vf_vectorscope: constify more variables
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol [Wed, 2 Sep 2015 08:48:25 +0000 (08:48 +0000)]
avfilter/vf_vectorscope: support more formats for color4 mode in common case
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol [Mon, 31 Aug 2015 12:38:24 +0000 (12:38 +0000)]
avfilter/vf_elbg: make it possible to output to pal8 pixel format
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Michael Niedermayer [Thu, 3 Sep 2015 07:47:39 +0000 (09:47 +0200)]
avformat/swfdec: Check return value of init_get_bits8()
Fixes: CID1322320
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 07:22:31 +0000 (09:22 +0200)]
swresample/swresample: Fix integer overflow in seed calculation
Fixes CID1322333
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 07:20:23 +0000 (09:20 +0200)]
avformat/mov: Fix integer overflow in FFABS
Fixes: unknown_unknown_19e_414_cov_764838672_bellhamlam.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 00:17:24 +0000 (02:17 +0200)]
avutil/common: Add FFNABS()
This macro avoids the undefined corner case with the *_MIN values
Previous version Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 00:49:44 +0000 (02:49 +0200)]
avformat/dump: Fix integer overflow in aspect ratio calculation
Fixes: unknown_unknown_19e_414_cov_764838672_bellhamlam.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Thu, 3 Sep 2015 00:00:05 +0000 (02:00 +0200)]
avutil/common: Document FFABS() corner case
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Marton Balint [Mon, 31 Aug 2015 19:22:46 +0000 (21:22 +0200)]
lavf: add V as a video stream specifier which is not an attached picture
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
Michael Niedermayer [Wed, 2 Sep 2015 19:11:07 +0000 (21:11 +0200)]
avcodec/mpeg12dec: Fix integer overflow
Fixes: signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Wed, 2 Sep 2015 19:02:31 +0000 (21:02 +0200)]
avcodec/mpegvideo: change bit_rate to 64bit
32bit is not sufficient for all cases
Fixes: signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Wed, 2 Sep 2015 18:54:42 +0000 (20:54 +0200)]
avcodec/mpegvideo_parser: Fix integer overflow
Fixes: signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Wed, 2 Sep 2015 18:43:25 +0000 (20:43 +0200)]
avcodec/truemotion1: Fix undefined behavior (left shift of negative value)
Fixes: asan_heap-oob_26f6853_862_cov_585961513_sonic3dblast_intro-partial.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
周晓勇 [Wed, 2 Sep 2015 10:01:00 +0000 (18:01 +0800)]
avcodec: loongson optimize mpeg2 dct unquantize intra and denoise dct
Change-Id: I2f391ae912a079fb32f0703841dca86358aac72a
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Vittorio Giovara [Wed, 2 Sep 2015 13:05:29 +0000 (15:05 +0200)]
lavfi/colormatrix: Add a bt601 alias
Matches what av_get_colorspace_name() and av_color_space_name() report.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Carl Eugen Hoyos [Wed, 2 Sep 2015 12:32:06 +0000 (14:32 +0200)]
ffmpeg: Improve help text for -target.
Fixes ticket #1057.
Michael Niedermayer [Wed, 2 Sep 2015 10:39:38 +0000 (12:39 +0200)]
avcodec/mips/aaccoder_mips: disable optimizatios which break fate-aac-pns-encode
These should be re enabled once the issue is fixed
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Rostislav Pehlivanov [Wed, 2 Sep 2015 07:36:53 +0000 (08:36 +0100)]
fate: increase fuzziness for the AAC encoder prediction test
Fails on x86_64 using ICC 13.1.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Wed, 2 Sep 2015 06:15:42 +0000 (07:15 +0100)]
fate: add fuzziness to the AAC Encode prediction test
Fails on ppc64 architecture under Ubuntu.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Wed, 2 Sep 2015 05:39:59 +0000 (06:39 +0100)]
fate: update AAC encoder tests
TNS had both IS and PNS switched on when it makes more sense
to have them both off.
Prediction had a redundant argument.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Wed, 2 Sep 2015 05:26:45 +0000 (06:26 +0100)]
aacenc: reorder coding tools
This commit reorders the coding tools such that they're doing what
the decoder does in reverse order. The very first thing the decoder
does is to decode M/S stereo if that's signalled, then prediction,
IS, and finally TNS and PNS in another function.
adjust_frame_information()'s application of IS and M/S was taken
out into two separate functions since prediction doesn't expect
to get the raw coefficients but rathe the coefficients at that
part of the encoding process.
The results show a much better PSNR when any combination of
Intensity Stereo, Mid/Side stereo and Prediction is used, which
is a sign of an increased encoder efficiency as well as the fact
that the decoder gets what it expects.
Otherwise, with only IS, PNS or prediction there are neither
regressions nor improvements except in the case of IS, which
now by itself (or with PNS) is less prone to artifacts. Enabling
M/S (using stereo_mode) as well will also reduce stereo artifacts
induced by IS, so in the very near future M/S may be enabled
by default.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
LiuQi [Mon, 31 Aug 2015 20:10:15 +0000 (04:10 +0800)]
avformat/hlsenc: add a use_localtime option to expand the segment filename with localtime
test examples:
./ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -v verbose -c copy -f hls -hls_segment_filename test-%s.ts -use_localtime 1 -bsf:v h264_mp4toannexb aaa.m3u8
[StevenLiu@localhost ffmpeg]$ cat aaa.m3u8;ll test-*.ts
test-
1441052221 .ts
test-
1441052231 .ts
test-
1441052235 .ts
test-
1441052243 .ts
test-
1441052249 .ts
-rw-r--r-- 1 StevenLiu staff
1310736 9 1 04:15 test-
1441052131 .ts
-rw-r--r-- 1 StevenLiu staff 495192 9 1 04:15 test-
1441052141 .ts
-rw-r--r-- 1 StevenLiu staff
1310736 9 1 04:17 test-
1441052212 .ts
-rw-r--r-- 1 StevenLiu staff
1067840 9 1 04:17 test-
1441052221 .ts
-rw-r--r-- 1 StevenLiu staff 235564 9 1 04:17 test-
1441052231 .ts
-rw-r--r-- 1 StevenLiu staff
1187220 9 1 04:17 test-
1441052235 .ts
-rw-r--r-- 1 StevenLiu staff 694848 9 1 04:17 test-
1441052243 .ts
-rw-r--r-- 1 StevenLiu staff 526588 9 1 04:17 test-
1441052249 .ts
[StevenLiu@localhost ffmpeg]$
./ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -v verbose -c copy -f hls -hls_segment_filename test-%s.ts -use_localtime 1 -bsf:v h264_mp4toannexb aaa.m3u8
[StevenLiu@localhost ffmpeg]$ cat aaa.m3u8;ll aaa-*.ts
aaa-
1441052417 .ts
aaa-
1441052427 .ts
aaa-
1441052437 .ts
aaa-
1441052440 .ts
aaa-
1441052449 .ts
-rw-r--r-- 1 StevenLiu staff
1310736 9 1 04:19 aaa-
1441052382 .ts
-rw-r--r-- 1 StevenLiu staff 277300 9 1 04:19 aaa-
1441052392 .ts
-rw-r--r-- 1 StevenLiu staff
1310736 9 1 04:20 aaa-
1441052417 .ts
-rw-r--r-- 1 StevenLiu staff
1067840 9 1 04:20 aaa-
1441052427 .ts
-rw-r--r-- 1 StevenLiu staff 235564 9 1 04:20 aaa-
1441052437 .ts
-rw-r--r-- 1 StevenLiu staff
1187220 9 1 04:20 aaa-
1441052440 .ts
-rw-r--r-- 1 StevenLiu staff 338776 9 1 04:20 aaa-
1441052449 .ts
[StevenLiu@localhost ffmpeg]$
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Rainer Hochecker [Tue, 1 Sep 2015 14:27:02 +0000 (16:27 +0200)]
avcodec/hevc_parser: fix split function of parser
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Wed, 2 Sep 2015 00:11:43 +0000 (02:11 +0200)]
avcodec/ffv1dec: Print CRCs at picture debug level
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Wed, 2 Sep 2015 00:10:31 +0000 (02:10 +0200)]
avcodec/ffv1dec: Check that there is enough space for the CRC in the global header
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Tue, 1 Sep 2015 22:44:28 +0000 (00:44 +0200)]
avcodec/h264_slice: replace assert by normal error check
Fixes assertion failure
Fixes: c6075771557e4f3b7b74e63d2d24fb01/signal_sigabrt_7ffff6ac8cc9_133_cov_2853689970_CREDITS.FST
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Carl Eugen Hoyos [Tue, 1 Sep 2015 22:58:13 +0000 (00:58 +0200)]
lavf/dv: Do not return EIO for every error (like EOF).
Fixes ticket #4818.
Reviewed-by: Ronald S. Bultje
Reviewed-by: Paul B Mahol
Ricardo Constantino [Sun, 30 Aug 2015 22:52:10 +0000 (23:52 +0100)]
avfilter/vf_subtitles: allow setting fonts directory
This is mostly useful if libass was compiled with a font provider
other than fontconfig, but is still useful in that case.
Signed-off-by: Ricardo Constantino <wiiaboo@gmail.com>
Michael Niedermayer [Tue, 1 Sep 2015 21:02:15 +0000 (23:02 +0200)]
avcodec/version: Minor version bump due to
5d12d7de2ce548a3c9f5c175a9d1c5bfbdbcbfa8
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Tue, 1 Sep 2015 20:45:07 +0000 (22:45 +0200)]
avformat/mxg: Use memmove()
Fixes undefined behavior
Fixes: 1700002963a49da13542e0726b7bb758/unknown_unknown_292_658_cov_2141972066_m1.mxg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Petri Hintukainen [Tue, 1 Sep 2015 08:56:21 +0000 (11:56 +0300)]
mpegts: demux BluRay text subtitles
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Petri Hintukainen [Mon, 31 Aug 2015 09:06:16 +0000 (12:06 +0300)]
mpegts: fix demuxing PES private stream 2
PES header size is 6 bytes (00 00 01 bf XX XX), not 0.
BluRay text subtitles use private stream 2.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Ganesh Ajjanagadde [Mon, 31 Aug 2015 15:07:56 +0000 (08:07 -0700)]
avfilter/vf_spp: use the name 's' for the pointer to the private context
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Andrew Stone [Tue, 1 Sep 2015 00:28:42 +0000 (20:28 -0400)]
rtmp: support the AMF_DATE tag
Instead of returning EINVAL, which can cause a stream to fail to load, this
allows the tag to be passed through to the flv demuxer, where it's summarily
ignored.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Rostislav Pehlivanov [Tue, 1 Sep 2015 11:07:00 +0000 (12:07 +0100)]
aacenc: disable bandtype modifying extensions when coder != twoloop
If the selected coder isn't twoloop, this commit temporarily
disables IS and PNS.
The problem is in the encode_window_bands_info() being confused
and setting invalid band_types for non-marked (normal) bands.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Paul B Mahol [Mon, 31 Aug 2015 17:48:10 +0000 (17:48 +0000)]
avfilter/vf_waveform: support envelope for all filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol [Mon, 31 Aug 2015 16:45:55 +0000 (16:45 +0000)]
avfilter/vf_waveform: simplify memory allocations
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol [Fri, 28 Aug 2015 18:45:53 +0000 (18:45 +0000)]
avfilter/vf_waveform: implement various filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 08:08:31 +0000 (09:08 +0100)]
fate: adjust fuzz of AAC Encoder's TNS test
Have to adjust it again, this time because of --enable-small on
gcc 4.5 in Linaro.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Carl Eugen Hoyos [Tue, 1 Sep 2015 07:19:49 +0000 (09:19 +0200)]
lavf: Remove probesize32 and max_analyze_duration32 on version bump.
Add FF_API_PROBESIZE_32 to allow removing 32bit probesize and 32bit
max_analyze_duration after the next libavformat version bump.
Carl Eugen Hoyos [Tue, 1 Sep 2015 07:17:26 +0000 (09:17 +0200)]
lavfi/scale: Pass src_range and dst_range to libswscale.
Fixes ticket #4812.
Rostislav Pehlivanov [Tue, 1 Sep 2015 06:26:03 +0000 (07:26 +0100)]
fate: update AAC tests to the new defaults
IS and PNS increase quality a ton so as a result the PSNR changed.
Disable the extensions and keep the tests separate such that there
will be no red herrings if one test fails.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 06:15:23 +0000 (07:15 +0100)]
aacenc: Enable Intensity Stereo by default
Since the changes made a few week ago (which were done more than a
month ago) the quality and stability of intensity stereo has been
notably good. There were some requests and wishes to have in on by
default and therefore it has been enabled. Should any regressions
arise changes will be made to preferably keep it operating rather
than just disabling it by default again.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 06:13:33 +0000 (07:13 +0100)]
aacenc: Enable Perceptual Noise Substitution by default
It has been in the current encoder in its current implementation
for quite some time now, so enable it by default. Will increase
quality at all bitrates, especially at low ones.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 06:07:59 +0000 (07:07 +0100)]
fate: update AAC Encoder TNS test for the new changes
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 06:00:10 +0000 (07:00 +0100)]
aacenc: reorder resetting of cpe->common_window
Purely a cosmetic change, most of the zeroing of encoder resources
should happen at the top of the main loop.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 05:44:07 +0000 (06:44 +0100)]
aacenc_tns: rework coefficient quantization and filter application
This commit reworks the TNS implementation to a hybrid between what
the specifications say, what the decoder does and what's the best
thing to do.
The filter application function was copied from the decoder and
modified such that it applies the inverse AR filter to the
coefficients. The LPC coefficients themselves are fed into the
same quantization expression that the specifications say should
be used however further processing is not done, instead they're
converted to the form that the decoder expects them to be in
and are sent off to the compute_lpc_coeffs function exactly the
way the decoder does. This function does all conversions and will
return the exact coefficients that the decoder will generate, which
are then applied to the coefficients.
Having the exact same coefficients on both the encoder and decoder
is a must since otherwise the entire sfb's over which the filter
is applied will be attenuated.
Despite this major rework, TNS might not work fine on some audio
types at very low bitrates (e.g. sub 90kbps) as it can attenuate
some coefficients too much. Users are advised to experiment with
TNS at higher bitrates if they wish to use this tool or simply
wait for the implementation to be improved.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 05:40:12 +0000 (06:40 +0100)]
aacenc: allocate a larger buffer for the TNS LPC context
Turns out autocorrelating more than 750 coefficients at once
will cause a segfault, despite there being enough space to
hold an entire frame of samples into the buffer.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 05:34:50 +0000 (06:34 +0100)]
lpc: add ff_lpc_calc_ref_coefs_f() function
This commit adds a function to get the reflection coefficients on
floating point samples. It's functionally identical to
ff_lpc_calc_ref_coefs() except it works on float samples and will
return the global prediction gain. The Welch window implementation
which is more optimized works only on int32_t samples so a slower
generic expression was used.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 05:32:35 +0000 (06:32 +0100)]
lpc: remove unused ff_lpc_calc_levinson() function
Not needed anymore, it was only used by the AAC TNS
encoder and was replaced with a more suitable function
in the following commit.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 05:30:08 +0000 (06:30 +0100)]
aacenctab: add tns_min_sfb[] to the encoder tables header
Needed for following commits. Contains the starting sfb for
every samplerate and window type.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Rostislav Pehlivanov [Tue, 1 Sep 2015 05:20:24 +0000 (06:20 +0100)]
aacenc: populate tns_max_bands
Needed for the following commits.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Michael Niedermayer [Tue, 1 Sep 2015 02:57:22 +0000 (04:57 +0200)]
avcodec/truemotion1: Check for even width
Fixes out of array access
Fixes: 87196d8bbc633629fc9dd851fce73e70/asan_heap-oob_26f6853_862_cov_585961513_sonic3dblast_intro-partial.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Tue, 1 Sep 2015 00:45:10 +0000 (02:45 +0200)]
avcodec/mpeg12dec: Set dimensions in mpeg1_decode_sequence() only in absence of errors
Fixes assertion failure
Fixes: 56dcafde14a8397161bb61a16c511179/signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer [Mon, 31 Aug 2015 21:43:43 +0000 (23:43 +0200)]
avcodec/movtextdec: Free ftab_temp
Fixes memleak
Fixes: efe937780e95574250dabe07151bdc23/unknown_unknown_351_849_cov_3187578556_shellymanne.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>