OSDN Git Service
Justin Ruggles [Tue, 11 Oct 2011 17:25:48 +0000 (13:25 -0400)]
apedec: remove pointless increment of 'buf'
The variable is not used anymore at that point.
Justin Ruggles [Tue, 11 Oct 2011 17:25:27 +0000 (13:25 -0400)]
apedec: set s->currentframeblocks after validating nblocks
Justin Ruggles [Tue, 11 Oct 2011 17:17:44 +0000 (13:17 -0400)]
apedec: use unsigned int for 'nblocks' and make sure that it's within int range
Justin Ruggles [Tue, 11 Oct 2011 16:49:46 +0000 (12:49 -0400)]
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.
Justin Ruggles [Tue, 11 Oct 2011 16:47:11 +0000 (12:47 -0400)]
apedec: check for data buffer realloc failure
Justin Ruggles [Tue, 11 Oct 2011 15:55:56 +0000 (11:55 -0400)]
apedec: return meaningful error values in ape_decode_frame()
Justin Ruggles [Tue, 11 Oct 2011 15:54:42 +0000 (11:54 -0400)]
apedec: correct an error message
Justin Ruggles [Tue, 11 Oct 2011 15:53:17 +0000 (11:53 -0400)]
apedec: cosmetics
break some excessively long lines and remove space after '*'
Justin Ruggles [Tue, 11 Oct 2011 15:48:39 +0000 (11:48 -0400)]
apedec: return meaningful error codes from ape_decode_init()
Justin Ruggles [Tue, 11 Oct 2011 15:47:15 +0000 (11:47 -0400)]
apedec: check for filter buffer allocation failure
Justin Ruggles [Tue, 11 Oct 2011 15:37:55 +0000 (11:37 -0400)]
apedec: use memcpy for pseudo-stereo mode
Justin Ruggles [Mon, 10 Oct 2011 19:54:36 +0000 (15:54 -0400)]
apedec: remove unneeded check for zero-size packet.
This is already checked by avcodec_decode_audio3().
Anton Khirnov [Wed, 19 Oct 2011 18:00:09 +0000 (20:00 +0200)]
lavf: move private fields in AVStream to the end at next bump.
Anton Khirnov [Wed, 19 Oct 2011 18:00:09 +0000 (20:00 +0200)]
lavf: move private fields in AVFormatContext to the end at next bump.
Anton Khirnov [Sun, 16 Oct 2011 13:03:30 +0000 (15:03 +0200)]
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.
Justin Ruggles [Tue, 25 Oct 2011 16:46:57 +0000 (12:46 -0400)]
mp3on4: do not needlessly set data_size to 0
Justin Ruggles [Tue, 25 Oct 2011 16:45:39 +0000 (12:45 -0400)]
mp3adu: return error instead of just consuming bad packets
Justin Ruggles [Tue, 27 Sep 2011 18:27:43 +0000 (14:27 -0400)]
mpegaudiodec: check output data size based on avctx->frame_size
Justin Ruggles [Tue, 27 Sep 2011 17:54:25 +0000 (13:54 -0400)]
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.
Justin Ruggles [Tue, 27 Sep 2011 17:15:24 +0000 (13:15 -0400)]
mpegaudiodec: cosmetics: basic pretty-printing
Justin Ruggles [Tue, 27 Sep 2011 16:02:30 +0000 (12:02 -0400)]
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.
Justin Ruggles [Tue, 27 Sep 2011 15:49:50 +0000 (11:49 -0400)]
mpegaudiodec: return AVERROR return codes instead of -1
Justin Ruggles [Tue, 27 Sep 2011 14:39:54 +0000 (10:39 -0400)]
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.
Anton Khirnov [Tue, 25 Oct 2011 14:52:02 +0000 (16:52 +0200)]
lavc: remove "legacy" mpegvideo decoder.
Janne Grunau [Thu, 27 Oct 2011 15:41:40 +0000 (17:41 +0200)]
iv8: assemble packets to return complete frames
Luca Barbato [Wed, 26 Oct 2011 16:27:54 +0000 (09:27 -0700)]
pulse: documentation
Specify avoptions and how to use pactl to list devices.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Luca Barbato [Wed, 26 Oct 2011 16:27:53 +0000 (09:27 -0700)]
pulse: introduce pulseaudio input
It currently use the simple api and is using the latency information
provided only to offset the stream start.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Justin Ruggles [Wed, 26 Oct 2011 22:48:02 +0000 (18:48 -0400)]
remove the zork pcm seek test
this was forgotten when the encoder was removed
Justin Ruggles [Tue, 27 Sep 2011 21:24:27 +0000 (17:24 -0400)]
libopencore-amr: check output buffer size before decoding
Justin Ruggles [Tue, 27 Sep 2011 21:21:32 +0000 (17:21 -0400)]
libopencore-amr: remove unneeded buf_size==0 check.
avcodec_decode_audio3() already checks it before sending the packet to the
decoder.
Justin Ruggles [Tue, 27 Sep 2011 21:17:59 +0000 (17:17 -0400)]
libopencore-amr: remove unneeded frame_count field.
Use AVCodecContext.frame_number instead.
Justin Ruggles [Mon, 10 Oct 2011 15:35:35 +0000 (11:35 -0400)]
aac_latm: remove unneeded check for zero-size packet.
This is already checked by avcodec_decode_audio3()
Justin Ruggles [Thu, 29 Sep 2011 20:44:50 +0000 (16:44 -0400)]
pcmdec: fix output buffer size check by calculating the actual output size
prior to decoding.
Justin Ruggles [Thu, 29 Sep 2011 20:30:20 +0000 (16:30 -0400)]
pcmdec: move codec-specific variable declarations to the corresponding codec
blocks.
Justin Ruggles [Thu, 29 Sep 2011 20:00:00 +0000 (16:00 -0400)]
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.
Justin Ruggles [Thu, 29 Sep 2011 16:12:23 +0000 (12:12 -0400)]
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.
Justin Ruggles [Wed, 28 Sep 2011 23:31:05 +0000 (19:31 -0400)]
pcm_zork: use AV_SAMPLE_FMT_U8 instead of shifting all samples by 8.
Justin Ruggles [Tue, 27 Sep 2011 23:52:50 +0000 (19:52 -0400)]
pcmenc: remove unneeded sample_fmt check.
It is already checked by avcodec_open2().
Justin Ruggles [Tue, 27 Sep 2011 23:49:25 +0000 (19:49 -0400)]
pcmdec: move number of channels check to pcm_decode_init()
Justin Ruggles [Tue, 27 Sep 2011 23:47:10 +0000 (19:47 -0400)]
pcmdec: remove unnecessary check for sample_fmt change
Justin Ruggles [Tue, 27 Sep 2011 23:24:47 +0000 (19:24 -0400)]
pcmdec: move DVD PCM bits_per_coded_sample check near to the code that sets
the sample size.
Justin Ruggles [Tue, 27 Sep 2011 21:52:48 +0000 (17:52 -0400)]
pcmdec: do not needlessly set *data_size to 0
Justin Ruggles [Mon, 10 Oct 2011 17:07:19 +0000 (13:07 -0400)]
alacdec: remove unneeded NULL or zero-size packet checks.
This is already done in avcodec_decode_audio3()
Justin Ruggles [Mon, 10 Oct 2011 15:21:07 +0000 (11:21 -0400)]
alacdec: simplify buffer allocation by using FF_ALLOC_OR_GOTO()
Justin Ruggles [Sun, 9 Oct 2011 18:23:44 +0000 (14:23 -0400)]
alacdec: ask for a sample for unsupported sample depths.
Also return AVERROR_PATCHWELCOME.
Justin Ruggles [Sun, 9 Oct 2011 18:21:35 +0000 (14:21 -0400)]
alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels
Justin Ruggles [Sun, 9 Oct 2011 18:19:32 +0000 (14:19 -0400)]
alacdec: move some declarations to the top of the function
Justin Ruggles [Sun, 9 Oct 2011 18:02:52 +0000 (14:02 -0400)]
alacdec: always use get_sbits_long() for uncompressed samples
Justin Ruggles [Sun, 9 Oct 2011 18:02:21 +0000 (14:02 -0400)]
alacdec: remove unneeded local variable
Justin Ruggles [Sun, 9 Oct 2011 17:36:01 +0000 (13:36 -0400)]
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.
Justin Ruggles [Sun, 9 Oct 2011 17:31:03 +0000 (13:31 -0400)]
alacdec: rename 2 functions.
Now they only do stereo interleaving.
Justin Ruggles [Sun, 9 Oct 2011 17:27:16 +0000 (13:27 -0400)]
alacdec: move appending of extra_bits to a separate function.
This should also fix decoding of mono 24-bit.
Justin Ruggles [Sun, 9 Oct 2011 17:16:14 +0000 (13:16 -0400)]
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.
Justin Ruggles [Sun, 9 Oct 2011 17:00:39 +0000 (13:00 -0400)]
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.
Justin Ruggles [Thu, 6 Oct 2011 00:17:32 +0000 (20:17 -0400)]
alacdec: remove unneeded numsamples checks
Justin Ruggles [Thu, 6 Oct 2011 00:14:48 +0000 (20:14 -0400)]
alacdec: check for buffer allocation failure.
Also rearranges some functions for easier cleanup on failure.
Justin Ruggles [Thu, 6 Oct 2011 00:08:46 +0000 (20:08 -0400)]
alacdec: allocate per-channel buffers based on channel count.
reduces memory usage when the stream has fewer than MAX_CHANNELS
Justin Ruggles [Thu, 6 Oct 2011 00:07:29 +0000 (20:07 -0400)]
alacdec: read/validate number of channels from the extradata.
check frame header channel count against header/container channel count.
Justin Ruggles [Wed, 5 Oct 2011 23:46:46 +0000 (19:46 -0400)]
alacdec: remove unneeded validation of setinfo_sample_size.
It is already done when using it to set sample_fmt.
Justin Ruggles [Wed, 5 Oct 2011 23:43:49 +0000 (19:43 -0400)]
alacdec: set sample_fmt in alac_decode_init()
Justin Ruggles [Wed, 5 Oct 2011 23:42:26 +0000 (19:42 -0400)]
alacdec: set bytespersample using av_get_bytes_per_sample()
Janne Grunau [Wed, 26 Oct 2011 13:28:29 +0000 (15:28 +0200)]
threads: restore has_b_frames in frame_thread_free
Otherwise the delay expressed in has_b_frames increases with every
avcodec_close/avcodec_open.
Fixes fate-ea-dct with more than 1 thread.
Daniel Kang [Wed, 26 Oct 2011 13:25:48 +0000 (09:25 -0400)]
H.264: Cometics to dsputil_mmx.c
Add whitespace.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Justin Ruggles [Sun, 23 Oct 2011 17:00:33 +0000 (13:00 -0400)]
g722dec: check output buffer size before decoding
Justin Ruggles [Sun, 23 Oct 2011 17:02:04 +0000 (13:02 -0400)]
g722dec: cosmetics: reindent/linewrap
Justin Ruggles [Sat, 22 Oct 2011 22:29:14 +0000 (18:29 -0400)]
g722dec: remove the use of lowres for half-rate decoding.
It is broken because an AVCodecContext can be opened/closed multiple
times, and sample_rate is getting divided by 2 each time that happens.
This removes the only use of lowres for audio.
Justin Ruggles [Fri, 23 Sep 2011 23:22:06 +0000 (19:22 -0400)]
tta: check for extradata allocation failure in tta demuxer
Justin Ruggles [Mon, 24 Oct 2011 13:20:07 +0000 (09:20 -0400)]
tta: check for allocation failure of decode_buffer
Justin Ruggles [Sun, 23 Oct 2011 20:25:02 +0000 (16:25 -0400)]
tta: use correct frame_length calculation.
using a floating-point calculation is not necessary.
Justin Ruggles [Sun, 23 Oct 2011 20:13:06 +0000 (16:13 -0400)]
tta: add support for decoding 24-bit sample format
Note that this will not work in most cases with avconv and avplay due to the
AVCODEC_MAX_AUDIO_FRAME_SIZE limit, but it will decode correctly if given a
large enough output buffer.
Justin Ruggles [Thu, 22 Sep 2011 17:21:38 +0000 (13:21 -0400)]
cosmetics: indentation
Justin Ruggles [Thu, 22 Sep 2011 17:19:36 +0000 (13:19 -0400)]
tta: remove pointless braces
Justin Ruggles [Thu, 22 Sep 2011 17:09:05 +0000 (13:09 -0400)]
tta: check output buffer size after adjusting frame length for last frame
Justin Ruggles [Thu, 22 Sep 2011 16:54:28 +0000 (12:54 -0400)]
tta: fix reading of format in TTA header.
TTA does not support float at all, and format 2 is encrypted TTA.
Justin Ruggles [Wed, 21 Sep 2011 18:17:56 +0000 (14:17 -0400)]
tta: remove useless commented-out lines
Justin Ruggles [Wed, 21 Sep 2011 18:16:24 +0000 (14:16 -0400)]
tta: check remaining bitstream size while reading unary value
Anton Khirnov [Sun, 23 Oct 2011 09:22:33 +0000 (11:22 +0200)]
lavf: deprecate AVStream.stream_copy
It's only used in avconv, so it properly belongs to OutputStream struct
there.
Anton Khirnov [Sun, 23 Oct 2011 09:10:27 +0000 (11:10 +0200)]
avconc: split choose_codec() to choose_decoder/choose_encoder.
Prevents -c copy from working for input streams and allows to move
stream_copy variable from AVStream to OutputStream.
Anton Khirnov [Tue, 18 Oct 2011 07:17:12 +0000 (09:17 +0200)]
lavf: simplify by using FFMAX/FFMIN.
Anton Khirnov [Sun, 9 Oct 2011 13:04:38 +0000 (15:04 +0200)]
mpegenc: add preload private option.
Deprecate AVFormatContext.preload.
Janne Grunau [Fri, 21 Oct 2011 15:14:58 +0000 (17:14 +0200)]
cosmetics: simplify latm_decode_init
Janne Grunau [Fri, 21 Oct 2011 15:13:03 +0000 (17:13 +0200)]
latm: avoid unnecessary reinit of the aac decoder
Janne Grunau [Sat, 22 Oct 2011 23:11:44 +0000 (01:11 +0200)]
aacdec: initialize sbr context only in new channel elements
Janne Grunau [Sat, 22 Oct 2011 22:31:16 +0000 (00:31 +0200)]
resample: reject unhandled conversions
audio_resample can not reduce the number of channels
Janne Grunau [Sat, 22 Oct 2011 22:33:44 +0000 (00:33 +0200)]
resample: remove unused #define
Mans Rullgard [Sun, 23 Oct 2011 23:08:23 +0000 (00:08 +0100)]
adpcm: use sign_extend()
This avoids warnings from the overflow checker and simplifies the code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Janne Grunau [Sun, 23 Oct 2011 23:05:00 +0000 (01:05 +0200)]
mpeg12: fix mpeg_decode_slice context parameter type
During slice threading only MpegEncContext is passed to
mpeg_decode_slice, remove a wrong cast and change the function
definition to take MpegEncContext pointer.
Janne Grunau [Sun, 23 Oct 2011 22:59:41 +0000 (00:59 +0200)]
Revert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"
This reverts commit
da22ba7df461c13bf0b0eabc953303803a285d91 since it
broke slice threading. Slice threading just duplicates MpegEncContext
so every value used during mpeg_decode_slice has to be in it.
A second patch will fix the illusion that Mpeg1Context is available
in mpeg_decode_slice.
Michael Karcher [Fri, 21 Oct 2011 21:32:32 +0000 (23:32 +0200)]
Move id3v2 tag writing to a separate file.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Ronald S. Bultje [Sun, 23 Oct 2011 16:34:36 +0000 (09:34 -0700)]
swscale: add missing colons to x86 assembly yuv2planeX.
This fixes assembling using "nasm".
Justin Ruggles [Sat, 22 Oct 2011 21:49:50 +0000 (17:49 -0400)]
g722: split decoder and encoder into separate files
Justin Ruggles [Sat, 24 Sep 2011 00:00:11 +0000 (20:00 -0400)]
cosmetics: remove extra spaces before end-of-statement semi-colons
Justin Ruggles [Fri, 23 Sep 2011 23:56:58 +0000 (19:56 -0400)]
vorbisdec: check output buffer size before writing output
Justin Ruggles [Sat, 24 Sep 2011 03:19:53 +0000 (23:19 -0400)]
wavpack: calculate bpp using av_get_bytes_per_sample()
John Stebbins [Sun, 23 Oct 2011 15:24:26 +0000 (11:24 -0400)]
ac3enc: Set max value for mode options correctly
for example:
Attempting to set ac3 dsur_mode to "on" results in:
[AC-3 Encoder @ 0x7f508f0a3280] Value 2.000000 for parameter 'dsur_mode' out of range
[AC-3 Encoder @ 0x7f508f0a3280] Error setting option dsur_mode to value on.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Anton Khirnov [Fri, 21 Oct 2011 14:02:29 +0000 (16:02 +0200)]
lavc: move get_b_cbp() from h263.h to mpeg4videoenc.c
It's not used anywhere else.
Anton Khirnov [Wed, 19 Oct 2011 07:28:45 +0000 (09:28 +0200)]
mpeg12: move closed_gop from MpegEncContext to Mpeg1Context
It's MPEG-1/2 specific.
Anton Khirnov [Wed, 19 Oct 2011 07:28:45 +0000 (09:28 +0200)]
mpeg12: move full_pel from MpegEncContext to Mpeg1Context
It's MPEG-1 specific.
Anton Khirnov [Wed, 19 Oct 2011 07:25:52 +0000 (09:25 +0200)]
mpeg12: move Mpeg1Context from mpeg12.c to mpeg12.h
It will be used in vdpau code.
Anton Khirnov [Tue, 18 Oct 2011 17:53:25 +0000 (19:53 +0200)]
mpegvideo: remove some unused variables from MpegEncContext.