summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avformat/udp: redesign threaded udp tx codeMichael Niedermayer2016-05-25
| | | | | | | | | | | 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>
* avformat/udp: Add a delay between packets for streaming to clients with ↵Pavel Nikiforov2016-05-25
| | | | | | | | | | | | | | | | 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>
* libavcodec/dv_tablegen: fixed wrong printf formatdsmudhar2016-05-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavfilter/vf_hwdownload: show error when ff_formats_ref failsdsmudhar2016-05-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_hdcd: Replace complexer expression by litteral constantMichael Niedermayer2016-05-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: Avoid "Unintended sign extension"Michael Niedermayer2016-05-24
| | | | | | Fixes CID1361957 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mips/idctdsp_mmi: Version 2 of the optimizations for loongson mmiZhouXiaoyong2016-05-23
| | | | | | | 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>
* avcodec/mips/pixblockdsp_mmi: Version 2 of the optimizations for loongson mmiZhouXiaoyong2016-05-23
| | | | | | | 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>
* avcodec/mips/blockdsp_mmi: Version 2 of the optimizations for loongson mmiZhouXiaoyong2016-05-23
| | | | | | | 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>
* avcodec/dca_exss: always update downmix flagsfoo862016-05-23
| | | | | | | | 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>
* avfilter/vf_blend: fix incorrect Y variable when threading is usedPaul B Mahol2016-05-23
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* libavutil/opencl: fixed uninitialized var warningdsmudhar2016-05-23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/cfhd: fixed wrong printf formatdsmudhar2016-05-23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavfilter/af_hdcd: fixed negative signed value shiftdsmudhar2016-05-23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add aecho testPetru Rares Sincraian2016-05-23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/truemotion2rt: also export key frame infoPaul B Mahol2016-05-22
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/iff: mention RGB8/RGBN decoderPiotr Bandurski2016-05-22
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mvcdec: simplify, no need to use reget bufferPaul B Mahol2016-05-22
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/matroskaenc: reindent after last commitMichael Niedermayer2016-05-22
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/matroskaenc: wrap par->format use as sample format under codec_type ↵Michael Niedermayer2016-05-22
| | | | | | | | == AVMEDIA_TYPE_AUDI Fixes CID1361946 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avienc: Fix memleaks on errorsMichael Niedermayer2016-05-22
| | | | | | Fixes CID1361951 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avienc: Rename reshuffles return variable to ensure it is not mixed upMichael Niedermayer2016-05-22
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_loudnorm: fix crash when ebur128 initialization was not ↵Paul B Mahol2016-05-21
| | | | | | successfull/complete Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat: add MTAF demuxerPaul B Mahol2016-05-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec: add adpcm MTAF decoderPaul B Mahol2016-05-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/avf_ahistogram: raise minimum acmax to 1Michael Niedermayer2016-05-21
| | | | | | | | 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>
* avcodec/aic: add frame threading supportPaul B Mahol2016-05-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/mips: loongson optimize h264pred with mmi v3Zhou Xiaoyong2016-05-21
| | | | | | | | 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>
* avcodec/mips: loongson optimize hpeldsp with mmi v1Zhou Xiaoyong2016-05-21
| | | | | | | 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>
* avcodec/mips/mpegvideo_mmi: Version 2 of the optimizations for loongson mmiZhou Xiaoyong2016-05-21
| | | | | | | 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>
* avcodec/sgirledec: simplify, no need to use reget bufferPaul B Mahol2016-05-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/mips/h264chroma_mmi: Version 2 of the optimizations for loongson mmiZhouXiaoyong2016-05-21
| | | | | | | | 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>
* avcodec/dca: use LUT for LBR frequency rangesfoo862016-05-20
| | | | | | | | | 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>
* avcodec/dca: simplify 'residual ok' flag trackingfoo862016-05-20
| | | | | | | | | | | | 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>
* avcodec/dca_parser: improve frame end searchfoo862016-05-20
| | | | | | | | | | | | | Parse core frame size directly when searching for frame end instead of using value extracted from previous frame. Account for unused bits when calculating sync word distance for 14-bit streams to avoid alias sync detection. Parse EXSS frame size and skip over EXSS frame to avoid alias sync detection. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca: don't set initial sample_fmtfoo862016-05-20
| | | | | | Valid sample_fmt will be set by dcadec_decode_frame() based on stream type. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca: remove useless debug messagefoo862016-05-20
| | | | | | Most DTS-in-WAV streams trigger this, making debug output hard to read. Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/eval-test: Check av_expr_parse_and_eval() for failure and also check ↵Michael Niedermayer2016-05-20
| | | | | | | | it in the fate test Fixes CID1361940 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dca: remove Rice code length limitfoo862016-05-20
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/filters: fix order of tinterlace filter drop modesPaul B Mahol2016-05-20
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/utils: Move avctx->codec check before its useMichael Niedermayer2016-05-20
| | | | | | Fixes CID1361954 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/adpcm: pick correct step_index for IMA AMVPaul B Mahol2016-05-19
| | | | | | Fixes #5538 Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/options-test: Check avcodec_open2() return valueMichael Niedermayer2016-05-19
| | | | | | Fixes: CID1361937 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mpegts: add ID3 entry to the REGD_types arrayStefano Sabatini2016-05-19
| | | | | This allows to recognize ID3 packets from their corresponding descriptor tag.
* lavf/mpegtsenc: set metadata stream type and write descriptor for ID3 packetsStefano Sabatini2016-05-19
| | | | This allow to remux data packets which are then recognized as ID3 packets.
* avcodec/diracdec: Fix potential integer overflowMichael Niedermayer2016-05-19
| | | | | | Fixes CID1361948 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/iff: parse DPAN chunkPaul B Mahol2016-05-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/iff: add support for ANBR filesPaul B Mahol2016-05-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/dtshddec: move data_start outside of DTSHDDemuxContextJames Almer2016-05-19
| | | | | | It's only used in dtshd_read_header() Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/exr: Fix potential integer overflowMichael Niedermayer2016-05-19
| | | | | | Fixes CID1361949 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>