ffmpeg.git
3 years agoavcodec/nvenc: Refactor timestamp generation logic
Timo Rothenpieler [Tue, 31 May 2016 16:59:35 +0000 (18:59 +0200)]
avcodec/nvenc: Refactor timestamp generation logic

Directly adapted from libav

3 years agoavcodec/nvenc: forward frame duration
Timo Rothenpieler [Tue, 31 May 2016 16:39:28 +0000 (18:39 +0200)]
avcodec/nvenc: forward frame duration

3 years agoavcodec/nvenc: Handle minqp-only case in set_vbr
Timo Rothenpieler [Tue, 31 May 2016 15:00:07 +0000 (17:00 +0200)]
avcodec/nvenc: Handle minqp-only case in set_vbr

3 years agoavcodec/nvenc: twopass mode works in all modes
Timo Rothenpieler [Tue, 31 May 2016 14:55:24 +0000 (16:55 +0200)]
avcodec/nvenc: twopass mode works in all modes

3 years agoavcodec/nvenc: Fix forcing constqp rc mode
Timo Rothenpieler [Tue, 31 May 2016 14:53:38 +0000 (16:53 +0200)]
avcodec/nvenc: Fix forcing constqp rc mode

The CONSTQP enum value is 0, so this check failed for it.

3 years agoavcodec/nvenc: don't enqueue timestamps until a frame was accepted
Andrey Turkin [Sun, 29 May 2016 12:51:36 +0000 (15:51 +0300)]
avcodec/nvenc: don't enqueue timestamps until a frame was accepted

Otherwise timestamps/pending FIFOs would go out of sync if nvEncodePicture ever fails.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: refactor encode_frame a bit
Andrey Turkin [Sun, 29 May 2016 12:50:06 +0000 (15:50 +0300)]
avcodec/nvenc: refactor encode_frame a bit

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/dca_parser: skip initial padding
foo86 [Tue, 31 May 2016 11:46:14 +0000 (14:46 +0300)]
avcodec/dca_parser: skip initial padding

Padding before the first sync word can be very large for DTS-in-WAV
streams. There is no reason to include this padding in parsed packet.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/dca_parser: simplify state machine
foo86 [Tue, 31 May 2016 11:46:13 +0000 (14:46 +0300)]
avcodec/dca_parser: simplify state machine

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/dca: support EXSS marker in avpriv_dca_convert_bitstream()
foo86 [Fri, 13 May 2016 09:48:31 +0000 (12:48 +0300)]
avcodec/dca: support EXSS marker in avpriv_dca_convert_bitstream()

This is now required by dcadec_decode_frame(). All remaining users of
avpriv_dca_convert_bitstream() have been updated to expect EXSS marker.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/dca: require checked bitstream reader
foo86 [Fri, 13 May 2016 09:48:30 +0000 (12:48 +0300)]
avcodec/dca: require checked bitstream reader

Remove half-working attempt at supporting unchecked bitstream reader by
always copying input data into intermediate buffer with large amount of
padding at the end.

Convert LBR decoder to checked bitstream reader. Convert
dcadec_decode_frame() to parse input data directly if possible.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/nvenc: extract timestamp calculations into separate function
Andrey Turkin [Sun, 29 May 2016 12:34:38 +0000 (15:34 +0300)]
avcodec/nvenc: extract timestamp calculations into separate function

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: rework library load and GPU selection
Andrey Turkin [Sun, 29 May 2016 12:23:26 +0000 (15:23 +0300)]
avcodec/nvenc: rework library load and GPU selection

