Justin Ruggles
9a33264478
apedec: assert that s->samples is not negative before trying to decode
13 years ago
Justin Ruggles
0927154d37
apedec: use FFALIGN macro for internal data buffer size
13 years ago
Justin Ruggles
5b8009f4c8
apedec: do not keep incrementing the input data pointer past the end of the
...
buffer during entropy decoding.
The pointer address could overflow, which would likely segfault. Instead set
the context error flag to indicate that the decoder tried to read past the
end of the packet data.
13 years ago
Justin Ruggles
a4c32c9a63
apedec: check for input buffer overflow while reading frame header
13 years ago
Justin Ruggles
fd244ae3a0
apedec: use unsigned int for offset
...
avoids implementation-defined unsigned-to-signed conversion and simplifies
the bounds checking.
13 years ago
Justin Ruggles
89ec474a43
apedec: remove pointless increment of 'buf'
...
The variable is not used anymore at that point.
13 years ago
Justin Ruggles
52d4fb2a3d
apedec: set s->currentframeblocks after validating nblocks
13 years ago
Justin Ruggles
2cab578489
apedec: use unsigned int for 'nblocks' and make sure that it's within int range
13 years ago
Justin Ruggles
b7e5145759
apedec: do not set s->samples until after validation.
...
This prevents errors and/or invalid writes in the next decode call due to
s->samples still being negative.
13 years ago
Justin Ruggles
11ca8b2d74
apedec: check for data buffer realloc failure
13 years ago
Justin Ruggles
91b71460b5
apedec: return meaningful error values in ape_decode_frame()
13 years ago
Justin Ruggles
c6defb41ef
apedec: correct an error message
13 years ago
Justin Ruggles
da55e0980e
apedec: cosmetics
...
break some excessively long lines and remove space after '*'
13 years ago
Justin Ruggles
f64e0a2f37
apedec: return meaningful error codes from ape_decode_init()
13 years ago
Justin Ruggles
7500781313
apedec: check for filter buffer allocation failure
13 years ago
Justin Ruggles
b9d6b02713
apedec: use memcpy for pseudo-stereo mode
13 years ago
Justin Ruggles
3c25209bd9
apedec: remove unneeded check for zero-size packet.
...
This is already checked by avcodec_decode_audio3().
13 years ago
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 ebc0ccb9af59b78732e82c09f8c90b1d46b478e0)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Hendrik Leppkes
14474fbbd0
dca_parser: Add support for parsing dts express
...
(cherry picked from commit ea36f60493f675db531dc2dbef04fb60fbc21a6a)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Hendrik Leppkes
7b6ae0e849
dca: allow the channel count to change.
...
(cherry picked from commit 42e78d2296752293cd08c5727f76c3b37c68fb24)
Review-by: Benjamin Larsson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
9a174562e4
lavf: move private fields in AVStream to the end at next bump.
13 years ago
Anton Khirnov
df968050ab
lavf: move private fields in AVFormatContext to the end at next bump.
13 years ago
Anton Khirnov
a2faa95151
lavf: make some seeking functions private
...
Specifically av_update_cur_dts(), av_seek_frame_binary() and
av_gen_search().
They are not supposed to be called outside lavf.
13 years ago
Justin Ruggles
ec6d743118
mp3on4: do not needlessly set data_size to 0
13 years ago
Justin Ruggles
99975966c3
mp3adu: return error instead of just consuming bad packets
13 years ago
Justin Ruggles
e2e6c8799b
mpegaudiodec: check output data size based on avctx->frame_size
13 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.
13 years ago
Justin Ruggles
cd816d9bbb
mpegaudiodec: cosmetics: basic pretty-printing
13 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.
13 years ago
Justin Ruggles
dac15a03af
mpegaudiodec: return AVERROR return codes instead of -1
13 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.
13 years ago
Michael Niedermayer
8d4e44993a
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lavc: remove "legacy" mpegvideo decoder.
iv8: assemble packets to return complete frames
pulse: documentation
pulse: introduce pulseaudio input
remove the zork pcm seek test
Conflicts:
configure
libavdevice/Makefile
libavdevice/alldevices.c
libavdevice/avdevice.h
libavdevice/pulse.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
aa638b4600
rawdec: add check on sample_rate
...
Prevent error condition in case sample_rate is unset or set to a negative
value. In particular, fix divide-by-zero error occurring in ffmpeg due to
sample_rate set to 0 in output_packet(), in code:
ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) /
ist->st->codec->sample_rate;
Fix trac ticket #324 .
13 years ago
Stefano Sabatini
8dc90371b1
lavfi: add internal function ff_fill_rgba_map()
13 years ago
Hendrik Leppkes
b76bc01034
Implement parsing of the "HandlerName" from th MP4 HDLR atom.
...
This atom typically is used for a track title.
(cherry picked from commit a356137816b4ea20a892d1fb203b11dbfedbc543)
Reviewed-by: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Yusuke Nakamura
05e417aa63
mov: Support empty first edit + normal second edit.
...
(cherry picked from commit df342c91e6cfceb2537c2d1b2442dd685381a0ca)
Reviewed-by: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 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>
13 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>
13 years ago
Michael Niedermayer
2179fc48b2
avcodec: Resolve the codec_id compatibility issue.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Hendrik Leppkes
dc38625ebc
Add SMPTE240M transfer characteristics flag.
...
(cherry picked from commit 4266191919c31a1921b497ec831d3b1c1fa28df8)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
15946eb8a9
lavc: remove "legacy" mpegvideo decoder.
13 years ago
Clément Bœsch
9bd23f6815
ashowinfo: fix typo in description.
13 years ago
Clément Bœsch
a0b7853f7a
vf_showinfo: print checksums in hexadecimal.
13 years ago
Michael Niedermayer
c643ba8128
mpegts: Fix detection of some raw AAC
...
Fixes Ticket577
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
abe17c6963
j2kdec: debug markers support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c2553a5585
Merge remote-tracking branch 'luzero/pulse'
...
* luzero/pulse:
pulse: set the device from the avformat filename
Conflicts:
libavdevice/pulse.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Janne Grunau
cf543c6574
iv8: assemble packets to return complete frames
13 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>
13 years ago
Michael Niedermayer
23040e2e3d
h264: use long reading for first_mb_in_slice
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3e7db0a9ee
resample: Fix array size
...
Found-by: Jim Radford
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago