OSDN Git Service

coroid/libav_saccubus.git
13 years agomov: fix composition timestamps on movie fragments.
Yusuke Nakamura [Fri, 29 Apr 2011 14:39:29 +0000 (23:39 +0900)]
mov: fix composition timestamps on movie fragments.

This fixes, for instance, the case that there is a track that has some samples with composition time offset and has a track run without sample-composition-time-offsets-present.

13 years agowmavoice: Use proper size in memeset().
Alex Converse [Thu, 5 May 2011 18:10:19 +0000 (11:10 -0700)]
wmavoice: Use proper size in memeset().

sizeof(array_functrion_argument) gives the size of the pointer type not
the size of the array to which it points.

13 years agoconfigure: warn if pkg-config is missing
Mans Rullgard [Thu, 5 May 2011 15:45:12 +0000 (16:45 +0100)]
configure: warn if pkg-config is missing

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodoc: Check standalone compilation before submitting new components.
Diego Biurrun [Wed, 4 May 2011 18:54:53 +0000 (20:54 +0200)]
doc: Check standalone compilation before submitting new components.

13 years agoFix standalone compilation of pipe protocol.
Diego Biurrun [Wed, 4 May 2011 17:20:03 +0000 (19:20 +0200)]
Fix standalone compilation of pipe protocol.

file_check() is not only used by the file protocol, adjust #ifdef accordingly.

13 years agoFix standalone compilation of ac3_fixed encoder.
Diego Biurrun [Wed, 4 May 2011 17:17:30 +0000 (19:17 +0200)]
Fix standalone compilation of ac3_fixed encoder.

13 years agoFix standalone compilation of binkaudio_dct / binkaudio_rdft decoders.
Diego Biurrun [Wed, 4 May 2011 16:48:51 +0000 (18:48 +0200)]
Fix standalone compilation of binkaudio_dct / binkaudio_rdft decoders.

13 years agoFix standalone compilation of IMC decoder.
Diego Biurrun [Wed, 4 May 2011 16:48:26 +0000 (18:48 +0200)]
Fix standalone compilation of IMC decoder.

13 years agoFix standalone compilation of WTV demuxer.
Diego Biurrun [Wed, 4 May 2011 16:47:07 +0000 (18:47 +0200)]
Fix standalone compilation of WTV demuxer.

13 years agoFix standalone compilation of MXPEG decoder.
Diego Biurrun [Wed, 4 May 2011 12:21:27 +0000 (14:21 +0200)]
Fix standalone compilation of MXPEG decoder.

13 years agoflashsv: K&R cosmetics
Diego Biurrun [Tue, 3 May 2011 14:08:53 +0000 (16:08 +0200)]
flashsv: K&R cosmetics

13 years agomatroskaenc: fix memory leak
Mans Rullgard [Wed, 4 May 2011 16:57:37 +0000 (17:57 +0100)]
matroskaenc: fix memory leak

This fixes a memory leak occurring when no cue points are defined
since commit 91819763.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agovc1: make overlap filter for I-frames bit-exact.
Ronald S. Bultje [Wed, 4 May 2011 11:40:53 +0000 (07:40 -0400)]
vc1: make overlap filter for I-frames bit-exact.

13 years agovc1dec: use s->start/end_mb_y instead of passing them as function args.
Ronald S. Bultje [Tue, 3 May 2011 02:09:02 +0000 (22:09 -0400)]
vc1dec: use s->start/end_mb_y instead of passing them as function args.

13 years agoRevert "VC1: merge idct8x8, coeff adjustments and put_pixels."
Ronald S. Bultje [Wed, 4 May 2011 11:35:30 +0000 (07:35 -0400)]
Revert "VC1: merge idct8x8, coeff adjustments and put_pixels."

This reverts commit f8bed30d8b176fa030f6737765338bb4a2bcabc9. The reason
for this is that the overlap filter, which runs after IDCT, should run
on unclamped values, and thus IDCT and put_pixels() cannot be merged if
we want to attempt to be bitexact.