Use explicit nvenc capability checks instead to determine usable devices
instead of SM versions.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: allow configuring number of surfaces
Andrey Turkin [Sun, 29 May 2016 10:07:34 +0000 (13:07 +0300)]
avcodec/nvenc: allow configuring number of surfaces

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: use INIT_CLEANUP to deal with init failures
Andrey Turkin [Wed, 25 May 2016 16:57:11 +0000 (19:57 +0300)]
avcodec/nvenc: use INIT_CLEANUP to deal with init failures

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: add rate control option
Andrey Turkin [Wed, 25 May 2016 16:39:54 +0000 (19:39 +0300)]
avcodec/nvenc: add rate control option

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: convert tier to AVOptions
Andrey Turkin [Wed, 25 May 2016 15:06:02 +0000 (18:06 +0300)]
avcodec/nvenc: convert tier to AVOptions

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: convert levels to AVOptions
Andrey Turkin [Wed, 25 May 2016 15:00:52 +0000 (18:00 +0300)]
avcodec/nvenc: convert levels to AVOptions

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: convert profile parsing to AVOptions
Andrey Turkin [Wed, 25 May 2016 14:26:25 +0000 (17:26 +0300)]
avcodec/nvenc: convert profile parsing to AVOptions

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: use AVOptions to select presets
Andrey Turkin [Wed, 25 May 2016 14:05:50 +0000 (17:05 +0300)]
avcodec/nvenc: use AVOptions to select presets

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agodoc: Add color_trc values
Michael Niedermayer [Tue, 31 May 2016 13:15:54 +0000 (15:15 +0200)]
doc: Add color_trc values

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/nvenc: split H264/HEVC encoder definitions into separate files
Andrey Turkin [Wed, 25 May 2016 13:04:28 +0000 (16:04 +0300)]
avcodec/nvenc: split H264/HEVC encoder definitions into separate files

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoaacpsy: remove dead code
Rostislav Pehlivanov [Tue, 31 May 2016 00:05:58 +0000 (01:05 +0100)]
aacpsy: remove dead code

This code wasn't removed when the functionality was moved inside
aacenc.c with commit 8005b6de4f88c9

Fixes CID1361962

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agoavformat/movenc: remove useless if and reindent
Marton Balint [Sun, 29 May 2016 15:14:18 +0000 (17:14 +0200)]
avformat/movenc: remove useless if and reindent

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoavformat/movenc: propagate shift_data errors properly
Marton Balint [Sun, 29 May 2016 14:51:57 +0000 (16:51 +0200)]
avformat/movenc: propagate shift_data errors properly

The second one is not explicitly needed, as res is not reset, but it is there
for consistency.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoffplay: simplify display code
Marton Balint [Wed, 25 Nov 2015 23:25:47 +0000 (00:25 +0100)]
ffplay: simplify display code

And get rid of frame_queue_prev.

Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoavcodec/libxvid: Fix use of uninitialized AVPacket fields
Michael Niedermayer [Mon, 30 May 2016 22:05:53 +0000 (00:05 +0200)]
avcodec/libxvid: Fix use of uninitialized AVPacket fields

Fixes CID1361964

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mips/h264qpel_mmi.c: Version 2 of the optimizations for loongson mmi
ZhouXiaoyong [Wed, 25 May 2016 09:40:44 +0000 (17:40 +0800)]
avcodec/mips/h264qpel_mmi.c: Version 2 of the optimizations for loongson mmi

1. no longer use the register names directly and optimized code format
2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator
3. use uld and mtc1 to workaround cpu 3A2000 gslwlc1 bug (gslwlc1 instruction extension bug in O32 ABI)
4. h264qpel use hepldsp optimizations

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolibavformat/movenc: remove unnecessary null check
Mark Reid [Mon, 30 May 2016 00:17:32 +0000 (17:17 -0700)]
libavformat/movenc: remove unnecessary null check

Fixes CID1361955

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/f_loop: Fix leak on error
Michael Niedermayer [Sun, 29 May 2016 19:21:59 +0000 (21:21 +0200)]
avfilter/f_loop: Fix leak on error

Fixes CID1355117

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_fieldhint: Reorder operation to prevent hypothetical integer overflow
Michael Niedermayer [Sun, 29 May 2016 16:11:53 +0000 (18:11 +0200)]
avfilter/vf_fieldhint: Reorder operation to prevent hypothetical integer overflow

Fixes CID1355110

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_fieldhint: Assert that mode is valid
Michael Niedermayer [Sun, 29 May 2016 12:45:18 +0000 (14:45 +0200)]
avfilter/vf_fieldhint: Assert that mode is valid

Its checked by the AVOption code
Fixes CID1355122
Fixes CID1355121

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/softfloat: Improve doxy for av_sub_sf() and av_sf2int()
Michael Niedermayer [Sun, 29 May 2016 12:44:27 +0000 (14:44 +0200)]
avutil/softfloat: Improve doxy for av_sub_sf() and av_sf2int()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/udp: Remove unused variable
Michael Niedermayer [Sun, 29 May 2016 10:35:14 +0000 (12:35 +0200)]
avformat/udp: Remove unused variable

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/movenc: Fix potential track width/height overflows
Michael Niedermayer [Sun, 29 May 2016 02:00:27 +0000 (04:00 +0200)]
avformat/movenc: Fix potential track width/height overflows

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/movenc: Avoid integer overflow
Michael Niedermayer [Sun, 29 May 2016 01:51:42 +0000 (03:51 +0200)]
avformat/movenc: Avoid integer overflow

