foo86
801dbf0269
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>
9 years ago
foo86
a0349ae27c
avcodec/dca_parser: improve frame end search
...
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>
9 years ago
foo86
39f7620d76
avcodec/dca: don't set initial sample_fmt
...
Valid sample_fmt will be set by dcadec_decode_frame() based on stream type.
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
foo86
b5cda23039
avcodec/dca: remove useless debug message
...
Most DTS-in-WAV streams trigger this, making debug output hard to read.
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
b50bd69516
avutil/eval-test: Check av_expr_parse_and_eval() for failure and also check it in the fate test
...
Fixes CID1361940
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
foo86
e0706e9cc8
avcodec/dca: remove Rice code length limit
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
8b5941ce59
doc/filters: fix order of tinterlace filter drop modes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
b24fffeb94
avcodec/utils: Move avctx->codec check before its use
...
Fixes CID1361954
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
14992421df
avcodec/adpcm: pick correct step_index for IMA AMV
...
Fixes #5538
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
699201ac0e
avcodec/options-test: Check avcodec_open2() return value
...
Fixes: CID1361937
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Stefano Sabatini
4b38df82c2
lavf/mpegts: add ID3 entry to the REGD_types array
...
This allows to recognize ID3 packets from their corresponding descriptor
tag.
9 years ago
Stefano Sabatini
1ab8e03a45
lavf/mpegtsenc: set metadata stream type and write descriptor for ID3 packets
...
This allow to remux data packets which are then recognized as ID3 packets.
9 years ago
Michael Niedermayer
7ecfe4dc36
avcodec/diracdec: Fix potential integer overflow
...
Fixes CID1361948
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
7494b49780
avformat/iff: parse DPAN chunk
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
a5c5ae5ed8
avcodec/iff: add support for ANBR files
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
James Almer
e34e7a575e
avformat/dtshddec: move data_start outside of DTSHDDemuxContext
...
It's only used in dtshd_read_header()
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
df01a29c1b
avcodec/exr: Fix potential integer overflow
...
Fixes CID1361949
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
641dccc2aa
avcodec/h264: Check init_get_bits8() for failure
...
Fixes CID1361935
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4a81bddb4d
ffmpeg_filter: Fix AVBufferSrcParameters leak
...
Fixed: CID1361950
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
d08f2c172f
avformat/avidec: Detect index with too short entries
...
Fixes Ticket5498
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
7155bd1c94
avcodec/m101: Ask for samples with too small extradata_size
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Kyle Swanson
c0c378009b
avfilter: add loudnorm
...
Signed-off-by: Kyle Swanson <k@ylo.ph>
9 years ago
Michael Niedermayer
42ee137a0a
avcodec/m101: Check BPS value
...
Fixes null pointer dereference
Fixes Ticket5520
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
810a8ba5b6
avcodec/iff: add forgotten checks for end of input buffer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
eef2f64294
avcodec/iff: scala anim32 & anim16 decompression
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
936751b652
avformat/avio: Fix null pointer dereference in case of memleak
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Yong Lei
7bacf74536
avformat/avio: fix memory leak in url_find_protocol
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Chris Cunningham
2875745d35
avformat/utils: Check negative bps before shifting in ff_get_pcm_codec_id()
...
Fixes: undefined shift.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Derek Buitenhuis
d55568d22a
Merge commit '71d3305c2711d4f6ec8b92db09ff64cf4e19a58e'
...
* commit '71d3305c2711d4f6ec8b92db09ff64cf4e19a58e':
h264_parse: make sure the ref count is zeroed on all failure paths
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Derek Buitenhuis
278dcec28d
Merge commit 'a6e27f7add2698fdd89911632b570c3d0c3f2aaa'
...
* commit 'a6e27f7add2698fdd89911632b570c3d0c3f2aaa':
h264: factor out parsing the reference count into a separate file
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Derek Buitenhuis
6b295bccbb
Merge commit '56b17a33f231859cbccbd741b4763617cb4ecf03'
...
* commit '56b17a33f231859cbccbd741b4763617cb4ecf03':
h264: stop testing whether the reference count changes in ff_set_ref_count()
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Derek Buitenhuis
7ab2c036b9
Merge commit 'e9f884416c76558098fc1f63825b293956e8483c'
...
* commit 'e9f884416c76558098fc1f63825b293956e8483c':
h264: move reading direct_spatial_mv_pred out of ff_set_ref_count()
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Hendrik Leppkes
15ad023210
Merge commit '8d0cc8ca97678f4ca87948ebabcbaab5a4f4c1f6'
...
* commit '8d0cc8ca97678f4ca87948ebabcbaab5a4f4c1f6':
h264_parser: switch to h2645_parse for NAL unescaping
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
9 years ago
Hendrik Leppkes
a9bb4cf87d
h2645_parse: support badly muxed mp4 streams
...
Some streams contain an additional AnnexB NAL inside the mp4/nalff NALU.
This commonly occurs in interlaced streams where both fields are packed
into the same MP4 NAL with an AnnexB startcode in between.
Port handling of this format from the previous h264 nal handling.
Fixes trac #5529
9 years ago
Paul B Mahol
95b20ad7b2
avcodec/iff: fix artifacts with uncompressed ham ANIMs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
ZhouXiaoyong
af3e944e7e
avcodec/mips/h264dsp_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. optimize some unaligned loads and stores
4. 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>
9 years ago
James Almer
60c2e38dcb
avformat/dtshddec: implement AUPR_HDR chunk parsing
...
Use it to get stream duration, sample rate, channel count and initial padding
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
ab3c04c458
avformat/dtshddec: parse chunks stored after audio data
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
72e33eec3a
avcodec/iff: add support for ANIMs with keyframes and concatenated ANIMs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
8767470fb5
avcodec/iff: check if there is enough bytes left
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
635b2ec5f2
avformat/utils: Do not compute the bitrate from duration == 0
...
Fixes division by 0 in fate-acodec-ra144
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
6085d6b2ae
ffmpeg: Check that r_frame_rate is set before attempting to use it
...
Avoids unexpected occurance and dependency on NaN behavior and divisions by 0
Testcase: fate-lavf-fate-avi_cram
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
feeb3a9261
swresample/resample: Fix division by 0 with tap_count=1
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
2f76157eb0
swresample/rematrix: Use clipping s16 rematrixing if overflows are possible
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
5afecff1ef
avformat/adxdec: set bit_rate, fixes duration calculation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
7fe81bc4f8
swresample/rematrix: Use error diffusion to avoid error in the DC component of the matrix
...
This fixes the sum of the integer coefficients ending up summing to a value
larger than the value representing unity.
This issue occurs with qN0.dts when converting to stereo
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
35c23bf67d
avcodec/dsd: Fix "warning: ctables defined but not used [-Wunused-variable]"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
5350e0fc97
avcodec/iff: rewrite out of bounds checking in writer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
fd4a52e4da
avcodec/dstdec: Fix "warning: initialization from incompatible pointer type [enabled by default]"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
81c3ce0855
doc/general: update supported DCA extensions
9 years ago