ffmpeg.git
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 28 Oct 2011 00:53:33 +0000 (02:53 +0200)]
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>
8 years agorawdec: add check on sample_rate
Stefano Sabatini [Wed, 26 Oct 2011 23:38:21 +0000 (01:38 +0200)]
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.

8 years agolavfi: add internal function ff_fill_rgba_map()
Stefano Sabatini [Mon, 24 Oct 2011 17:58:48 +0000 (19:58 +0200)]
lavfi: add internal function ff_fill_rgba_map()

8 years agoImplement parsing of the "HandlerName" from th MP4 HDLR atom.
Hendrik Leppkes [Wed, 28 Sep 2011 17:37:45 +0000 (19:37 +0200)]
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>
8 years agomov: Support empty first edit + normal second edit.
Yusuke Nakamura [Sat, 4 Jun 2011 17:45:54 +0000 (02:45 +0900)]
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>
8 years agolavc: Map deprecated codec ids to ours so as to maintain compatibility with the fork.
Michael Niedermayer [Mon, 24 Oct 2011 19:45:33 +0000 (21:45 +0200)]
lavc: Map deprecated codec ids to ours so as to maintain compatibility with the fork.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavcodec: Change values of codec ids at the end of lists that dont exist outside ffmpe...
Michael Niedermayer [Mon, 24 Oct 2011 19:40:23 +0000 (21:40 +0200)]
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>
8 years agoavcodec: Resolve the codec_id compatibility issue.
Michael Niedermayer [Mon, 24 Oct 2011 19:21:45 +0000 (21:21 +0200)]
avcodec: Resolve the codec_id compatibility issue.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAdd SMPTE240M transfer characteristics flag.
Hendrik Leppkes [Wed, 28 Sep 2011 19:29:21 +0000 (21:29 +0200)]
Add SMPTE240M transfer characteristics flag.
(cherry picked from commit 4266191919c31a1921b497ec831d3b1c1fa28df8)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavc: remove "legacy" mpegvideo decoder.
Anton Khirnov [Tue, 25 Oct 2011 14:52:02 +0000 (16:52 +0200)]
lavc: remove "legacy" mpegvideo decoder.

8 years agoashowinfo: fix typo in description.
Clément Bœsch [Thu, 27 Oct 2011 20:16:24 +0000 (22:16 +0200)]
ashowinfo: fix typo in description.

8 years agovf_showinfo: print checksums in hexadecimal.
Clément Bœsch [Thu, 27 Oct 2011 20:14:57 +0000 (22:14 +0200)]
vf_showinfo: print checksums in hexadecimal.

8 years agompegts: Fix detection of some raw AAC
Michael Niedermayer [Thu, 27 Oct 2011 19:22:31 +0000 (21:22 +0200)]
mpegts: Fix detection of some raw AAC
Fixes Ticket577

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kdec: debug markers support.
Michael Niedermayer [Tue, 3 May 2011 01:33:49 +0000 (03:33 +0200)]
j2kdec: debug markers support.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'luzero/pulse'
Michael Niedermayer [Thu, 27 Oct 2011 17:46:53 +0000 (19:46 +0200)]
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>
8 years agoiv8: assemble packets to return complete frames
Janne Grunau [Thu, 27 Oct 2011 15:41:40 +0000 (17:41 +0200)]
iv8: assemble packets to return complete frames

8 years agoh264_parser: fully parse first_mb_in_slice to more reliably detect AU boundaries.
Michael Niedermayer [Thu, 27 Oct 2011 15:53:29 +0000 (17:53 +0200)]
h264_parser: fully parse first_mb_in_slice to more reliably detect AU boundaries.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264: use long reading for first_mb_in_slice
Michael Niedermayer [Thu, 27 Oct 2011 15:53:08 +0000 (17:53 +0200)]
h264: use long reading for first_mb_in_slice

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoresample: Fix array size
Michael Niedermayer [Thu, 27 Oct 2011 13:26:45 +0000 (15:26 +0200)]
resample: Fix array size