Fixes: CID1361947

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c
Thomas Guilbert [Fri, 27 May 2016 22:50:25 +0000 (15:50 -0700)]
avformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c

Fixes: usan_granule_overflow

constant type fix by commiter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/utils: avoid overflow in compute_chapters_end() with huge durations
Michael Niedermayer [Sat, 28 May 2016 21:51:35 +0000 (23:51 +0200)]
avformat/utils: avoid overflow in compute_chapters_end()  with huge durations

Fixes: usan_granule_overflow

Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/utils: avoid overflow in update_stream_timings() with huge durations
Michael Niedermayer [Sat, 28 May 2016 21:51:35 +0000 (23:51 +0200)]
avformat/utils: avoid overflow in update_stream_timings() with huge durations

Fixes: usan_granule_overflow

Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: add aemphasis test
Petru Rares Sincraian [Sat, 28 May 2016 15:20:25 +0000 (17:20 +0200)]
fate: add aemphasis test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/softfloat: Document public constants and a few public functions
Michael Niedermayer [Sat, 28 May 2016 12:11:10 +0000 (14:11 +0200)]
avutil/softfloat: Document public constants and a few public functions

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/mov: Support one more Avid compression id for AVCI50.
Carl Eugen Hoyos [Sat, 28 May 2016 09:57:37 +0000 (11:57 +0200)]
lavf/mov: Support one more Avid compression id for AVCI50.

Reported by forum user lexidata.

3 years agoavformat/movenc: Fix memleak of reshuffled packet
Michael Niedermayer [Sat, 28 May 2016 01:12:04 +0000 (03:12 +0200)]
avformat/movenc: Fix memleak of reshuffled packet

Fixes CID1361952

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/movenc: Rename reshuffles return variable to ensure it is not mixed up
Michael Niedermayer [Sat, 28 May 2016 00:55:33 +0000 (02:55 +0200)]
avformat/movenc: Rename reshuffles return variable to ensure it is not mixed up

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/oggparseflac: Fix memleaks in old_flac_header()
Michael Niedermayer [Fri, 27 May 2016 22:40:46 +0000 (00:40 +0200)]
avformat/oggparseflac: Fix memleaks in old_flac_header()

Fixes CID1361953

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: Add fate-prores-gray
Michael Niedermayer [Fri, 27 May 2016 16:06:03 +0000 (18:06 +0200)]
fate: Add fate-prores-gray

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/proresdec2: Add support for grayscale videos
Håvard Espeland [Fri, 27 May 2016 09:06:13 +0000 (11:06 +0200)]
avcodec/proresdec2: Add support for grayscale videos

Signed-off-by: Håvard Espeland <espeland@mixedrealities.no>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/avfiltergraph: Clear graph pointers in ff_filter_graph_remove_filter()
Michael Niedermayer [Fri, 27 May 2016 11:40:34 +0000 (13:40 +0200)]
avfilter/avfiltergraph: Clear graph pointers in ff_filter_graph_remove_filter()

When a filter is no longer part of a graph, its pointers should be cleared
so no stale pointers remain.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoMerge commit '44d16df413878588659dd8901bba016b5a869fd1'
Hendrik Leppkes [Fri, 27 May 2016 12:28:21 +0000 (14:28 +0200)]
Merge commit '44d16df413878588659dd8901bba016b5a869fd1'

* commit '44d16df413878588659dd8901bba016b5a869fd1':
  h264_parser: eliminate H264SliceContext usage

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoffserver: fixed deallocation bug in build_feed_streams
Gregor Riepl [Tue, 24 May 2016 13:17:22 +0000 (15:17 +0200)]
ffserver: fixed deallocation bug in build_feed_streams

Signed-off-by: Gregor Riepl <onitake@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/utils: Fix use of uninitialized variable
Michael Niedermayer [Thu, 26 May 2016 15:09:44 +0000 (17:09 +0200)]
avformat/utils: Fix use of uninitialized variable

Fixes CID1361961

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/dca: move EXSS sampling frequency arrays to dca.c
foo86 [Thu, 26 May 2016 11:29:35 +0000 (14:29 +0300)]
avcodec/dca: move EXSS sampling frequency arrays to dca.c