13 years agoReplace strncpy() with av_strlcpy().
Alex Converse [Tue, 3 May 2011 18:19:31 +0000 (11:19 -0700)]
Replace strncpy() with av_strlcpy().

13 years agoindeo3: Eliminate use of long.
Alex Converse [Mon, 25 Apr 2011 00:33:37 +0000 (17:33 -0700)]
indeo3: Eliminate use of long.

13 years agoget_bits: make cache unsigned to eliminate undefined signed overflow.
Alex Converse [Tue, 26 Apr 2011 16:09:05 +0000 (09:09 -0700)]
get_bits: make cache unsigned to eliminate undefined signed overflow.

13 years agoasfdec: fix assert failure on invalid files
Uoti Urpala [Sun, 24 Apr 2011 04:21:30 +0000 (07:21 +0300)]
asfdec: fix assert failure on invalid files

Add an extra size validity check in asf_read_frame_header(). Without
this asf->packet_size_left may become negative, which triggers an
assertion failure later.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavfilter: check malloc return values.
Ronald S. Bultje [Wed, 4 May 2011 01:25:40 +0000 (21:25 -0400)]
avfilter: check malloc return values.

13 years agompegvideo: reindent.
Ronald S. Bultje [Tue, 3 May 2011 12:23:41 +0000 (08:23 -0400)]
mpegvideo: reindent.

13 years agonutenc: check malloc return values.
Ronald S. Bultje [Tue, 3 May 2011 12:19:42 +0000 (08:19 -0400)]
nutenc: check malloc return values.

13 years agoavfilter: don't av_malloc(0).
Ronald S. Bultje [Wed, 27 Apr 2011 15:29:09 +0000 (08:29 -0700)]
avfilter: don't av_malloc(0).

13 years agonutenc: don't av_malloc(0).
Ronald S. Bultje [Wed, 27 Apr 2011 15:29:02 +0000 (08:29 -0700)]
nutenc: don't av_malloc(0).

13 years agompegvideo: don't av_malloc(0).
Ronald S. Bultje [Wed, 27 Apr 2011 15:28:51 +0000 (08:28 -0700)]
mpegvideo: don't av_malloc(0).

13 years agoasfdec: fix parsing of packets that overrun into padding.
Ronald S. Bultje [Wed, 27 Apr 2011 22:42:16 +0000 (15:42 -0700)]
asfdec: fix parsing of packets that overrun into padding.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoImplement fate-rsync target
Reinhard Tartler [Sun, 1 May 2011 14:48:40 +0000 (16:48 +0200)]
Implement fate-rsync target

13 years agoMake ffmpeg support generic data stream
Luca Barbato [Thu, 14 Apr 2011 11:32:36 +0000 (13:32 +0200)]
Make ffmpeg support generic data stream

The patch is the first step to support -dcodec copy

13 years agovp8: frame-multithreading.
Ronald S. Bultje [Mon, 2 May 2011 13:55:52 +0000 (09:55 -0400)]
vp8: frame-multithreading.

Tested on a Mac Pro, 2 CPUs, 2 cores each, OSX 10.6.6:

time ./ffmpeg -v 0 -vsync 0 -threads [1234] -i \
  ~/Downloads/sintel_trailer_1080p_vp8_vorbis.webm \
  -f null -vcodec rawvideo -an -
1: 0m14.630s (89.9 fps)
2: 0m8.056s (163.2 fps)
3: 0m5.882s (223.6 fps)
4: 0m4.952s (265.6 fps)

time ./ffmpeg -v 0 -vsync 0 -threads [1234] -i \
  ~/Downloads/Elephants_Dream-720p-Stereo.webm \
  -f null -vcodec rawvideo -an -
1: 1m12.962s (215.1 fps)
2: 0m44.682s (351.2 fps)
3: 0m31.183s (503.2 fps)
4: 0m25.284s (620.6 fps)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoReplace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
Stefano Sabatini [Fri, 29 Apr 2011 16:53:57 +0000 (18:53 +0200)]
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoReplace deprecated av_get_pict_type_char() with av_get_picture_type_char().
Stefano Sabatini [Fri, 29 Apr 2011 14:37:23 +0000 (16:37 +0200)]
Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agodpx: Do not use DPX encoder for decoding.
Kostya Shishkov [Mon, 2 May 2011 08:37:36 +0000 (10:37 +0200)]
dpx: Do not use DPX encoder for decoding.