Found-by: Jim Radford
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoresample2: fix potential overflow
Michael Niedermayer [Thu, 27 Oct 2011 12:34:45 +0000 (14:34 +0200)]
resample2: fix potential overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoresample: Fix overflow
Michael Niedermayer [Thu, 27 Oct 2011 12:31:53 +0000 (14:31 +0200)]
resample: Fix overflow

Found-by: Jim Radford
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_scale: Request an aligned buffer.
Michael Niedermayer [Thu, 27 Oct 2011 01:46:50 +0000 (03:46 +0200)]
vf_scale: Request an aligned buffer.
Fixes Ticket594

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_pad: Fix alignment of get_video_buffer()
Michael Niedermayer [Thu, 27 Oct 2011 01:46:09 +0000 (03:46 +0200)]
vf_pad: Fix alignment of get_video_buffer()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavfilter: add named constamt to indicate the amount of alignment that AV_PERM_ALIGN...
Michael Niedermayer [Thu, 27 Oct 2011 01:45:02 +0000 (03:45 +0200)]
avfilter: add named constamt to indicate the amount of alignment that AV_PERM_ALIGN means.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavfilter: add flag to indicate that alignment is needed
Michael Niedermayer [Thu, 27 Oct 2011 01:44:41 +0000 (03:44 +0200)]
avfilter: add flag to indicate that alignment is needed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agopulse: documentation
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>
8 years agopulse: introduce pulseaudio input
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>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 26 Oct 2011 23:26:43 +0000 (01:26 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (35 commits)
  libopencore-amr: check output buffer size before decoding
  libopencore-amr: remove unneeded buf_size==0 check.
  libopencore-amr: remove unneeded frame_count field.
  aac_latm: remove unneeded check for zero-size packet.
  pcmdec: fix output buffer size check by calculating the actual output size prior to decoding.
  pcmdec: move codec-specific variable declarations to the corresponding codec blocks.
  pcmdec: return buf_size instead of src-buf.
  avcodec: remove the Zork PCM encoder.
  pcm_zork: use AV_SAMPLE_FMT_U8 instead of shifting all samples by 8.
  pcmenc: remove unneeded sample_fmt check.
  pcmdec: move number of channels check to pcm_decode_init()
  pcmdec: remove unnecessary check for sample_fmt change
  pcmdec: move DVD PCM bits_per_coded_sample check near to the code that sets the sample size.
  pcmdec: do not needlessly set *data_size to 0
  alacdec: remove unneeded NULL or zero-size packet checks.
  alacdec: simplify buffer allocation by using FF_ALLOC_OR_GOTO()
  alacdec: ask for a sample for unsupported sample depths.
  alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels
  alacdec: move some declarations to the top of the function
  alacdec: always use get_sbits_long() for uncompressed samples
  ...

Conflicts:
libavcodec/pcm.c
tests/ref/acodec/pcm

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoTimecode v2 muxer
David Conrad [Fri, 14 Aug 2009 06:38:45 +0000 (02:38 -0400)]
Timecode v2 muxer
(cherry picked from commit 79ca161498744330ac940ae773dda3f1796ce955)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoremove the zork pcm seek test
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

8 years agodoc: tiny spelling fix
Michael Niedermayer [Wed, 26 Oct 2011 22:25:32 +0000 (00:25 +0200)]
doc: tiny spelling fix

Found-by & newspelling-by: pasteeater
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoVP8: Unroll decoding segment update
David Conrad [Sun, 25 Jul 2010 02:44:31 +0000 (22:44 -0400)]
VP8: Unroll decoding segment update

8 years agoVP8: Remove no longer used vp8_rac_get_tree_with_offset
David Conrad [Sat, 24 Jul 2010 05:47:06 +0000 (01:47 -0400)]
VP8: Remove no longer used vp8_rac_get_tree_with_offset

8 years agoavidec: Return correct error code from avi_sync() in case of IO error.
Michael Niedermayer [Wed, 26 Oct 2011 21:14:35 +0000 (23:14 +0200)]
avidec: Return correct error code from avi_sync() in case of IO error.

Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc: document -moov_size
Michael Niedermayer [Wed, 26 Oct 2011 20:16:12 +0000 (22:16 +0200)]
doc: document -moov_size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomovenc: reserved_moov_size, which allows placing moov at the begin of the file.
Michael Niedermayer [Wed, 26 Oct 2011 20:09:26 +0000 (22:09 +0200)]
movenc: reserved_moov_size, which allows placing moov at the begin of the file.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolibopencore-amr: check output buffer size before decoding
Justin Ruggles [Tue, 27 Sep 2011 21:24:27 +0000 (17:24 -0400)]
libopencore-amr: check output buffer size before decoding

8 years agolibopencore-amr: remove unneeded buf_size==0 check.
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.

8 years agolibopencore-amr: remove unneeded frame_count field.
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.

8 years agoaac_latm: remove unneeded check for zero-size packet.
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()

8 years agopcmdec: fix output buffer size check by calculating the actual output size
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.

8 years agopcmdec: move codec-specific variable declarations to the corresponding codec
Justin Ruggles [Thu, 29 Sep 2011 20:30:20 +0000 (16:30 -0400)]
pcmdec: move codec-specific variable declarations to the corresponding codec
blocks.

8 years agopcmdec: return buf_size instead of src-buf.
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.

8 years agoavcodec: remove the Zork PCM encoder.
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.

8 years agopcm_zork: use AV_SAMPLE_FMT_U8 instead of shifting all samples by 8.
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.

8 years agopcmenc: remove unneeded sample_fmt check.
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().

8 years agopcmdec: move number of channels check to pcm_decode_init()
Justin Ruggles [Tue, 27 Sep 2011 23:49:25 +0000 (19:49 -0400)]
pcmdec: move number of channels check to pcm_decode_init()

8 years agopcmdec: remove unnecessary check for sample_fmt change
Justin Ruggles [Tue, 27 Sep 2011 23:47:10 +0000 (19:47 -0400)]
pcmdec: remove unnecessary check for sample_fmt change

8 years agopcmdec: move DVD PCM bits_per_coded_sample check near to the code that sets
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.

8 years agopcmdec: do not needlessly set *data_size to 0
Justin Ruggles [Tue, 27 Sep 2011 21:52:48 +0000 (17:52 -0400)]
pcmdec: do not needlessly set *data_size to 0

8 years agoalacdec: remove unneeded NULL or zero-size packet checks.
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()

8 years agoalacdec: simplify buffer allocation by using FF_ALLOC_OR_GOTO()
Justin Ruggles [Mon, 10 Oct 2011 15:21:07 +0000 (11:21 -0400)]
alacdec: simplify buffer allocation by using FF_ALLOC_OR_GOTO()

8 years agoalacdec: ask for a sample for unsupported sample depths.
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.

8 years agoalacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels
Justin Ruggles [Sun, 9 Oct 2011 18:21:35 +0000 (14:21 -0400)]
alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels

8 years agoalacdec: move some declarations to the top of the function
Justin Ruggles [Sun, 9 Oct 2011 18:19:32 +0000 (14:19 -0400)]
alacdec: move some declarations to the top of the function

8 years agoalacdec: always use get_sbits_long() for uncompressed samples
Justin Ruggles [Sun, 9 Oct 2011 18:02:52 +0000 (14:02 -0400)]
alacdec: always use get_sbits_long() for uncompressed samples

8 years agoalacdec: remove unneeded local variable
Justin Ruggles [Sun, 9 Oct 2011 18:02:21 +0000 (14:02 -0400)]
alacdec: remove unneeded local variable

8 years agoalacdec: remove the numchannels parameter from several functions.
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.

8 years agoalacdec: rename 2 functions.
Justin Ruggles [Sun, 9 Oct 2011 17:31:03 +0000 (13:31 -0400)]
alacdec: rename 2 functions.

Now they only do stereo interleaving.

8 years agoalacdec: move appending of extra_bits to a separate function.
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.

8 years agoalacdec: split stereo decorrelation into a separate function.
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.

8 years agoalacdec: cosmetics: rename 'wasted_bits' to 'extra_bits'.
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.

8 years agoalacdec: remove unneeded numsamples checks
Justin Ruggles [Thu, 6 Oct 2011 00:17:32 +0000 (20:17 -0400)]
alacdec: remove unneeded numsamples checks

8 years agoalacdec: check for buffer allocation failure.
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.

8 years agoalacdec: allocate per-channel buffers based on channel count.
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

8 years agoalacdec: read/validate number of channels from the extradata.
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.

8 years agoalacdec: remove unneeded validation of setinfo_sample_size.
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.

8 years agoalacdec: set sample_fmt in alac_decode_init()
Justin Ruggles [Wed, 5 Oct 2011 23:43:49 +0000 (19:43 -0400)]
alacdec: set sample_fmt in alac_decode_init()

8 years agoalacdec: set bytespersample using av_get_bytes_per_sample()
Justin Ruggles [Wed, 5 Oct 2011 23:42:26 +0000 (19:42 -0400)]
alacdec: set bytespersample using av_get_bytes_per_sample()

8 years agothreads: restore has_b_frames in frame_thread_free
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.

8 years agosnow: emu edge support
Michael Niedermayer [Wed, 26 Oct 2011 13:47:14 +0000 (15:47 +0200)]
snow: emu edge support
Fixes Ticket592

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoH.264: Cometics to dsputil_mmx.c
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>
8 years agoh264: Guess receovery points.
Michael Niedermayer [Wed, 26 Oct 2011 12:32:01 +0000 (14:32 +0200)]
h264: Guess receovery points.
Fixes Ticket561

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agopulse: set the device from the avformat filename
Luca Barbato [Wed, 26 Oct 2011 01:27:22 +0000 (18:27 -0700)]
pulse: set the device from the avformat filename

Cleanup the options and add explicit fragment_size avoption.

8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 26 Oct 2011 00:09:31 +0000 (02:09 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (22 commits)
  g722dec: check output buffer size before decoding
  g722dec: cosmetics: reindent/linewrap
  g722dec: remove the use of lowres for half-rate decoding.
  tta: check for extradata allocation failure in tta demuxer
  tta: check for allocation failure of decode_buffer
  tta: use correct frame_length calculation.
  tta: add support for decoding 24-bit sample format
  cosmetics: indentation
  tta: remove pointless braces
  tta: check output buffer size after adjusting frame length for last frame
  tta: fix reading of format in TTA header.
  tta: remove useless commented-out lines
  tta: check remaining bitstream size while reading unary value
  lavf: deprecate AVStream.stream_copy
  avconc: split choose_codec() to choose_decoder/choose_encoder.
  lavf: simplify by using FFMAX/FFMIN.
  mpegenc: add preload private option.
  cosmetics: simplify latm_decode_init
  latm: avoid unnecessary reinit of the aac decoder
  aacdec: initialize sbr context only in new channel elements
  ...

Conflicts:
avconv.c
libavcodec/resample.c
libavcodec/tta.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agopulse: Change application name to LIBAVFORMAT_IDENT
Michael Niedermayer [Sat, 22 Oct 2011 09:20:31 +0000 (11:20 +0200)]
pulse: Change application name to LIBAVFORMAT_IDENT
This should be changed to LIBAVDEVICE_IDENT once it exists.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: add rmvol command line option to set swr rematrix volume.
Michael Niedermayer [Tue, 25 Oct 2011 22:45:52 +0000 (00:45 +0200)]
ffmpeg: add rmvol command line option to set swr rematrix volume.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agorematrix: add parameter to tune volume
Michael Niedermayer [Tue, 25 Oct 2011 22:44:35 +0000 (00:44 +0200)]
rematrix: add parameter to tune volume

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agorematrix: change type of integers from 16 to 32bit to allow increasing volume with it.
Michael Niedermayer [Tue, 25 Oct 2011 22:41:26 +0000 (00:41 +0200)]
rematrix: change type of integers from 16 to 32bit to allow increasing volume with it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agorematrix: add type for coefficients
Michael Niedermayer [Tue, 25 Oct 2011 22:40:29 +0000 (00:40 +0200)]
rematrix: add type for coefficients

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()
Mark Himsley [Tue, 25 Oct 2011 21:34:45 +0000 (23:34 +0200)]
vsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
8 years agoh264: 10l fix, missing () after replacing % by &
Michael Niedermayer [Tue, 25 Oct 2011 18:28:24 +0000 (20:28 +0200)]
h264: 10l fix, missing () after replacing % by &

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agotestsrc seconds display is out-by-one frame
Mark Himsley [Tue, 25 Oct 2011 15:41:37 +0000 (16:41 +0100)]
testsrc seconds display is out-by-one frame

Without this patch each displayed second is incremented 1 frame early,
second 0 is only 24 frames long where as every other second is 25 frames
long.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agog722dec: check output buffer size before decoding
Justin Ruggles [Sun, 23 Oct 2011 17:00:33 +0000 (13:00 -0400)]
g722dec: check output buffer size before decoding

8 years agog722dec: cosmetics: reindent/linewrap
Justin Ruggles [Sun, 23 Oct 2011 17:02:04 +0000 (13:02 -0400)]
g722dec: cosmetics: reindent/linewrap

8 years agog722dec: remove the use of lowres for half-rate decoding.
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.

8 years agotta: check for extradata allocation failure in tta demuxer
Justin Ruggles [Fri, 23 Sep 2011 23:22:06 +0000 (19:22 -0400)]
tta: check for extradata allocation failure in tta demuxer

8 years agotta: check for allocation failure of decode_buffer
Justin Ruggles [Mon, 24 Oct 2011 13:20:07 +0000 (09:20 -0400)]
tta: check for allocation failure of decode_buffer

8 years agotta: use correct frame_length calculation.
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.

8 years agotta: add support for decoding 24-bit sample format
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.

8 years agocosmetics: indentation
Justin Ruggles [Thu, 22 Sep 2011 17:21:38 +0000 (13:21 -0400)]
cosmetics: indentation

8 years agotta: remove pointless braces
Justin Ruggles [Thu, 22 Sep 2011 17:19:36 +0000 (13:19 -0400)]
tta: remove pointless braces

8 years agotta: check output buffer size after adjusting frame length for last frame
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

8 years agotta: fix reading of format in TTA header.
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.

8 years agotta: remove useless commented-out lines
Justin Ruggles [Wed, 21 Sep 2011 18:17:56 +0000 (14:17 -0400)]
tta: remove useless commented-out lines

8 years agotta: check remaining bitstream size while reading unary value
Justin Ruggles [Wed, 21 Sep 2011 18:16:24 +0000 (14:16 -0400)]
tta: check remaining bitstream size while reading unary value

8 years agolavf: deprecate AVStream.stream_copy
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.

8 years agoavconc: split choose_codec() to choose_decoder/choose_encoder.
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.

8 years agolavf: simplify by using FFMAX/FFMIN.
Anton Khirnov [Tue, 18 Oct 2011 07:17:12 +0000 (09:17 +0200)]
lavf: simplify by using FFMAX/FFMIN.

8 years agompegenc: add preload private option.
Anton Khirnov [Sun, 9 Oct 2011 13:04:38 +0000 (15:04 +0200)]
mpegenc: add preload private option.

Deprecate AVFormatContext.preload.