]> git.sesse.net Git - ffmpeg/log
ffmpeg
12 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.

12 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.

12 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()

12 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.

12 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.

12 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.

12 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.

12 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.

12 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().

12 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()

12 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

12 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.

12 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

12 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()

12 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()

12 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.

12 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

12 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

12 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

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

12 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.

12 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.

12 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.

12 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.

12 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.

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

12 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.

12 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

12 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.

12 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.

12 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()

12 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()

12 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.

12 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>
12 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>
12 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>
12 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.

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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

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

12 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.

12 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

12 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

12 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.

12 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.

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

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

12 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

12 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.

12 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

12 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

12 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.

12 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.

12 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.

12 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.

12 years agoRemove CELT / Opus confusion in labels, doc and comments.
Nicolas George [Tue, 25 Oct 2011 08:14:34 +0000 (10:14 +0200)]
Remove CELT / Opus confusion in labels, doc and comments.

The situation was not clear when support was added but it is now:
CELT and Opus are really two different codecs.
The current code supports CELT via libcelt, not Opus.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agocosmetics: simplify latm_decode_init
Janne Grunau [Fri, 21 Oct 2011 15:14:58 +0000 (17:14 +0200)]
cosmetics: simplify latm_decode_init

12 years agolatm: avoid unnecessary reinit of the aac decoder
Janne Grunau [Fri, 21 Oct 2011 15:13:03 +0000 (17:13 +0200)]
latm: avoid unnecessary reinit of the aac decoder

12 years agoaacdec: initialize sbr context only in new channel elements
Janne Grunau [Sat, 22 Oct 2011 23:11:44 +0000 (01:11 +0200)]
aacdec: initialize sbr context only in new channel elements

12 years agoresample: reject unhandled conversions
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

12 years agoresample: remove unused #define
Janne Grunau [Sat, 22 Oct 2011 22:33:44 +0000 (00:33 +0200)]
resample: remove unused #define

12 years agolibcelt_dec: whitespace cosmetics.
Nicolas George [Tue, 25 Oct 2011 07:38:08 +0000 (09:38 +0200)]
libcelt_dec: whitespace cosmetics.