Avoids unwanted parser dependency on dcadata.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/vble: add frame threading support
Paul B Mahol [Sat, 21 May 2016 21:21:17 +0000 (23:21 +0200)]
avcodec/vble: add frame threading support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agodoc/developer.texi: Add a code of conduct
Michael Niedermayer [Wed, 18 May 2016 18:40:08 +0000 (20:40 +0200)]
doc/developer.texi: Add a code of conduct

See: [FFmpeg-devel] [Vote] Code of Conduct

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/src_movie: add various commands
Muhammad Faiz [Wed, 17 Feb 2016 16:20:08 +0000 (23:20 +0700)]
avfilter/src_movie: add various commands

add seek command
add get_duration command

Update to codecpar by commiter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavc/mediacodec: add missing MediaCodec.Get{Input,Output}Buffer() checks
Matthieu Bouron [Tue, 17 May 2016 08:28:38 +0000 (10:28 +0200)]
lavc/mediacodec: add missing MediaCodec.Get{Input,Output}Buffer() checks

3 years agolavc/mediacodec: factorize static fields initialization
Matthieu Bouron [Tue, 17 May 2016 08:26:48 +0000 (10:26 +0200)]
lavc/mediacodec: factorize static fields initialization

3 years agoavcodec/Makefile: add missing dependencies to dca parser
James Almer [Wed, 25 May 2016 04:50:35 +0000 (01:50 -0300)]
avcodec/Makefile: add missing dependencies to dca parser

They are needed starting with the previous commit

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/dca_parser: set duration for core-less streams
foo86 [Mon, 23 May 2016 14:58:42 +0000 (17:58 +0300)]
avcodec/dca_parser: set duration for core-less streams

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/dca_exss: prepare to be called from parser context
foo86 [Mon, 23 May 2016 14:58:41 +0000 (17:58 +0300)]
avcodec/dca_exss: prepare to be called from parser context

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/nvenc: Require Maxwell for lossless
Timo Rothenpieler [Wed, 25 May 2016 10:15:03 +0000 (12:15 +0200)]
avcodec/nvenc: Require Maxwell for lossless

3 years agoavcodec/nvenc: CUDA frames support
Andrey Turkin [Fri, 20 May 2016 22:08:06 +0000 (01:08 +0300)]
avcodec/nvenc: CUDA frames support

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: replace custom FIFOs with AVFifos
Andrey Turkin [Fri, 20 May 2016 16:13:20 +0000 (19:13 +0300)]
avcodec/nvenc: replace custom FIFOs with AVFifos

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: combine input and output surface structures
Andrey Turkin [Fri, 20 May 2016 15:37:00 +0000 (18:37 +0300)]
avcodec/nvenc: combine input and output surface structures

There is no point in separate structures as they have 1:1 relationship,
they are always used together and they have same lifetime.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: split large functions into smaller ones
Andrey Turkin [Fri, 20 May 2016 14:49:24 +0000 (17:49 +0300)]
avcodec/nvenc: split large functions into smaller ones

Functions names and scopes are from libav. This commit basically moves
code around without changing it; it shouldn't change any functionality
except some small leak fixes on error paths.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavformat/udp: Close the socket after destroying the thread using the socket
Michael Niedermayer [Tue, 24 May 2016 22:59:18 +0000 (00:59 +0200)]
avformat/udp: Close the socket after destroying the thread using the socket

for send() this cannot work and even for recv() it feels very wrong and hackish

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/udp: redesign threaded udp tx code
Michael Niedermayer [Tue, 24 May 2016 22:06:39 +0000 (00:06 +0200)]
avformat/udp: redesign threaded udp tx code

This fixes partially completed send()
Avoids holding the mutex during send()
fixes race conditions in error handling
removes copied non thread specific blocking code
Fixes deadlocks on closure
Fixes data loss on closure

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/udp: Add a delay between packets for streaming to clients with short buffer
Pavel Nikiforov [Tue, 8 Mar 2016 20:27:45 +0000 (23:27 +0300)]
avformat/udp: Add a delay between packets for streaming to clients with short buffer

This commit enables sending UDP packets in a background thread with specified delay.
When sending packets without a delay some devices with small RX buffer
( MAG200 STB, for example) will drop tail packets in bursts causing
decoding errors.

To use it specify "fifo_size" with "packet_gap" .