10l to the one who hasn't checked this.

13 years agoALPHA: Replace sized int_fast integer types with plain int/unsigned.
Diego Biurrun [Fri, 29 Apr 2011 18:15:00 +0000 (20:15 +0200)]
ALPHA: Replace sized int_fast integer types with plain int/unsigned.

int/unsigned is the natural memory access type for CPUs, using sized types
for temporary variables, counters and similar just increases code size and
can possibly cause a slowdown.

13 years agoDPX image encoder
Peter Ross [Sat, 26 Mar 2011 04:12:35 +0000 (15:12 +1100)]
DPX image encoder

13 years agoDPX decoder: read sample aspect ratio
Peter Ross [Fri, 1 Apr 2011 12:23:28 +0000 (23:23 +1100)]
DPX decoder: read sample aspect ratio

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoDPX decoder: add buffer size checks.
Reimar Döffinger [Fri, 25 Mar 2011 17:58:07 +0000 (18:58 +0100)]
DPX decoder: add buffer size checks.

13 years agoac3enc: clip large coefficient values and negative exponents rather than using
Justin Ruggles [Sat, 16 Apr 2011 03:18:33 +0000 (23:18 -0400)]
ac3enc: clip large coefficient values and negative exponents rather than using
av_assert2().

13 years agoac3enc: do not store a bandwidth code for each channel.
Justin Ruggles [Sat, 16 Apr 2011 02:49:05 +0000 (22:49 -0400)]
ac3enc: do not store a bandwidth code for each channel.

Although AC-3 allows it, it's not very useful. The encoder uses the same code
for all full-bandwidth channels.

13 years agoac3enc: remove bandwidth reduction as fallback for bit allocation failure.
Justin Ruggles [Sat, 16 Apr 2011 02:45:05 +0000 (22:45 -0400)]
ac3enc: remove bandwidth reduction as fallback for bit allocation failure.

It was only needed at low bitrates, which now already use a low bandwidth, so
the bandwidth reduction is no longer needed.

13 years agoac3enc: merge compute_exp_strategy_ch() into compute_exp_strategy()
Justin Ruggles [Sat, 16 Apr 2011 02:43:25 +0000 (22:43 -0400)]
ac3enc: merge compute_exp_strategy_ch() into compute_exp_strategy()

13 years agoac3enc: return error if frame+exponent bits are too large instead of using
Justin Ruggles [Fri, 15 Apr 2011 23:56:42 +0000 (19:56 -0400)]
ac3enc: return error if frame+exponent bits are too large instead of using
av_assert2().

This can occur in some very rare cases with low bitrates.

13 years agoac3enc: differentiate between current block and reference block in bit_alloc()
Justin Ruggles [Fri, 15 Apr 2011 23:55:09 +0000 (19:55 -0400)]
ac3enc: differentiate between current block and reference block in bit_alloc()

13 years agoac3enc: simplify exponent_init() by calculating exponent_group_tab[] based
Justin Ruggles [Fri, 15 Apr 2011 23:51:06 +0000 (19:51 -0400)]
ac3enc: simplify exponent_init() by calculating exponent_group_tab[] based
on exponent group sizes.

13 years agoac3enc: simplify stereo rematrixing decision options
Justin Ruggles [Fri, 15 Apr 2011 23:22:42 +0000 (19:22 -0400)]
ac3enc: simplify stereo rematrixing decision options

13 years agoUpdate URL to fate samples
Reinhard Tartler [Sun, 1 May 2011 12:34:31 +0000 (14:34 +0200)]
Update URL to fate samples

13 years agoAMV: disable DR1 and don't override EMU_EDGE
Michael Niedermayer [Thu, 28 Apr 2011 19:10:04 +0000 (21:10 +0200)]
AMV: disable DR1 and don't override EMU_EDGE