12 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Mon, 24 Oct 2011 23:03:10 +0000 (01:03 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: add frame drop statistics
  ffplay: consider estimated time of filter in early frame drop
  ffplay: reimplement early frame drop

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 24 Oct 2011 21:45:44 +0000 (23:45 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  adpcm: use sign_extend()
  mpeg12: fix mpeg_decode_slice context parameter type
  Revert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"

Conflicts:
libavcodec/mpeg12.c
libavcodec/mpeg12.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffplay: add frame drop statistics
Marton Balint [Tue, 18 Oct 2011 23:17:52 +0000 (01:17 +0200)]
ffplay: add frame drop statistics

Signed-off-by: Marton Balint <cus@passwd.hu>
12 years agoffplay: consider estimated time of filter in early frame drop
Marton Balint [Tue, 18 Oct 2011 23:08:41 +0000 (01:08 +0200)]
ffplay: consider estimated time of filter in early frame drop

Signed-off-by: Marton Balint <cus@passwd.hu>
12 years agoffplay: reimplement early frame drop
Marton Balint [Sun, 16 Oct 2011 21:42:53 +0000 (23:42 +0200)]
ffplay: reimplement early frame drop

This patch reimplements early frame drop, it is now based on the current
difference between the master clock and the video clock, and the pts of the
current and the last displayed (or skipped) frame.  If the frame to be added to
the queue is late after decoding, then we drop it early because later we would
drop it anyway (unless it is the only frame in the picture queue).

The current approach has only one downside that I know of, it does not handle
well when the filters are changing significantly the pts of the frames, because
we compare pts values from filtered and unfiltered frames.

We also start using the pictq_mutex to ensure consistent video_current_pts,
video_current_pts_drift, frame_last_pts, frame_last_dropped_pts and
frame_last_dropped_pos values.

Signed-off-by: Marton Balint <cus@passwd.hu>
12 years agolibcelt_dec: set sample_fmt.
Nicolas George [Mon, 24 Oct 2011 17:55:49 +0000 (19:55 +0200)]
libcelt_dec: set sample_fmt.

This fixes a regression introduced by the merging of patch fc2dd2c.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agompegts: add BDMV secondary audio stream types
Hendrik Leppkes [Tue, 27 Sep 2011 15:11:47 +0000 (17:11 +0200)]
mpegts: add BDMV secondary audio stream types

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoavcodec: add YCgCo color space.
Hendrik Leppkes [Wed, 24 Aug 2011 19:50:04 +0000 (21:50 +0200)]
avcodec: add YCgCo color space.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agopcm_bluray: set bits_per_raw_sample for > 16-bit
Hendrik Leppkes [Fri, 4 Feb 2011 22:45:15 +0000 (23:45 +0100)]
pcm_bluray: set bits_per_raw_sample for > 16-bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agompegts: fix null-pointer dereference
Hendrik Leppkes [Mon, 24 Oct 2011 15:56:52 +0000 (17:56 +0200)]
mpegts: fix null-pointer dereference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agovsrc_testsrc: increase log level from DEBUG to INFO for message in init()
Stefano Sabatini [Mon, 24 Oct 2011 15:45:39 +0000 (17:45 +0200)]
vsrc_testsrc: increase log level from DEBUG to INFO for message in init()

12 years agolavfi: rewrite nullsrc using the code in vsrc_testsrc.c
Stefano Sabatini [Sun, 23 Oct 2011 11:53:25 +0000 (13:53 +0200)]
lavfi: rewrite nullsrc using the code in vsrc_testsrc.c

Factorize code, extend the functionality of the filter, and make it
return empty buffers. This is useful for filters which ignore the input
frames content.

This is also changing the syntax of the nullsrc source, and dropping the
framerate expression evaluation, which does not look particularly useful.

12 years agofilters.texi: document interlaced scaling
Mark Himsley [Mon, 24 Oct 2011 11:45:14 +0000 (12:45 +0100)]
filters.texi: document interlaced scaling

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodocs: remove reference to enable-libavfilter
Lou Logan [Mon, 24 Oct 2011 03:18:09 +0000 (19:18 -0800)]
docs: remove reference to enable-libavfilter

This is no longer a valid configure option.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoadpcm: use sign_extend()
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>
12 years agowmall: Working bitstream parser
Andreas Öman [Thu, 3 Mar 2011 08:31:34 +0000 (09:31 +0100)]
wmall: Working bitstream parser
(cherry picked from commit 929822111bc10fdf19ca66b7ed09e0ebf802878b)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotools: add a tool for enumerating/printing AVOptions in texinfo format
Anton Khirnov [Sat, 3 Sep 2011 06:31:53 +0000 (08:31 +0200)]
tools: add a tool for enumerating/printing AVOptions in texinfo format
(cherry picked from commit e103cb3e9513949858ccf0ec44c5151239d397e9)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agosws: replace long by x86_reg in x86 asm
Michael Niedermayer [Mon, 24 Oct 2011 10:23:51 +0000 (12:23 +0200)]
sws: replace long by x86_reg in x86 asm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264: Calculate a tighter recovery_frame.
Michael Niedermayer [Mon, 24 Oct 2011 10:17:24 +0000 (12:17 +0200)]
h264: Calculate a tighter recovery_frame.
Reduces delay with mplayers TS demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264: Support invalid output by mplayers TS demuxer.
Michael Niedermayer [Mon, 24 Oct 2011 10:16:03 +0000 (12:16 +0200)]
h264: Support invalid output by mplayers TS demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoRevert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"
Michael Niedermayer [Sun, 23 Oct 2011 23:34:38 +0000 (01:34 +0200)]
Revert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"

This reverts commit da22ba7df461c13bf0b0eabc953303803a285d91.

Conflicts:

libavcodec/mpeg12.c
libavcodec/mpeg12.h

12 years agompeg12: fix mpeg_decode_slice context parameter type
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.

12 years agoRevert "mpeg12: move closed_gop from MpegEncContext to Mpeg1Context"
Michael Niedermayer [Sun, 23 Oct 2011 23:04:14 +0000 (01:04 +0200)]
Revert "mpeg12: move closed_gop from MpegEncContext to Mpeg1Context"

This reverts commit 3fc08304322ce3ed0e4a71efde78ae5e0d5c910c.
The revert is done because the reasoning behind the commit was
flawed, closed_gop is not mpeg1/2 specific.

Conflicts:

libavcodec/mpeg12.c
libavcodec/mpeg12.h

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 23 Oct 2011 23:01:21 +0000 (01:01 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Move id3v2 tag writing to a separate file.
  swscale: add missing colons to x86 assembly yuv2planeX.
  g722: split decoder and encoder into separate files
  cosmetics: remove extra spaces before end-of-statement semi-colons
  vorbisdec: check output buffer size before writing output
  wavpack: calculate bpp using av_get_bytes_per_sample()
  ac3enc: Set max value for mode options correctly
  lavc: move get_b_cbp() from h263.h to mpeg4videoenc.c
  mpeg12: move closed_gop from MpegEncContext to Mpeg1Context
  mpeg12: move full_pel from MpegEncContext to Mpeg1Context
  mpeg12: move Mpeg1Context from mpeg12.c to mpeg12.h
  mpegvideo: remove some unused variables from MpegEncContext.

Conflicts:
libavcodec/mpeg12.c
libavformat/mp3enc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoRevert "mpeg12: move full_pel from MpegEncContext to Mpeg1Context"
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.

12 years agovsrc_testsrc: do not assume non-padded lines in test_fill_picture()
Stefano Sabatini [Sun, 23 Oct 2011 21:51:33 +0000 (23:51 +0200)]
vsrc_testsrc: do not assume non-padded lines in test_fill_picture()

In particular, fix sliding color bar with padded data, for example with
testsrc,pad=iw+200:ih.

12 years agovf_boxblur: fix slice-drawing
Stefano Sabatini [Sun, 23 Oct 2011 16:57:07 +0000 (18:57 +0200)]
vf_boxblur: fix slice-drawing

This filter does not support slice-drawing, the whole blurred image needs
to be written in end_frame().

12 years agosws: add yuv2yuvX_sse3()
Michael Niedermayer [Sun, 23 Oct 2011 21:36:06 +0000 (23:36 +0200)]
sws: add yuv2yuvX_sse3()
Code is about 2x as fast as previous

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agosws-test: Fix data alignment
Michael Niedermayer [Sun, 23 Oct 2011 21:35:28 +0000 (23:35 +0200)]
sws-test: Fix data alignment

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agosws: fix assert failure
Michael Niedermayer [Sun, 23 Oct 2011 18:18:21 +0000 (20:18 +0200)]
sws: fix assert failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>