Michael Niedermayer
ba77fb61f7
Merge commit 'd80811c94e068085aab797f9ba35790529126f85'
...
* commit 'd80811c94e068085aab797f9ba35790529126f85':
riff: Use the correct logging context
Conflicts:
libavformat/asfdec_o.c
libavformat/avidec.c
libavformat/dxa.c
libavformat/matroskadec.c
libavformat/mov.c
libavformat/riff.h
libavformat/riffdec.c
libavformat/wavdec.c
libavformat/wtvdec.c
libavformat/xwma.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-12 15:22:37 +02:00
Michael Niedermayer
e72988d3f8
Merge commit '355864ef7a9548ee6491a25de1e0650bd983a667'
...
* commit '355864ef7a9548ee6491a25de1e0650bd983a667':
g726: Do not crash on user mistake
Merged-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-12 15:08:30 +02:00
Ronald S. Bultje
3a18d3fa04
ivfenc: write duration at end-of-stream.
...
At the beginning, the value is not initialized.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-12 13:56:50 +02:00
Michael Niedermayer
cdb0d7e439
avformat/brstm: Remove unused variable
...
Fixes "libavformat/brstm.c:128:35: warning: variable info_size set but not used"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-12 12:17:40 +02:00
Michael Niedermayer
944a1aa3c5
avformat/yuv4mpegdec: Use 64bit for file offset
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-12 00:00:21 +02:00
Michael Niedermayer
f8db81074a
avcodec/utils: Assert that the pointer is set when size is in ff_fast_malloc()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 23:36:45 +02:00
Michael Niedermayer
59a07df067
avcodec/utils: Avoid undefined void casts in ff_fast_malloc()
...
based on code from libavutil/mem.c
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 23:24:16 +02:00
Michael Niedermayer
b3415e4c5f
avutil/mem: Fix potential overflow in overallocation code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 22:47:09 +02:00
Michael Niedermayer
bc976e5793
avcodec/utils: Fix potential overflow in overallocation code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 22:46:44 +02:00
Paul B Mahol
9ea81fe95e
fate: add tests for w3fdif filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-07-11 19:34:04 +00:00
Paul B Mahol
3666974230
avformat/yuv4mpegdec: remove unused variable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-07-11 19:31:04 +00:00
Ronald S. Bultje
3bb58c377b
vf_psnr: fix rgb channel order mixup in final log message.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 19:13:57 +02:00
Ronald S. Bultje
9879421f1a
vf_psnr: always calculate MSE over full pixel range.
...
This makes the output compatible with that of pretty much any other
tool that calculates PSNR.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 18:47:05 +02:00
Luca Barbato
d80811c94e
riff: Use the correct logging context
2015-07-11 18:45:44 +02:00
Luca Barbato
355864ef7a
g726: Do not crash on user mistake
...
Properly report the sample rate as invalid
CC: libav-stable@libav.org
2015-07-11 18:45:44 +02:00
Michael Niedermayer
9b8b804cfb
avformat/yuv4mpegdec: Remove unused variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 14:49:55 +02:00
Ronald S. Bultje
733c5d889b
yuv4mpeg: add rough duration estimate and seeking.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 14:46:19 +02:00
Ronald S. Bultje
c381af77c5
vF_psnr: move set_meta() calls out of loop.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 12:48:58 +02:00
Michael Niedermayer
e76c34d08c
Merge commit '87f98a2b9d4c7218ad82bb45347a53b65e5244f3'
...
* commit '87f98a2b9d4c7218ad82bb45347a53b65e5244f3':
fbdev: Support the RGB565 colour space.
Conflicts:
libavdevice/fbdev_dec.c
See: 43d36599fe3330913c6be9da5519dee048263dc9
Merged-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 12:25:03 +02:00
Dan Flett
87f98a2b9d
fbdev: Support the RGB565 colour space.
...
Tested on a Raspberry Pi.
Signed-off-by: Martin Storsjö <martin@martin.st>
2015-07-11 10:15:59 +03:00
Ronald S. Bultje
0303d43964
vf_psnr: add channel weighting based on chroma subsampling.
...
Also add per-channel psnr stream averages to final log message.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 04:14:09 +02:00
Michael Niedermayer
235e903b63
Merge commit '1410eeb6ea6bc5784e40032430afcdf54a79aedb'
...
* commit '1410eeb6ea6bc5784e40032430afcdf54a79aedb':
imc: Use correct position for flcoeffs2 calculation
See: 75fd5ce4c1c0b2d96d71c74b650cefaaef519d27
Merged-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 00:38:16 +02:00
Michael Niedermayer
c06e556274
avcodec/mpeg4videodec: Check P cbpy
...
Fixes undefined behavior
Fixes: signal_sigsegv_c3097a_991_xtrem_e2_m64q15_a32sxx.3gp
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-11 00:22:29 +02:00
Andreas Cadhalpun
75fd5ce4c1
imc: use correct position for flcoeffs2 calculation
...
flcoeffs2[pos] should be the log2 of flcoeffs1[pos].
flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf,
causing problems further down.
This seems to have been copied from imc_decode_level_coefficients in
commit 4eb4bb3 without updating the position.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-07-11 00:00:36 +02:00
Michael Niedermayer
8fca37d5f8
avfilter/vf_ssim: Mark constant tables as const
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-10 23:43:21 +02:00
Michael Niedermayer
d759f7f1d0
avcodec/j2kenc: remove unused variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-10 23:24:20 +02:00
Andreas Cadhalpun
1410eeb6ea
imc: Use correct position for flcoeffs2 calculation
...
flcoeffs2[pos] should be the log2 of flcoeffs1[pos].
flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf,
causing problems further down.
This seems to have been copied from imc_decode_level_coefficients in
commit 4eb4bb3 without updating the position.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-07-10 23:13:30 +02:00
Andreas Cadhalpun
05cc8c8e4b
hevc: check slice address length
...
It is used as get_bits argument and reading 0 bits isn't supported.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-07-10 21:28:56 +02:00
Michael Niedermayer
72527d9c54
Merge commit '872fab4a3df48e7e6484333ee2228c684e319634'
...
* commit '872fab4a3df48e7e6484333ee2228c684e319634':
asfdec: Fix reading from the pipe
Merged-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-10 20:47:46 +02:00
Michael Niedermayer
47d077337a
avcodec/utils: Document 32 min for h264 width
...
Suggested-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-10 18:31:42 +02:00
Michael Niedermayer
b1e242bc56
avcodec/g2meet: Check R/G/B values in epic_decode_pixel_pred()
...
Fixes: asan_double-free_d34593_861_smp3.wmv
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-10 18:11:28 +02:00
Andreas Cadhalpun
3526a120f9
snow: remove an obsolete av_assert2
...
It asserts that the frame linesize is larger than 37, but it can be
smaller and decoding such frames works.
Before commit cc884a35 src_stride > 7*MB_SIZE was necessary, because the
blocks were interleaved in the tmp buffer and the last block was added
with an offset of 6*MB_SIZE.
It was changed for src_stride <= 7*MB_SIZE to write the blocks
sequentially, hence the larger tmp_step.
After that the assert was only necessary to make sure that the buffer
remained large enough.
Since commit bd2b6b33 s->scratchbuf is used as tmp buffer.
As part of commit 86e107a7 the minimal scratchbuf size was increased to
256*7*MB_SIZE, which is enough for any src_stride <= 7*MB_SIZE.
Also add a comment explaining the tmp_step calculation.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-07-10 16:21:50 +02:00
Michael Niedermayer
7ef6656b1e
avcodec/utils: use a minimum 32pixel width in avcodec_align_dimensions2() for H.264
...
Fixes Assertion failure
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-07-10 15:18:41 +02:00
Michael Niedermayer
e71ca21f30
avcodec/motion_est_template: Fix undefined behavior in small_diamond_search()
...
Fixes: asan_heap-oob_394322e_138_cov_4265020547_CVPCMNL1_SVA_C.264
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-10 13:42:41 +02:00
Alexandra Hájková
872fab4a3d
asfdec: Fix reading from the pipe
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2015-07-10 13:25:02 +02:00
Paul B Mahol
ae55fc82a8
avfilter/vf_removegrain: clip to uint16 instead to uint8
...
This is how original filter behaves.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-07-10 10:50:28 +00:00
Michael Niedermayer
7b404c94f3
avcodec/libopenh264enc: Do not truncate frame rate
...
Suggested-by: Gregory J Wolfe <gregory.wolfe@kodakalaris.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-07-10 04:19:07 +02:00
Michael Niedermayer
033dc39c56
Merge commit '67c884eb07c7e9f2cb72bb8d447d945e5ac8cac7'
...
* commit '67c884eb07c7e9f2cb72bb8d447d945e5ac8cac7':
libvpx: Add the library header
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2015-07-10 02:32:08 +02:00
Michael Niedermayer
60c6959b6b
Merge commit '461b45efd04859b2672238bc8a6ecab9e9a14948'
...
* commit '461b45efd04859b2672238bc8a6ecab9e9a14948':
lavc: Add nvenc.h to the skipheader
Conflicts:
libavcodec/Makefile
No change as there is no nvenc.h in FFmpeg
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2015-07-10 02:15:54 +02:00
Ivan Uskov
5985316fba
libavcodec/qsvenc.c: improving handling for return codes of MFXVideoENCODE_EncodeFrameAsync
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-07-10 01:26:16 +02:00
Michael Niedermayer
b160fc290c
avcodec/mpegvideo: Clear pointers in ff_mpv_common_init()
...
This ensures that no stale pointers leak through on any path
Fixes: signal_sigsegv_c3097a_991_xtrem_e2_m64q15_a32sxx.3gp
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-07-09 22:47:16 +02:00
Vittorio Giovara
67c884eb07
libvpx: Add the library header
...
Unbreak make checkheaders
2015-07-09 21:36:19 +02:00
Luca Barbato
461b45efd0
lavc: Add nvenc.h to the skipheader
...
Unbreak make checkheaders
2015-07-09 21:34:57 +02:00
Paul B Mahol
ba0b4e53a5
fate: add removegrain tests
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2015-07-09 18:28:29 +00:00
Carl Eugen Hoyos
e786e96be7
lavf/rtpenc_jpeg: Error out for non-standard Huffman tables.
...
Related to ticket #3823 .
2015-07-09 20:03:38 +02:00
Carl Eugen Hoyos
ad7c5cba4e
lavf/rtpenc_jpeg: Do not check the table number when checking precision.
2015-07-09 20:00:31 +02:00
Carl Eugen Hoyos
2c7f7a690f
ffmpeg: Use av_log to print benchmark output.
2015-07-09 19:58:22 +02:00
Carl Eugen Hoyos
6253f511e0
Cosmetics: Reindent after last commit.
2015-07-09 19:52:06 +02:00
Carl Eugen Hoyos
da46370e94
lavf/matroskaenc: Do not needlessly allocate memory for cuepoints.
...
Fixes ticket #4690 .
2015-07-09 19:49:37 +02:00
Ivan Uskov
dbf8352a2e
libavcodec/qsvenc.c: Fix for too agressive height alignment during frame encoding which may be reason of superflous frame copying.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-07-09 17:46:18 +02:00