This works around a possibly exploitable crash.
Appearently, vlc can be exploited with a malicous file. This should get
reverted as soon as a proper fix is found.

Reported-at: Thu, 21 Apr 2011 14:38:25 +0000
Reported-by: Dominic Chell <Dominic.Chell@ngssecure.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 89f903b3d5ec38c9c5d90fba7e626fa0eda61a32)
(cherry picked from commit 9b919571e506fbb72b81a35ca1e7c1bd6efc4209)

13 years agolavf: inspect more frames for fps when container time base is coarse
Anssi Hannula [Thu, 28 Apr 2011 18:47:40 +0000 (20:47 +0200)]
lavf: inspect more frames for fps when container time base is coarse

As per issue2629, most 23.976fps matroska H.264 files are incorrectly
detected as 24fps, as the matroska timestamps usually have only
millisecond precision.

Fix that by doubling the amount of timestamps inspected for frame rate
for streams that have coarse time base. This also fixes 29.970 detection
in matroska.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 78431098f9e306ebe27e7698d0ae539e3df2afe9)

Tested with mplayer based on this report
http://thread.gmane.org/gmane.comp.video.mplayer.user/66043/focus=66063

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agoFix races in default av_log handler
Reinhard Tartler [Wed, 27 Apr 2011 19:21:54 +0000 (21:21 +0200)]
Fix races in default av_log handler

Prevent competing threads from overwriting (shared) buffers.

Original patch by: Michael Niedermayer <michaelni@gmx.at>

13 years agovorbis: Replace sized int_fast integer types with plain int/unsigned.
Diego Biurrun [Fri, 29 Apr 2011 18:12:48 +0000 (20:12 +0200)]
vorbis: Replace sized int_fast integer types with plain int/unsigned.

int/unsigned is the natural memory access type for CPUs, using sized types
for temporary variables, counters and similar just increases code size and
can possibly cause a slowdown.

13 years agoRemove disabled non-optimized code variants.
Diego Biurrun [Fri, 29 Apr 2011 17:46:10 +0000 (19:46 +0200)]
Remove disabled non-optimized code variants.

13 years agobswap.h: Remove disabled code.
Diego Biurrun [Fri, 29 Apr 2011 17:36:48 +0000 (19:36 +0200)]
bswap.h: Remove disabled code.

13 years agoRemove some disabled printf debug cruft.
Diego Biurrun [Fri, 29 Apr 2011 17:05:40 +0000 (19:05 +0200)]
Remove some disabled printf debug cruft.

13 years agoReplace more disabled printf() calls by av_dlog().
Diego Biurrun [Fri, 29 Apr 2011 17:18:46 +0000 (19:18 +0200)]
Replace more disabled printf() calls by av_dlog().

13 years agotests: Remove disabled code.
Diego Biurrun [Tue, 26 Apr 2011 12:26:23 +0000 (14:26 +0200)]
tests: Remove disabled code.

13 years agoReplace some commented-out debug printf() / av_log() messages with av_dlog().
Diego Biurrun [Fri, 29 Apr 2011 15:27:01 +0000 (17:27 +0200)]
Replace some commented-out debug printf() / av_log() messages with av_dlog().

13 years agovorbisdec: Replace some sizeof(type) by sizeof(*variable).
Diego Biurrun [Thu, 28 Apr 2011 09:09:35 +0000 (11:09 +0200)]
vorbisdec: Replace some sizeof(type) by sizeof(*variable).

13 years agovf_fieldorder: Replace FFmpeg by Libav in license boilerplate.
Diego Biurrun [Thu, 28 Apr 2011 16:59:14 +0000 (18:59 +0200)]
vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.

13 years agoavio: Fix the deprecated fallback URL-prefixed open flags
Martin Storsjö [Thu, 28 Apr 2011 07:36:44 +0000 (10:36 +0300)]
avio: Fix the deprecated fallback URL-prefixed open flags

