James Almer
82dbfccaf0
x86/aacdec: use HADDPS macro
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-06-08 14:18:18 -03:00
Michael Niedermayer
f883f0b0bd
avcodec/h264: Put context_count check back
...
Fixes assertion failure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-08 15:15:00 +02:00
Michael Niedermayer
27c1eae55f
avcodec/h264: Fix off by 1 context count
...
Fixes fate-h264-xavc-4389 with slice threads
2016-06-07 23:32:34 +02:00
Paul B Mahol
c206a32435
avcodec/sheervideo: fix order of operations for raw lines
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-06-07 23:14:07 +02:00
Paul B Mahol
60bac785c3
avcodec/sheervideo: add support for 8-bit interlaced (A)RGB
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-06-07 22:47:12 +02:00
Paul B Mahol
fdf832a986
avcodec: add BitJazz SheerVideo decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-06-07 21:38:49 +02:00
Michael Niedermayer
c36fc857b5
avcodec/alsdec: Check r to prevent out of array read
...
No testcase known
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-07 21:10:22 +02:00
Matthieu Bouron
1729387c7a
lavc/mediacodec: improve error messages
2016-06-07 10:22:27 +02:00
Matthieu Bouron
93f4d1646e
lavc/mediacodec: bypass width/height restrictions when looking for a decoder
...
Codec width/height restrictions seem hardcoded at the OMX level and
seem arbitrary. Bypassing those restrictions allows a device to decode
streams at higher resolutions.
For example it allows a Nexus 5 to decode h264 streams with a resolution
higher than 1920x1080.
2016-06-07 10:22:20 +02:00
Matthieu Bouron
cb89fd2334
lavc/mediacodec: rename MediaFormat field clazz to mediaformat_class for consistency
2016-06-07 10:20:44 +02:00
Matthieu Bouron
56ef387e21
lavc/mediacodec: move struct declarations at the begin
2016-06-07 10:20:44 +02:00
Matthieu Bouron
79efd3b8b8
lavc/mediacodec: rename jfields_mapping to jni_amediacodeclist_mapping
2016-06-07 10:20:36 +02:00
Matthieu Bouron
f2e7f9966e
lavc/mediacodec: do not delete a local reference twice in case of error
2016-06-07 10:18:11 +02:00
Michael Niedermayer
153ab83bd3
avcodec/utils: check skip_samples signedness
...
Fixes Ticket5528
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-07 04:31:39 +02:00
Timo Rothenpieler
808356c61c
avcodec/nvenc: Check capabilities for interlaced encoding
2016-06-06 23:52:55 +02:00
Martin Vignali
9511a0895d
avcodec/exr: indent b44 uncompress function
2016-06-06 15:59:18 +02:00
Martin Vignali
bc1f3dfaa3
avcodec/exr: fix decoding of B44 exr when all channel doesnt have the same pixel type
2016-06-06 15:42:34 +02:00
Martin Vignali
df7cd4176a
avcodec/exr: move channel_line_size to thread data
...
In order to be used by b44 uncompress.
2016-06-06 15:42:30 +02:00
Martin Vignali
03152e74df
avcodec/exr: improve pxr24 uncompress
...
Fix pxr24 uncompress when all channels doesnt have the same pixel type.
The expected length after zip decoding, is now calculated channel by channel.
2016-06-06 15:39:46 +02:00
Martin Vignali
16107aeaf3
avcodec/exr: remove unneed scanline_size var
2016-06-06 15:39:39 +02:00
Martin Vignali
42297d8419
avcodec/exr: fix tile decoding when all channels doesnt have the same pixel type
...
Also simplify the tile code, sharing more code with the scanline mode.
2016-06-06 15:39:22 +02:00
Martin Vignali
d24eb9a3c6
avcodec/exr: indent the if (layer_match) part
2016-06-06 15:39:06 +02:00
Martin Vignali
753088a2a4
avcodec/exr: fix layer detection
...
Only test a channel if the layer name match.
Avoid to try to mix channel between the main layer (rgba layer),
and the layer request by the user.
2016-06-06 15:38:35 +02:00
Michael Niedermayer
43a4276c69
avcodec/bmp_parser: Check fsize
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-06 14:32:48 +02:00
Michael Niedermayer
37005e65eb
avcodec/bmp_parser: reset state
...
Fixes part of ticket 5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-06 14:30:40 +02:00
Michael Niedermayer
250b620d29
avcodec/bmp_parser: Fix remaining size
...
Fixes part of ticket 5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-06 14:27:20 +02:00
Michael Niedermayer
bfe945ac3a
avcodec/bmp_parser: Fix frame_start_found in cross frame cases
...
Fixes part of ticket 5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-06 14:01:43 +02:00
Michael Niedermayer
bacc4b6e81
avcodec/wmalosslessdec: Use unsigned operations for overflowing cases
...
Fixes undefined behavior in fate-lossless-wma24-2
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-06 02:24:22 +02:00
Michael Niedermayer
f730367a60
avcodec/mpeg4videodec: Fix default low_delay flag value if not coded
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-05 20:55:09 +02:00
Michael Niedermayer
87c53e5354
avcodec/mpeg4videodec: Print low_delay value with -debug 1 in decode_vol_header()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-05 20:19:57 +02:00
Michael Niedermayer
134cba728b
Seperate x264rgb encoder and only enable when its actually supported
...
This avoids enabling and building the x264rgb encoder when its actually not supported and
thus would not work
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-05 17:04:29 +02:00
Michael Niedermayer
5fb6e39dd1
avcodec/cfhd: clear idwt_buf on allocation
...
This avoids use of uninitialized variables and might make bugs in general
easier to reproduce
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-05 15:41:50 +02:00
Michael Niedermayer
f90c9c306f
Check av_dup_packet() return code
...
Fixes: CID1338320
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-05 15:22:59 +02:00
Michael Niedermayer
39c0b22df4
avcodec/mpegvideo: Deallocate last/next picture earlier
...
Fixes regression with mplayers direct rendering and reduces buffer count
pressure in some cases
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-05 02:08:54 +02:00
Michael Niedermayer
d953b2857b
avcodec/utils: initialize delay in avcodec_parameters_to_context()
...
Fixes lost codec delayy
Should fix Ticket5509
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-04 20:46:16 +02:00
Timo Rothenpieler
7c55f5d782
avcodec/nvenc: Don't set packet duration
...
It's not expected to be set on video packets and causes issues in
ffmpeg.c.
2016-06-04 12:20:59 +02:00
Matthieu Bouron
12f47539ca
lavc/mediacodecdec_h264: rename input_ref to input_pkt
2016-06-03 10:20:54 +02:00
Matthieu Bouron
15432a903e
lavc/mediacodecdec_h264: switch to new BSF API
2016-06-03 10:20:54 +02:00
Matthieu Bouron
e0df56f25d
lavc/vaapi_encoder_{h264,h265}: fix bad format warning
2016-06-03 10:09:39 +02:00
Paul B Mahol
e8a236add8
avcodec/magicyuv: set correct size of last slice for each plane
...
Fixes invalid read.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-06-02 22:43:51 +02:00
Michael Niedermayer
3402871f36
avcodec/h264_refs: Fix pps_ref_count with multiple PPS
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-02 14:51:49 +02:00
Michael Niedermayer
a8289d2407
avcodec/h264_refs: Remove unused pps_count
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-02 14:48:12 +02:00
Paul B Mahol
a3c2a9c736
avcodec/magicyuv: fix decoding of raw slices
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-06-02 06:59:46 +02:00
Andriy Lysnevych
2fe04630e7
avcodec/avpacket: Respect payload offset in av_grow_packet
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-02 00:52:22 +02:00
Michael Niedermayer
b8426b865e
avcodec: Document where the AVOption names can be found for the fields of AVCodecContext
...
Missing docs found by: nevcairiel
RFC: should we add support so that the C field names always work as av option names/keys ?
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-01 18:12:39 +02:00
Paul B Mahol
77f9c4b7aa
avocdec: add MagicYUV decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-05-31 22:37:09 +02:00
Michael Niedermayer
d0388bd32e
avcodec/bmp_parser: Fix state
...
Fixes Ticket5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-31 22:13:51 +02:00
Timo Rothenpieler
e5babccfbc
avcodec/nvenc: Refactor timestamp generation logic
...
Directly adapted from libav
2016-05-31 18:59:37 +02:00
Timo Rothenpieler
69c25c0ad7
avcodec/nvenc: forward frame duration
2016-05-31 18:39:28 +02:00
Timo Rothenpieler
971351b664
avcodec/nvenc: Handle minqp-only case in set_vbr
2016-05-31 17:00:07 +02:00