The output url will looks like udp://xxx:yyy?fifo_size=<output fifo
size>&packet_gap=<delay in usecs>

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolibavcodec/dv_tablegen: fixed wrong printf format
dsmudhar [Sun, 22 May 2016 00:46:56 +0000 (06:16 +0530)]
libavcodec/dv_tablegen: fixed wrong printf format

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolibavfilter/vf_hwdownload: show error when ff_formats_ref fails
dsmudhar [Sun, 22 May 2016 00:56:36 +0000 (06:26 +0530)]
libavfilter/vf_hwdownload: show error when ff_formats_ref fails

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/af_hdcd: Replace complexer expression by litteral constant
Michael Niedermayer [Tue, 24 May 2016 17:56:55 +0000 (19:56 +0200)]
avfilter/af_hdcd: Replace complexer expression by litteral constant

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/mov: Avoid "Unintended sign extension"
Michael Niedermayer [Tue, 24 May 2016 02:07:09 +0000 (04:07 +0200)]
avformat/mov: Avoid "Unintended sign extension"

Fixes CID1361957

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mips/idctdsp_mmi: Version 2 of the optimizations for loongson mmi
ZhouXiaoyong [Tue, 17 May 2016 11:16:42 +0000 (19:16 +0800)]
avcodec/mips/idctdsp_mmi: Version 2 of the optimizations for loongson mmi

    1. no longer use the register names directly and optimized code format
    2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mips/pixblockdsp_mmi: Version 2 of the optimizations for loongson mmi
ZhouXiaoyong [Tue, 17 May 2016 11:15:46 +0000 (19:15 +0800)]
avcodec/mips/pixblockdsp_mmi: Version 2 of the optimizations for loongson mmi

    1. no longer use the register names directly and optimized code format
    2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mips/blockdsp_mmi: Version 2 of the optimizations for loongson mmi
ZhouXiaoyong [Tue, 17 May 2016 11:14:24 +0000 (19:14 +0800)]
avcodec/mips/blockdsp_mmi: Version 2 of the optimizations for loongson mmi

    1. no longer use the register names directly and optimized code format
    2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/dca_exss: always update downmix flags
foo86 [Mon, 23 May 2016 15:41:27 +0000 (18:41 +0300)]
avcodec/dca_exss: always update downmix flags

Fixes potential parsing failure when total number of channels indicated
by EXSS asset descriptor decreases mid-stream and stale embedded downmix
flags are referenced.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_blend: fix incorrect Y variable when threading is used
Paul B Mahol [Mon, 23 May 2016 19:47:02 +0000 (21:47 +0200)]
avfilter/vf_blend: fix incorrect Y variable when threading is used

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agolibavutil/opencl: fixed uninitialized var warning
dsmudhar [Sun, 22 May 2016 00:59:27 +0000 (06:29 +0530)]
libavutil/opencl: fixed uninitialized var warning

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolibavcodec/cfhd: fixed wrong printf format
dsmudhar [Sun, 22 May 2016 00:45:44 +0000 (06:15 +0530)]
libavcodec/cfhd: fixed wrong printf format

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolibavfilter/af_hdcd: fixed negative signed value shift
dsmudhar [Sun, 22 May 2016 00:48:58 +0000 (06:18 +0530)]
libavfilter/af_hdcd: fixed negative signed value shift

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: add aecho test
Petru Rares Sincraian [Sun, 22 May 2016 07:45:49 +0000 (09:45 +0200)]
fate: add aecho test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/truemotion2rt: also export key frame info
Paul B Mahol [Sun, 22 May 2016 21:32:38 +0000 (23:32 +0200)]
avcodec/truemotion2rt: also export key frame info

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavcodec/iff: mention RGB8/RGBN decoder
Piotr Bandurski [Sun, 22 May 2016 16:02:43 +0000 (18:02 +0200)]
avcodec/iff: mention RGB8/RGBN decoder

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mvcdec: simplify, no need to use reget buffer
Paul B Mahol [Sat, 21 May 2016 16:06:14 +0000 (18:06 +0200)]
avcodec/mvcdec: simplify, no need to use reget buffer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavformat/matroskaenc: reindent after last commit
Michael Niedermayer [Sun, 22 May 2016 01:22:16 +0000 (03:22 +0200)]
avformat/matroskaenc: reindent after last commit

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/matroskaenc: wrap par->format use as sample format under codec_type == AVMED...
Michael Niedermayer [Sun, 22 May 2016 01:20:24 +0000 (03:20 +0200)]
avformat/matroskaenc: wrap par->format use as sample format under codec_type == AVMEDIA_TYPE_AUDI

