James Almer
c792528970
x86/imdct36: use extractps inside the STORE macro
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-01-28 13:35:15 -03:00
wm4
14a90c9ef0
mmaldec: limit internal buffering
...
This uses a new MMAL feature, which limits the number of extra frames
that can be buffered within the decoder. VIDEO_MAX_NUM_CALLBACKS can
be defined as positive or negative number. Positive numbers are
absolute, and can lead to deadlocks if the user underestimates the
number of required buffers. Negative numbers specify the number of extra
buffers, e.g. -1 means no extra buffer, (-1-N) means N extra buffers.
Set a gratuitous default of -11 (N=10). This is much lower than the
firmware default, which appears to be 96.
This is backwards compatible, but needs a symbol only present in newer
firmware headers. (It's an enum item, so it requires a check in
configure.)
2016-01-28 17:24:53 +01:00
wm4
7b1b53f3a4
mmaldec: support MPEG-4
...
I guess this means part 2 in both cases. Not sure which profiles exactly
are actually supported properly.
2016-01-28 17:24:40 +01:00
wm4
d27a12cb09
mmaldec: print the MMAL format FourCC automatically
...
Slight simplification. The result is the same. Also, change the
wording of the message as requested in patch review.
2016-01-28 17:23:46 +01:00
Derek Buitenhuis
e8c5d5f429
snow: Move scenechange_threshold to a private option
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-28 15:36:06 +00:00
Derek Buitenhuis
30c1bdb87c
Merge commit '7c79587d7407dab4b9445d66b5f111fe657c8c4d'
...
* commit '7c79587d7407dab4b9445d66b5f111fe657c8c4d':
lavc: Move scenechange_threshold to codec private options
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-28 15:24:00 +00:00
Derek Buitenhuis
7c6e86c0ce
Merge commit '5764d38173661c29d954711dd5abfddf709e9ba4'
...
* commit '5764d38173661c29d954711dd5abfddf709e9ba4':
lavc: Move chromaoffset to codec private options
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-28 15:22:19 +00:00
Derek Buitenhuis
13be46c08e
Merge commit '0ac9f33a9e69c64eee592791be3c5441a6a3d6b7'
...
* commit '0ac9f33a9e69c64eee592791be3c5441a6a3d6b7':
lavc: Move frame_skip_* to codec private options
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-28 15:08:10 +00:00
Derek Buitenhuis
4f32ccb618
Merge commit '84c4714f397c9c50eb9d49008cc1c08385f68f31'
...
* commit '84c4714f397c9c50eb9d49008cc1c08385f68f31':
lavc: Move brd_scale to codec private options
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-28 14:21:33 +00:00
Paul B Mahol
2edd47582b
avcodec: add dvaudio parser
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-28 10:31:41 +01:00
Matthieu Bouron
27f1ea5097
lavc/mjpegdec: use ptrdiff_t instead of ssize_t
...
Fixes build on msvc.
2016-01-28 09:25:59 +01:00
Michael Niedermayer
e0b187e7da
avcodec/h264: Fix memleak in case of ff_h264_decode_extradata() failure
...
Fixes Ticket5139
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-28 04:15:18 +01:00
Derek Buitenhuis
02bd02da5f
qsvenc: Fix b_strategy typo
...
This was introduced in 0e6c8532215790bbe560a9eea4f3cc82bb55cf92.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-28 00:08:40 +00:00
Derek Buitenhuis
265ed6732f
libavcodec/util: Fix timebase overflow check
...
It could accidentally divide by zero if num was zero.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 21:12:04 +00:00
Derek Buitenhuis
5889bc16a4
avcodec/version: Add missing #endif
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 20:27:25 +00:00
Derek Buitenhuis
2e9b995e4f
Merge commit '0e6c8532215790bbe560a9eea4f3cc82bb55cf92'
...
* commit '0e6c8532215790bbe560a9eea4f3cc82bb55cf92'
lavc: Move b_frame_strategy and b_sensitivity to codec private options
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 20:18:04 +00:00
Derek Buitenhuis
e15e108885
Merge commit 'd43a165bda0eae95f4c7a168c7d13d94966c1a09'
...
* commit 'd43a165bda0eae95f4c7a168c7d13d94966c1a09':
imgconvert: Add the proper API guards to a deprecated function
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 20:06:01 +00:00
Derek Buitenhuis
fa6c7ccc20
Merge commit 'f7168d7016f7d1034ec90223fa91a90711704e11'
...
* commit 'f7168d7016f7d1034ec90223fa91a90711704e11':
imgconvert: Move AVPicture-related static function to the deprecated section
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 20:02:01 +00:00
Derek Buitenhuis
fa48cd8814
Merge commit '892f037c55d86ce36f8705fbeab052189312a13e'
...
* commit '892f037c55d86ce36f8705fbeab052189312a13e':
imgconvert: Move the shrink functions only where needed
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 19:58:35 +00:00
Derek Buitenhuis
54f49bd378
Merge commit '9d3ea5cbf57e30bf2717a9ce64e858dad8a02aa6'
...
* commit '9d3ea5cbf57e30bf2717a9ce64e858dad8a02aa6':
imgconvert: Drop outdated comment block
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 19:56:44 +00:00
Derek Buitenhuis
e87ace6246
Merge commit '7486418683bd2477772e03aab573cf846c12fb0d'
...
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 19:39:52 +00:00
Matthieu Bouron
0d733ec379
lavc/mjpegdec: speed up scan data copy
2016-01-27 20:08:52 +01:00
Derek Buitenhuis
ea2df33052
Merge commit '4f22b138886e29f7fffa8c715673951e51be9f32'
...
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 18:23:31 +00:00
Derek Buitenhuis
21f9468402
avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT
...
Libav, for some reason, merged this as a public API function. This will
aid in future merges.
A define is left for backwards compat, just in case some person
used it, since it is in a public header.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27 16:36:46 +00:00
Michael Niedermayer
0aada30510
avcodec/jpeg2000dec: More completely check cdef
...
Fixes out of array read
Fixes: j2k-poc.bin
Found-by: Lucas Leong <wmliang.tw@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-27 17:18:00 +01:00
Paul B Mahol
75a7565bcb
avcodec/dvaudiodec: support cases when codec_tag is not set but block_align is
...
Support packets larger than block size, return single block size.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-27 13:58:25 +01:00
Paul B Mahol
74e8f4f674
avcodec/dvaudiodec: set channel layout
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-27 11:19:58 +01:00
Carl Eugen Hoyos
7a90edc188
lavc/mjpegdec: Set SAR even if no resolution is available.
...
Fixes ticket #4479 .
2016-01-27 10:23:37 +01:00
Carl Eugen Hoyos
69dbecf920
lavc/h264: Show "Increasing reorder buffer" message with loglevel info.
...
See ticket #5138 for a sample.
2016-01-27 10:11:46 +01:00
Andreas Cadhalpun
9079e99d2c
svq1enc: fix out of bounds reads
...
level can be 5, but there are only four codebooks.
Fixes ubsan runtime error: index 5 out of bounds for type 'int8_t
[4][96]'
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-27 00:08:23 +01:00
Paul B Mahol
11bc4fd653
avcodec/dvaudiodec: only stereo makes sense
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-26 23:33:55 +01:00
Paul B Mahol
e9e623369d
avcodec: add Ulead DV audio decoder
...
Fixes #1564 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-26 23:14:40 +01:00
Marton Balint
73e4565dff
lavc/libzvbi-teletextdec: add support for setting background opacity
...
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-01-25 22:15:27 +01:00
Marton Balint
92f2a9dbc5
lavc/libzvbi-teletextdec: remove cmax variable
...
Use VBI_NB_COLORS instead.
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-01-25 22:06:57 +01:00
Marton Balint
fe4a2cbd4d
lavc/libzvbi-teletextdec: use the built-in transparent color for transparent background
...
Signed-off-by: Marton Balint <cus@passwd.hu>
2016-01-25 22:06:57 +01:00
Mats Peterson
191ec55c9f
lavc/rawdec: Use 16-byte line alignment for AV_PIX_FMT_MONOWHITE
...
The line alignment for 1 bpp raw AV_PIX_FMT_MONOWHITE video (currently
used for AVI) was previously 4 bytes, which generated alignment warning
messages, not only for odd-width files. The alignment is now 16 bytes.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-25 19:47:16 +01:00
James Almer
209f50e16b
avcodec/synth_filter: split off remaining code from dcadec files
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-01-25 14:57:38 -03:00
Paul B Mahol
5dc37a5d8a
avcodec/dcaenc: do not change user requested bitrate
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-25 17:10:49 +01:00
Paul B Mahol
06f65fd026
avcodec/dcaenc: return correct number of bytes in output packet
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-25 17:10:49 +01:00
Michael Niedermayer
ed0c550564
avcodec/utils: run ff_frame_thread_encoder_init() only for encoders
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-25 16:47:15 +01:00
Michael Niedermayer
46f67f4a34
avcodec/rawdec: Check height and packet size
...
Avoids potential division by 0
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-25 11:07:42 +01:00
Mats Peterson
82325dbec1
lavc/rawdec: Use 16-byte line alignment for 1, 2, 4 and 8 bpp
...
This patch aligns the lines of 1 bpp depth for QuickTime, and 2, 4 and 8
bpp depths for AVI and QuickTime, on 16-byte boundaries. At the same
time, the packet row stride is properly catered for.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-25 11:07:42 +01:00
Mats Peterson
fe7639b1c8
avcodec/rawdec: initialize palette for mono
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-25 11:07:42 +01:00
James Almer
1d8f9b7d1a
avcodec/webp: fix decoder dependencies
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-01-24 20:30:33 -03:00
Paul B Mahol
3e7d684912
avcodec/flacenc: fix calculation of bits required in case of custom sample rate
...
Sample rate of 11025 takes 16 bits but previous code would pick only 8.
Fixes assertion failure.
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-24 21:54:13 +01:00
Michael Niedermayer
a7305c780b
Print the whitelists if entities are not found on them
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-24 16:52:10 +01:00
Michael Niedermayer
0be4377333
fate/cabac: replace uninitialized bytes by random bytes
...
Fixes valgrind warning
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-23 20:53:29 +01:00
Hendrik Leppkes
406f30072e
dxva2_h264: fix reference field marking in long slice struct
...
Fixes artifacts in interlaced decoding on old Intel GPUs.
2016-01-23 13:29:46 +01:00
Michael Niedermayer
f502583663
avcodec/mpeg4videoenc: Use 64bit for time variables
...
Fixes assertion failure and integer overflow
Fixes: fc677bbea2c6f901763eb637b61fa5e2/signal_sigabrt_7ffff6ae7cb7_9556_dfd95f040a69f725d1b2f861bd491725.ivf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-23 02:17:53 +01:00
Rostislav Pehlivanov
ce855bf43b
diracdec: fix full range videos
...
Full range video had been broken by the introduction of the < 2U check
at the following line. The bitstream format kind of implies that the full
and limited ranges use different pix_fmts but that's incorrect since we
have the avctx->color_range flag. So adjust the pixel range index to
be mapped to the same pix_fmts as limited range index.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2016-01-22 17:15:00 +00:00