Hendrik Leppkes
022d22e581
Fix a regression in the dca parser introduced by dts express support.
The dca parser needs to check that the framesize is actually of a complete
frame, and not of a partial DTS-HD frame, which is not constant size, and
thus the check would fail.
(cherry picked from commit ebc0ccb9af )
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Hendrik Leppkes
14474fbbd0
dca_parser: Add support for parsing dts express
(cherry picked from commit ea36f60493 )
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Hendrik Leppkes
7b6ae0e849
dca: allow the channel count to change.
(cherry picked from commit 42e78d2296 )
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
ec6d743118
mp3on4: do not needlessly set data_size to 0
14 years ago
Justin Ruggles
99975966c3
mp3adu: return error instead of just consuming bad packets
14 years ago
Justin Ruggles
e2e6c8799b
mpegaudiodec: check output data size based on avctx->frame_size
14 years ago
Justin Ruggles
512557b291
avcodec: remove avcodec_parse_frame and deprecate associated elements.
The documentation for CODEC_CAP_PARSE_ONLY and AVCodecContext.parse_only
indicates that they are utilized through avcodec_parse_frame(), which was
never actually implemented.
14 years ago
Justin Ruggles
cd816d9bbb
mpegaudiodec: cosmetics: basic pretty-printing
14 years ago
Justin Ruggles
c17e534f2e
mpegaudiodec: remove frame_count field from MPADecodeContext.
Its functionality was removed several years ago, so it doesn't do anything.
AVCodecContext.frame_number could serve the same purpose if someone
wants to debug the frame count.
14 years ago
Justin Ruggles
dac15a03af
mpegaudiodec: return AVERROR return codes instead of -1
14 years ago
Justin Ruggles
4be1e1dfa7
mpegaudiodec: Skip only bad frames instead of the whole packet.
On frame decoding failure, return an error if the frame is the same size as
the whole packet, otherwise just log an error message and return the number
of bytes consumed.
14 years ago
Michael Niedermayer
e7f008a534
lavc: Map deprecated codec ids to ours so as to maintain compatibility with the fork.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
4f587d1637
avcodec: Change values of codec ids at the end of lists that dont exist outside ffmpeg yet so
they wont conflict when they get added to the fork with randomly changed order and values.
Also add duplicate codec_ids to allow maintaining compatibility.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
2179fc48b2
avcodec: Resolve the codec_id compatibility issue.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Hendrik Leppkes
dc38625ebc
Add SMPTE240M transfer characteristics flag.
(cherry picked from commit 4266191919 )
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anton Khirnov
15946eb8a9
lavc: remove "legacy" mpegvideo decoder.
14 years ago
Michael Niedermayer
abe17c6963
j2kdec: debug markers support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Michael Niedermayer
4ffed61b49
h264_parser: fully parse first_mb_in_slice to more reliably detect AU boundaries.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
23040e2e3d
h264: use long reading for first_mb_in_slice
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
3e7db0a9ee
resample: Fix array size
Found-by: Jim Radford
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
1b9ca38d9d
resample2: fix potential overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a67cb012e6
resample: Fix overflow
Found-by: Jim Radford
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
David Conrad
748f921ad1
VP8: Unroll decoding segment update
15 years ago
David Conrad
ba3830e8a3
VP8: Remove no longer used vp8_rac_get_tree_with_offset
15 years ago
Justin Ruggles
4a6a29a7fb
libopencore-amr: check output buffer size before decoding
14 years ago
Justin Ruggles
345d15d2f9
libopencore-amr: remove unneeded buf_size==0 check.
avcodec_decode_audio3() already checks it before sending the packet to the
decoder.
14 years ago
Justin Ruggles
402c98783d
libopencore-amr: remove unneeded frame_count field.
Use AVCodecContext.frame_number instead.
14 years ago
Justin Ruggles
71ccfb3f14
aac_latm: remove unneeded check for zero-size packet.
This is already checked by avcodec_decode_audio3()
14 years ago
Justin Ruggles
f1901180e0
pcmdec: fix output buffer size check by calculating the actual output size
prior to decoding.
14 years ago
Justin Ruggles
154cd253e5
pcmdec: move codec-specific variable declarations to the corresponding codec
blocks.
14 years ago
Justin Ruggles
0093f96d34
pcmdec: return buf_size instead of src-buf.
The values will always be the same, so this change eliminates an unneeded
variable. It also gets rid of the need to reset src when memcpy() is used.
14 years ago
Justin Ruggles
85579b6381
avcodec: remove the Zork PCM encoder.
The Zork PCM decoder does not decode the 1 sample we have correctly, therefore
the encoder based on the decoder is also incorrect. There is no good reason to
keep the encoder.
14 years ago
Justin Ruggles
67a3b67c71
pcm_zork: use AV_SAMPLE_FMT_U8 instead of shifting all samples by 8.
14 years ago
Justin Ruggles
06af335a33
pcmenc: remove unneeded sample_fmt check.
It is already checked by avcodec_open2().
14 years ago
Justin Ruggles
d94e29cac9
pcmdec: move number of channels check to pcm_decode_init()
14 years ago
Justin Ruggles
83efd7652e
pcmdec: remove unnecessary check for sample_fmt change
14 years ago
Justin Ruggles
381e195b46
pcmdec: move DVD PCM bits_per_coded_sample check near to the code that sets
the sample size.
14 years ago
Justin Ruggles
6b94711f15
pcmdec: do not needlessly set *data_size to 0
14 years ago
Justin Ruggles
30f3e7b524
alacdec: remove unneeded NULL or zero-size packet checks.
This is already done in avcodec_decode_audio3()
14 years ago
Justin Ruggles
68f7e9cd8e
alacdec: simplify buffer allocation by using FF_ALLOC_OR_GOTO()
14 years ago
Justin Ruggles
b316af7a7c
alacdec: ask for a sample for unsupported sample depths.
Also return AVERROR_PATCHWELCOME.
14 years ago
Justin Ruggles
63cf54df7a
alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels
14 years ago
Justin Ruggles
01200f1283
alacdec: move some declarations to the top of the function
14 years ago
Justin Ruggles
c3a92412c0
alacdec: always use get_sbits_long() for uncompressed samples
14 years ago
Justin Ruggles
b46e58f741
alacdec: remove unneeded local variable
14 years ago
Justin Ruggles
7080533cda
alacdec: remove the numchannels parameter from several functions.
They only operate on stereo content, so the extra param is not necessary and
also allows for simplifying the code.
14 years ago
Justin Ruggles
cb50329fc5
alacdec: rename 2 functions.
Now they only do stereo interleaving.
14 years ago
Justin Ruggles
c39bddd392
alacdec: move appending of extra_bits to a separate function.
This should also fix decoding of mono 24-bit.
14 years ago
Justin Ruggles
e739d35156
alacdec: split stereo decorrelation into a separate function.
It is identical for 16-bit and 24-bit, so there is no need to have duplicate
code.
14 years ago
Justin Ruggles
d251c85dce
alacdec: cosmetics: rename 'wasted_bits' to 'extra_bits'.
The bits are not wasted, they are additional low bits that are added to the
16-bit decompressed samples to increase the output sample depth.
14 years ago