Fixes CID1361946

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/avienc: Fix memleaks on errors
Michael Niedermayer [Sat, 21 May 2016 23:54:50 +0000 (01:54 +0200)]
avformat/avienc: Fix memleaks on errors

Fixes CID1361951

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/avienc: Rename reshuffles return variable to ensure it is not mixed up
Michael Niedermayer [Sat, 21 May 2016 23:50:08 +0000 (01:50 +0200)]
avformat/avienc: Rename reshuffles return variable to ensure it is not mixed up

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/af_loudnorm: fix crash when ebur128 initialization was not successfull/complete
Paul B Mahol [Sat, 21 May 2016 17:22:00 +0000 (19:22 +0200)]
avfilter/af_loudnorm: fix crash when ebur128 initialization was not successfull/complete

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavformat: add MTAF demuxer
Paul B Mahol [Sun, 15 May 2016 18:35:14 +0000 (20:35 +0200)]
avformat: add MTAF demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavcodec: add adpcm MTAF decoder
Paul B Mahol [Sun, 15 May 2016 18:45:04 +0000 (20:45 +0200)]
avcodec: add adpcm MTAF decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter/avf_ahistogram: raise minimum acmax to 1
Michael Niedermayer [Fri, 20 May 2016 15:55:11 +0000 (17:55 +0200)]
avfilter/avf_ahistogram: raise minimum acmax to 1

If acmax can be 0 then it could result in a division by 0
Fixes CID1351345

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/aic: add frame threading support
Paul B Mahol [Fri, 20 May 2016 18:54:10 +0000 (20:54 +0200)]
avcodec/aic: add frame threading support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavcodec/mips: loongson optimize h264pred with mmi v3
Zhou Xiaoyong [Tue, 17 May 2016 11:12:54 +0000 (19:12 +0800)]
avcodec/mips: loongson optimize h264pred with mmi v3

1. no longer use the register names directly and optimized code format
2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator
3. ff_pred16x16_plane_ functions only support N64 ABI now

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mips: loongson optimize hpeldsp with mmi v1
Zhou Xiaoyong [Tue, 17 May 2016 06:51:50 +0000 (14:51 +0800)]
avcodec/mips: loongson optimize hpeldsp with mmi v1

1.the codes are compatible with O32 ABI
2.use uld and mtc1 to workaround cpu 3A2000 gslwlc1 bug (gslwlc1 instruction extension bug in O32 ABI)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/mips/mpegvideo_mmi: Version 2 of the optimizations for loongson mmi
Zhou Xiaoyong [Tue, 17 May 2016 05:08:38 +0000 (13:08 +0800)]
avcodec/mips/mpegvideo_mmi: Version 2 of the optimizations for loongson mmi

1. no longer use the register names directly and optimized code format
2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/sgirledec: simplify, no need to use reget buffer
Paul B Mahol [Fri, 20 May 2016 19:30:29 +0000 (21:30 +0200)]
avcodec/sgirledec: simplify, no need to use reget buffer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavcodec/mips/h264chroma_mmi: Version 2 of the optimizations for loongson mmi
ZhouXiaoyong [Tue, 17 May 2016 05:02:41 +0000 (13:02 +0800)]
avcodec/mips/h264chroma_mmi: Version 2 of the optimizations for loongson mmi

1. no longer use the register names directly and optimized code format
2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator
3. use uld and mtc1 to workaround cpu 3A2000 gslwlc1 bug (gslwlc1 instruction extension bug in O32 ABI)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/dca: use LUT for LBR frequency ranges
foo86 [Fri, 13 May 2016 09:48:27 +0000 (12:48 +0300)]
avcodec/dca: use LUT for LBR frequency ranges

Values for unsupported frequencies > 48000 Hz are still included (parser
will make use of them).

Also convert sampling frequencies array to unsigned.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/dca: simplify 'residual ok' flag tracking
foo86 [Fri, 13 May 2016 09:48:24 +0000 (12:48 +0300)]
avcodec/dca: simplify 'residual ok' flag tracking

Move this from separate structure field to a packet flag.

Behavior should be equivalent, except that residual flag is now properly
cleared when packet has no core frame at all.

Also print a message when forcing recovery mode due to invalid residual
to make debugging easier.

Signed-off-by: James Almer <jamrial@gmail.com>