Michael Niedermayer
9810aa3408
Merge commit '110f7f35fb615b97d983b1c6c6a714fddd28bcbe'
...
* commit '110f7f35fb615b97d983b1c6c6a714fddd28bcbe':
aacpsy: correct calculation of minath in psy_3gpp_init
See: ca9849eecd
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:45:51 +02:00
Michael Niedermayer
df95281618
Merge commit 'e191aaca44b986816695e3b7ecfae64697fd6631'
...
* commit 'e191aaca44b986816695e3b7ecfae64697fd6631':
alsdec: limit avctx->bits_per_raw_sample to 32
See: 4c2b88678b
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:33:21 +02:00
Michael Niedermayer
54d985db84
Merge commit '8fc8024ea56e814cd257d5fe27b21a865080782f'
...
* commit '8fc8024ea56e814cd257d5fe27b21a865080782f':
aasc: return correct buffer size from aasc_decode_frame
See: 0be54ad280
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:20:36 +02:00
Michael Niedermayer
5a455dd011
avcodec/diracdec: Move buf[] read after size check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 22:01:58 +02:00
Andreas Cadhalpun
984f50deb2
diracdec: prevent overflow in data_unit_size check
...
buf_idx + data_unit_size can overflow, causing the '> buf_size' check to
wrongly fail.
This causes a segmentation fault.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 21:52:31 +02:00
Ronald S. Bultje
ed68fccf76
vp9: error out if chroma subsampling changes between frames.
...
This can happen after an intra-only frame. For reference, see:
https://groups.google.com/a/webmproject.org/forum/#!msg/webm-discuss/zaoTxREZjq8/v5Enht87AhcJ
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 20:09:44 +02:00
Anton Khirnov
3735b5c616
Revert "lavfi: always check av_expr_parse_and_eval() return value"
...
This reverts commit 63be97ec40
.
All those calls were unchecked on purpose, as explained in the comments
in the code.
2015-05-05 16:27:24 +02:00
Andreas Cadhalpun
60f1cc4a1f
alsdec: only adapt order for positive max_order
...
For max_order = 0 the clipping range is invalid. (amin = 2, amax = 1)
CC: libav-stable@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-05-05 16:10:52 +02:00
Andreas Cadhalpun
94bb1ce882
alsdec: check sample pointer range in revert_channel_correlation
...
Also change the type of begin, end and smp to ptrdiff_t to make the
comparison well-defined.
CC: libav-stable@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-05-05 16:06:58 +02:00
Michael Niedermayer
9d4fdfe24c
avformat/matroskaenc: Use avoid_negative_ts_use_pts if no stream writes dts
...
This reduces the number of cases where timestamps need to be shifted
Fixes Ticket4487
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 13:17:25 +02:00
Michael Niedermayer
7ac5c38ec5
avformat/mux: Add avoid_negative_ts_use_pts
...
This allows using pts instead of dts for negative TS avoidance
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 12:44:20 +02:00
Michael Niedermayer
36993527dd
cmdutils: Add libm.h for round()
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 11:51:00 +02:00
Andreas Cadhalpun
110f7f35fb
aacpsy: correct calculation of minath in psy_3gpp_init
...
The minimum of the ath(x, ATH_ADD) function depends on ATH_ADD.
This patch uses the first order approximation to determine it.
For ATH_ADD = 4 this results in the value at 3407.06812 (-5.24241638)
not the one at 3410 (-5.24237967).
CC: libav-stabl@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-05-05 10:28:02 +02:00
Andreas Cadhalpun
e191aaca44
alsdec: limit avctx->bits_per_raw_sample to 32
...
avctx->bits_per_raw_sample is used in get_sbits_long, which only
supports up to 32 bits.
CC: libav-stable@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-05-05 10:22:29 +02:00
Andreas Cadhalpun
8fc8024ea5
aasc: return correct buffer size from aasc_decode_frame
...
CC: libav-stable@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-05-05 10:18:59 +02:00
James Almer
858f81fde2
cmdutils: move get_rotation() up in the file
...
Fixes compilation of fftools without libavdevice
Signed-off-by: James Almer <jamrial@gmail.com >
2015-05-05 02:47:21 -03:00
James Almer
3f7986f983
avfilter/Makefile: add missing lavfutils.c dependency to cover_rect and find_rect filters
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-05-05 02:16:37 -03:00
Michael Niedermayer
7f45f7fc7f
avcodec/mpeg12dec: use the correct dimensions for checking SAR
...
Fixes Ticket4533
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 04:33:44 +02:00
Michael Niedermayer
6ef3426d90
avcodec/x86/deinterlace: use INIT_MMX like other asm code does too
2015-05-05 02:41:15 +02:00
Michael Niedermayer
c7369f3a4b
avformat/avidec: print a warning for negative sample_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 00:04:38 +02:00
Andreas Cadhalpun
ca234639ac
avidec: avoid infinite loop due to negative ast->sample_size
...
If max in clean_index is set to a negative ast->sample_size, the
following loop never ends:
while (max < 1024)
max += max;
Thus set ast->sample_size to 0 if it would otherwise be negative.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-05 00:04:38 +02:00
James Almer
079b7f6eac
vp9: add profile names
...
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-05-04 18:39:51 -03:00
Michael Niedermayer
b4cc7d67f5
avfilter/vf_cover_rect: clip rectangle if it is partly outside the input
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 22:33:17 +02:00
Andreas Cadhalpun
0eec40b713
avidec: check for valid bit_rate range
...
If bit_rate is negative, it can trigger an av_assert2 in av_rescale_rnd.
Since av_rescale returns int64_t, but st->codec_bit_rate is int, it can
also overflow into a negative value.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 21:11:19 +02:00
Michael Niedermayer
783e94cb11
Merge remote-tracking branch 'cehoyos/master'
...
* cehoyos/master:
lavfi/cropdetect: Fix cropdetect for > 8 bit input.
lavf/apngenc: Fix png remuxing by using default extension apng.
lavf/mxfenc: Write correct interlaced flag when muxing dnxhd.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 17:59:56 +02:00
Carl Eugen Hoyos
0bca6182b2
lavfi/cropdetect: Fix cropdetect for > 8 bit input.
2015-05-04 17:50:16 +02:00
Carl Eugen Hoyos
8ad04d24c8
lavf/apngenc: Fix png remuxing by using default extension apng.
2015-05-04 17:49:36 +02:00
Carl Eugen Hoyos
d90f91c1c8
lavf/mxfenc: Write correct interlaced flag when muxing dnxhd.
...
Reported and early patch version tested by forum user gridtank.
Reviewed-by: Tomas Härdin
2015-05-04 17:44:14 +02:00
Michael Niedermayer
f320f2f4c6
cmdutils: Ask for a sample in case a odd rotation angle is encountered
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 17:39:23 +02:00
Michael Niedermayer
5d309d3091
avformat/matroskadec: Use tracks[k]->stream instead of s->streams[k]
...
The later is not correct
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 15:49:58 +02:00
Andreas Cadhalpun
e54540655f
matroskadec: check s->streams[k] before using it
...
This fixes a segmentation fault.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 15:48:55 +02:00
Michael Niedermayer
d43cd6b08e
avcodec/ffv1dec: Check chroma shift parameters
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 14:31:45 +02:00
Michael Niedermayer
03baa861ea
avcodec/ffv1dec: More completely check micro_version
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 14:31:45 +02:00
Michael Niedermayer
3dfbdb328e
avcodec/ffv1dec: Check quant table symbols more completely
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 14:31:45 +02:00
Andreas Cadhalpun
eb9fb508b0
matroskadec: use uint64_t instead of int for index_scale
...
index_scale is set to matroska->time_scale of type uint64_t.
When index_scale is int, the assignment can overflow and e.g. result
in index_scale = 0. This causes a floating point exception due to the
division by index_scale.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 00:16:00 +02:00
Michael Niedermayer
800df6a849
ffmpeg_filter: use get_rotation()
...
This unifies the rotation extraction code between ffplay and ffmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-04 00:14:36 +02:00
Michael Niedermayer
4351c288b9
ffplay&cmdutils:Factor get_rotation() code out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 23:49:16 +02:00
Anshul Maheshwari
a6b630e9b6
avcodec/ccaption_dec: correcting line breaks in cc
...
Signed-off-by: Anshul Maheshwari <er.anshul.maheshwari@gmail.com >
Reviewed-by: Clément Bœsch <u@pkh.me >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 23:38:57 +02:00
Michael Niedermayer
f9e802018e
ffplay: unify displaymatrix based rotation code
...
Reviewed-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 22:39:39 +02:00
Andreas Cadhalpun
372aa0777a
pngdec: don't use AV_PIX_FMT_MONOBLACK for apng
...
AV_PIX_FMT_MONOBLACK has the AV_PIX_FMT_FLAG_BITSTREAM flag, i.e.
linesize can be smaller than width.
Since x_offset is only check against the width, this can lead to
x_offset * bpp >= image_linesize.
In this case ptr could be set to a position outside the image_buf in
png_handle_row, leading to memory corruption and thus crashes.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 21:50:09 +02:00
Andreas Cadhalpun
8f760be4d3
pngdec: return correct error code from decode_frame_common
...
During the loop ret can get changed. Since it is not set on all failure
paths, decode_frame_common can return 0 even though an error occurred.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 20:28:35 +02:00
Andreas Cadhalpun
287dbb0771
pngdec: check s->last_picture.f->data[0] before using it
...
This check was removed in commit 08aec6f6
, but
s->last_picture.f->data[0] is still used in handle_p_frame_apng
unconditionally.
This fixes a segmentation fault.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 17:24:28 +02:00
Michael Niedermayer
042260cde4
avcodec/wavpack: Check L/R values before use to avoid harmless integer overflow and undefined behavior in fate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 16:37:10 +02:00
Michael Niedermayer
52835cb8e1
avutil/opt: Avoid division by 0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 16:37:04 +02:00
Muhammad Faiz
a141948a8b
avfilter/avf_showcqt: optimize gamma calculation
...
benchmark (on intel core2 duo, gcc 4.9.1)
input samples duration 00:03:39.59
command: time -p ffmpeg -f f32le -ac 2 -ar 44100 -i input.pcm \
-filter_complex showcqt=fullhd=0:gamma=$gamma \
-f rawvideo -y /dev/null
gamma previous modified
1 48.49 s 45.38 s
2 49.33 s 48.11 s
3 80.86 s 59.80 s
4 80.84 s 51.25 s
5 80.75 s 61.06 s
6 80.93 s 61.80 s
7 80.03 s 61.56 s
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 11:53:04 +02:00
Michael Niedermayer
29ef54aa90
avcodec/nvenc: Make pix_fmts_nvenc const
...
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 04:14:01 +02:00
Jérôme Martinez
14605a0b99
ffv1dec: plane_index is 1 in case of version 4 gray+alpha.
...
Since version 4, plane_index for the alpha plane is 1 in the case chroma_planes is 0.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 01:55:12 +02:00
Michael Niedermayer
eb16881199
LICENSE.md: add *_rect filters
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 01:43:30 +02:00
Michael Niedermayer
c8b4ffdf55
configure: prepend avfilter_deps for *_rect filters
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 01:42:51 +02:00
Michael Niedermayer
40964e2e89
Merge commit '3edeb7749e4276c78ad57307b8c3b32dd476d1da'
...
* commit '3edeb7749e4276c78ad57307b8c3b32dd476d1da':
configure: Allow log2 with MSVC 2013 onwards.
Conflicts:
configure
See: 4d93e758d7
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-03 01:30:53 +02:00