While deprecated, they're totally useless as long as their values
are different from the AVIO_FLAG values that are used internally.
Currently, this leads to old libav applications still compiling
correctly (since we haven't removed the fallback wrappers), but
failing since the functions internally compare to the new AVIO_FLAG
values.

These should be removed at some point, but they aren't removed yet.
The intent is to be able to recompile an old application against
the new ABI without modifying the code, and this doesn't work
currently.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoavoid duplicate -lm in .pc files
Reinhard Tartler [Tue, 26 Apr 2011 16:34:31 +0000 (18:34 +0200)]
avoid duplicate -lm in .pc files

13 years agompeg12: terminate mpeg2_video_profiles arrays
Stefano Sabatini [Wed, 27 Apr 2011 23:42:56 +0000 (01:42 +0200)]
mpeg12: terminate mpeg2_video_profiles arrays

Make av_get_profile_name() return NULL if no profile is detected.

Fix trac issue #130, fix crash reading file tek3.m2v.
(cherry picked from commit e5d80c7b2d893422e2e60a97e08bfc48ca1684e6)

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agonetwork: Check POLLERR and POLLHUP in ff_network_wait_fd
Gil Pedersen [Thu, 28 Apr 2011 07:27:40 +0000 (10:27 +0300)]
network: Check POLLERR and POLLHUP in ff_network_wait_fd

Previously, the function would lead to an infinite wait (by
returning AVERROR(EAGAIN)) on sockets indicating an error
via either of these poll flags.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agompegtsenc: make PMT PID really start on pmt_start_pid
Anton Khirnov [Tue, 26 Apr 2011 09:59:07 +0000 (09:59 +0000)]
mpegtsenc: make PMT PID really start on pmt_start_pid

13 years agonut format: support PIX_FMT_BGR48LE and PIX_FMT_BGR48BE
Peter Ross [Sat, 19 Mar 2011 13:25:18 +0000 (00:25 +1100)]
nut format: support PIX_FMT_BGR48LE and PIX_FMT_BGR48BE

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agorawvideo codec: support PIX_FMT_BGR48LE and PIX_FMT_BGR48BE
Peter Ross [Sat, 19 Mar 2011 13:24:24 +0000 (00:24 +1100)]
rawvideo codec: support PIX_FMT_BGR48LE and PIX_FMT_BGR48BE

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agohflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
Peter Ross [Sat, 19 Mar 2011 11:11:03 +0000 (22:11 +1100)]
hflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agocrop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
Peter Ross [Sat, 19 Mar 2011 11:05:53 +0000 (22:05 +1100)]
crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolibswcale: PIX_FMT_BGR48LE and PIX_FMT_BGR48BE scaler implementation
Peter Ross [Thu, 17 Mar 2011 10:07:18 +0000 (21:07 +1100)]
libswcale: PIX_FMT_BGR48LE and PIX_FMT_BGR48BE scaler implementation

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovorbisdec: Rename silly "class_" variable to plain "class".
Diego Biurrun [Wed, 27 Apr 2011 14:38:35 +0000 (16:38 +0200)]
vorbisdec: Rename silly "class_" variable to plain "class".

13 years agosimple_idct_alpha: Drop some useless casts.
Diego Biurrun [Wed, 27 Apr 2011 13:36:21 +0000 (15:36 +0200)]
simple_idct_alpha: Drop some useless casts.

13 years agoSimplify av_log_missing_feature().
Diego Biurrun [Wed, 27 Apr 2011 13:11:41 +0000 (15:11 +0200)]
Simplify av_log_missing_feature().

Do not print the results of the conditional call to av_log_ask_for_sample()
into the same line as the main output, separate the already long text.

13 years agoac3enc: remove check for mismatching channels and channel_layout
Justin Ruggles [Tue, 19 Apr 2011 23:06:52 +0000 (19:06 -0400)]
ac3enc: remove check for mismatching channels and channel_layout

13 years agoIf AVCodecContext.channels is 0 and AVCodecContext.channel_layout is
Justin Ruggles [Tue, 19 Apr 2011 23:03:47 +0000 (19:03 -0400)]
If AVCodecContext.channels is 0 and AVCodecContext.channel_layout is
non-zero, set channels based on channel_layout.

This allows the user to set only channel_layout and not channels.

13 years agoIf AVCodecContext.channel_layout and AVCodecContext.channels are both
Justin Ruggles [Tue, 19 Apr 2011 23:02:32 +0000 (19:02 -0400)]
If AVCodecContext.channel_layout and AVCodecContext.channels are both
non-zero, check to make sure they do not contradict eachother.

13 years agocosmetics: indentation
Justin Ruggles [Wed, 20 Apr 2011 20:59:39 +0000 (16:59 -0400)]
cosmetics: indentation

13 years agoCheck AVCodec.supported_samplerates and AVCodec.channel_layouts in
Justin Ruggles [Tue, 19 Apr 2011 22:50:20 +0000 (18:50 -0400)]
Check AVCodec.supported_samplerates and AVCodec.channel_layouts in
avcodec_open().

If the encoder has a channel_layouts list and AVCodecContext.channel_layout
is 0, then only print a warning and let the encoder decide how to handle it.

13 years agoaacdec: remove sf_scale and sf_offset.
Alex Converse [Tue, 26 Apr 2011 21:05:07 +0000 (17:05 -0400)]
aacdec: remove sf_scale and sf_offset.

Instead, scalefactors are adjusted by the offset amount, removing the need
for sf_scale, and the MDCT scales are adjusted to compensate for the higher
scalefactors. Floating-point output will be handled by modifying the MDCT
scales.

13 years agoaacdec: use a scale of 2 in the LTP MDCT rather than doubling the coefficient
Justin Ruggles [Tue, 26 Apr 2011 19:30:19 +0000 (15:30 -0400)]
aacdec: use a scale of 2 in the LTP MDCT rather than doubling the coefficient
table values from the spec.

13 years agoDefine POW_SF2_ZERO in aac.h and use for ff_aac_pow2sf_tabp[] offsets instead
Alex Converse [Tue, 26 Apr 2011 18:45:48 +0000 (14:45 -0400)]
Define POW_SF2_ZERO in aac.h and use for ff_aac_pow2sf_tabp[] offsets instead
of hardcoding 200 everywhere.

13 years agoLarge intensity stereo and PNS indices are legal. Clip them instead of
Alex Converse [Tue, 26 Apr 2011 18:29:03 +0000 (14:29 -0400)]
Large intensity stereo and PNS indices are legal. Clip them instead of
erroring out. A magnitude of 100 corresponds to 2^25 so the will most
likely result in clipped output anyway.

None of the conformance streams fall in the range that need to be clipped.

13 years agoqpeg: use reget_buffer() in decode_frame()
Stefano Sabatini [Tue, 26 Apr 2011 09:51:50 +0000 (11:51 +0200)]
qpeg: use reget_buffer() in decode_frame()

Decoder relies on previous frame data, so use reget_buffer().

This also set frame->reference to 3, as the frame will be requested
unmodified later so it shouldn't be modified by the application.

Fix playback of file Clock.avi.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoultimotion: use reget_buffer() in ulti_decode_frame()
Stefano Sabatini [Tue, 26 Apr 2011 09:45:40 +0000 (11:45 +0200)]
ultimotion: use reget_buffer() in ulti_decode_frame()

Decoder relies on previous frame data, so use reget_buffer().

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agosmacker: remove unnecessary call to avctx->release_buffer in decode_frame()
Stefano Sabatini [Tue, 26 Apr 2011 09:37:36 +0000 (11:37 +0200)]
smacker: remove unnecessary call to avctx->release_buffer in decode_frame()

The release_buffer was cleaning the provided frame, thus causing the
successive call to avctx->reget_buffer() to allocate a new frame.  In
case the returned frame was not the same one previously returned but a
new one with different data, it resulted in artifacts.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoavparser: don't av_malloc(0).
Ronald S. Bultje [Wed, 27 Apr 2011 01:46:08 +0000 (18:46 -0700)]
avparser: don't av_malloc(0).

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoac3enc: correct the flipped sign in the ac3_fixed encoder
Justin Ruggles [Tue, 5 Apr 2011 16:55:42 +0000 (12:55 -0400)]
ac3enc: correct the flipped sign in the ac3_fixed encoder

13 years agoEliminate pointless '#if 1' statements without matching '#else'.
Diego Biurrun [Tue, 26 Apr 2011 11:52:12 +0000 (13:52 +0200)]
Eliminate pointless '#if 1' statements without matching '#else'.

13 years agoAdd AVX FFT implementation.
Vitor Sessak [Mon, 25 Apr 2011 09:39:01 +0000 (11:39 +0200)]
Add AVX FFT implementation.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agoIncrease alignment of av_malloc() as needed by AVX ASM.
Vitor Sessak [Sat, 23 Apr 2011 17:24:31 +0000 (19:24 +0200)]
Increase alignment of av_malloc() as needed by AVX ASM.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agoUpdate x86inc.asm from x264 to allow AVX emulation using SSE and MMX.
Vitor Sessak [Sat, 23 Apr 2011 17:24:06 +0000 (19:24 +0200)]
Update x86inc.asm from x264 to allow AVX emulation using SSE and MMX.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agomjpeg: Detect overreads in mjpeg_decode_scan() and error out.
Michael Niedermayer [Thu, 21 Apr 2011 20:03:24 +0000 (22:03 +0200)]
mjpeg: Detect overreads in mjpeg_decode_scan() and error out.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rbultje@google.com>
13 years agodocumentation: extend documentation for ffmpeg -aspect option
Stefano Sabatini [Sat, 9 Apr 2011 11:49:49 +0000 (13:49 +0200)]
documentation: extend documentation for ffmpeg -aspect option

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoAPIChanges: update commit hashes for recent additions.
Anton Khirnov [Tue, 26 Apr 2011 06:51:54 +0000 (08:51 +0200)]
APIChanges: update commit hashes for recent additions.

13 years agolavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums
Stefano Sabatini [Sat, 23 Apr 2011 11:38:50 +0000 (13:38 +0200)]
lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums

Also deprecate av_get_pict_type_char() in favor of
av_get_picture_type_char().

The new enum and av_get_picture_type_char() are defined in libavutil.
This allows the use in libavfilter without the need to link against
libavcodec.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoaac: add headers needed for log2f()
Michael Niedermayer [Sat, 23 Apr 2011 08:44:21 +0000 (10:44 +0200)]
aac: add headers needed for log2f()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavc: remove FF_API_MB_Q cruft
Anton Khirnov [Tue, 12 Apr 2011 18:54:16 +0000 (20:54 +0200)]
lavc: remove FF_API_MB_Q cruft

13 years agolavc: remove FF_API_RATE_EMU cruft
Anton Khirnov [Tue, 12 Apr 2011 18:53:21 +0000 (20:53 +0200)]
lavc: remove FF_API_RATE_EMU cruft

13 years agolavc: remove FF_API_HURRY_UP cruft
Anton Khirnov [Tue, 12 Apr 2011 18:51:40 +0000 (20:51 +0200)]
lavc: remove FF_API_HURRY_UP cruft

13 years agopad: make the filter parametric
Stefano Sabatini [Sun, 17 Apr 2011 15:19:05 +0000 (17:19 +0200)]
pad: make the filter parametric

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_movie: add key_frame and pict_type.
royger [Mon, 18 Apr 2011 15:50:16 +0000 (17:50 +0200)]
vsrc_movie: add key_frame and pict_type.

Signed-off-by: Roger Pau Monné <roger.pau@entel.upc.edu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_movie: fix leak in request_frame()
Stefano Sabatini [Mon, 18 Apr 2011 17:21:25 +0000 (19:21 +0200)]
vsrc_movie: fix leak in request_frame()

Also set movie->picref to NULL, in order to avoid a crash in uninit()
when movie->picref is unreffed again and it was already freed.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavfi: add key_frame and pict_type to AVFilterBufferRefVideo.
Roger Pau Monné [Sat, 16 Apr 2011 08:09:15 +0000 (10:09 +0200)]
lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.

Signed-off-by: Anton Khirnov <anton@khirnov.net>