OSDN Git Service
Justin Ruggles [Tue, 28 Feb 2012 01:53:09 +0000 (20:53 -0500)]
roqaudioenc: use AVCodec.encode2()
The first frame pts must be saved until we have 8 frames since RoQ audio
requires 8 frames in the first packet.
Justin Ruggles [Tue, 28 Feb 2012 01:01:42 +0000 (20:01 -0500)]
libspeex: use AVCodec.encode2()
Justin Ruggles [Thu, 23 Feb 2012 22:22:42 +0000 (17:22 -0500)]
libvo_amrwbenc: use AVCodec.encode2()
Justin Ruggles [Thu, 23 Feb 2012 06:14:15 +0000 (01:14 -0500)]
libvo_aacenc: use AVCodec.encode2()
Justin Ruggles [Mon, 20 Feb 2012 17:29:14 +0000 (12:29 -0500)]
wmaenc: use AVCodec.encode2()
Justin Ruggles [Sun, 19 Feb 2012 22:12:48 +0000 (17:12 -0500)]
mpegaudioenc: use AVCodec.encode2()
Update FATE references due to encoder delay.
Justin Ruggles [Sun, 19 Feb 2012 18:16:34 +0000 (13:16 -0500)]
libmp3lame: use AVCodec.encode2()
Justin Ruggles [Thu, 16 Feb 2012 00:20:30 +0000 (19:20 -0500)]
libgsmenc: use AVCodec.encode2()
Justin Ruggles [Tue, 7 Feb 2012 19:28:50 +0000 (14:28 -0500)]
libfaac: use AVCodec.encode2()
Encoder output is delayed by several frames, so we keep a queue of input
frame timing info to match up with corresponding output packets.
Justin Ruggles [Sat, 4 Feb 2012 16:36:59 +0000 (11:36 -0500)]
g726enc: use AVCodec.encode2()
Justin Ruggles [Sat, 4 Feb 2012 16:26:33 +0000 (11:26 -0500)]
g722enc: use AVCodec.encode2()
FATE reference updated due timestamp rounding because of resampling from
44100 Hz to 16000 Hz in avconv.
Justin Ruggles [Fri, 3 Feb 2012 23:43:39 +0000 (18:43 -0500)]
flacenc: use AVCodec.encode2()
Justin Ruggles [Tue, 31 Jan 2012 20:54:45 +0000 (15:54 -0500)]
adpcmenc: update to AVCodec.encode2()
Justin Ruggles [Mon, 30 Jan 2012 00:01:10 +0000 (19:01 -0500)]
ac3enc: update to AVCodec.encode2()
Update FATE references due to encoder delay.
Justin Ruggles [Sat, 28 Jan 2012 17:28:01 +0000 (12:28 -0500)]
aacenc: use AVCodec.encode2()
Justin Ruggles [Thu, 23 Feb 2012 02:52:34 +0000 (21:52 -0500)]
avcodec: add code for a frame queue for use by audio encoders with delay
This simplifies matching of timestamps between input frames and output
packets.
Justin Ruggles [Tue, 20 Mar 2012 19:36:28 +0000 (15:36 -0400)]
avconv: free packet in write_frame() when discarding due to frame number limit
Fixes a memleak when using the -frames option with audio.
Justin Ruggles [Tue, 20 Mar 2012 19:10:39 +0000 (15:10 -0400)]
FATE: use +/- flag option syntax for vp8 emu-edge tests
Anton Khirnov [Thu, 15 Mar 2012 12:37:43 +0000 (13:37 +0100)]
lavf: make av_interleave_packet_per_dts() private.
There is no reason for it to be public, it's only meant to be used
internally.
Anton Khirnov [Sun, 4 Mar 2012 20:41:59 +0000 (21:41 +0100)]
lavf: deprecate av_read_packet().
The caller can achieve the same effect (i.e. getting raw unparsed/mangled
packets) with av_read_frame() and AVFMT_FLAG_NOPARSE |
AVFMT_FLAG_NOFILLIN
Justin Ruggles [Fri, 24 Feb 2012 02:40:14 +0000 (21:40 -0500)]
oggdec: output correct timestamps for Vorbis
Takes encoder delay into account by comparing first the coded page
duration with the calculated page duration. Handles last packet duration
if needed, also by comparing coded duration with calculated duration.
Also does better handling of timestamp generation for packets in the
first page for streamed ogg files where the start time is not
necessarily zero.
Justin Ruggles [Thu, 1 Mar 2012 18:02:49 +0000 (13:02 -0500)]
avconv: pass input stream timestamps to audio encoders
5 FATE test references updated due to using demuxer-generated timestamps that
are either not sample-accurate or are slightly off in the input file.
Justin Ruggles [Tue, 20 Mar 2012 17:21:52 +0000 (13:21 -0400)]
lavc: shrink encoded audio packet size after encoding.
Justin Ruggles [Tue, 20 Mar 2012 16:13:15 +0000 (12:13 -0400)]
xa: set correct bit rate
Also fixes stream duration calculation.
Justin Ruggles [Tue, 20 Mar 2012 16:00:00 +0000 (12:00 -0400)]
xa: do not set bit_rate, block_align, or bits_per_coded_sample
The values in the header refer to decoded data, not compressed data.
Justin Ruggles [Tue, 20 Mar 2012 15:53:56 +0000 (11:53 -0400)]
xa: fix end-of-file handling
Do not output an extra packet when out_size is reached.
Also return AVERROR_EOF instead of AVERROR(EIO).
Justin Ruggles [Tue, 20 Mar 2012 15:20:54 +0000 (11:20 -0400)]
xa: fix timestamp calculation
The packet duration is always 28 samples.
Kostya Shishkov [Tue, 20 Mar 2012 17:43:00 +0000 (18:43 +0100)]
bink: fix typo in FFALIGN() argument
Kostya Shishkov [Tue, 20 Mar 2012 06:53:41 +0000 (07:53 +0100)]
bink: align plane width to 8 when calculating bundle sizes
This fixes decoding of Bink files with non-multiple-of-16 width.
Mans Rullgard [Tue, 20 Mar 2012 10:54:02 +0000 (10:54 +0000)]
doc: pass -Idoc texi2html and texi2pod
This fixes doc generation in build tree separate from source.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Tue, 20 Mar 2012 10:53:06 +0000 (10:53 +0000)]
doc: texi2pod: add -I flag
This allows specifying additional directories to search for
@include files.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Martin Storsjö [Mon, 19 Mar 2012 17:31:15 +0000 (19:31 +0200)]
movenc: Add a min_frag_duration option
The other fragmentation options (frag_duration, frag_size and
frag_keyframe) are combined with OR, cutting fragments at the
first of the conditions being fulfilled.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Mon, 19 Mar 2012 18:40:23 +0000 (20:40 +0200)]
rtsp: Set the default delay to 0.1 s for the RTSP/SDP/RTP demuxers
This enables reordering of UDP packets by default, unless the caller
explicitly sets -max_delay 0.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Mon, 19 Mar 2012 18:37:10 +0000 (20:37 +0200)]
libavformat: Set the default for the max_delay option to -1
Make the muxers/demuxers that use the field handle the default
-1 in the same way as 0.
This allows distinguishing an intentionally set 0 from the default
value where the user hasn't set it.
Signed-off-by: Martin Storsjö <martin@martin.st>
Anton Khirnov [Wed, 14 Mar 2012 19:08:50 +0000 (20:08 +0100)]
Generate manpages for AV{Format,Codec}Context AVOptions.
Anton Khirnov [Thu, 15 Mar 2012 07:17:05 +0000 (08:17 +0100)]
doc/avconv: remove entries for AVOptions.
Documentation for those will be generated automatically.
Anton Khirnov [Wed, 14 Mar 2012 12:18:20 +0000 (13:18 +0100)]
Move AVFormatContext/AVCodecContext option tables to separate files.
This will allow us to automatically generate manpages for them.
Anton Khirnov [Sun, 18 Mar 2012 16:35:49 +0000 (17:35 +0100)]
lavf: use AVStream.discard to disable queueing attached pictures.
Anton Khirnov [Sun, 18 Mar 2012 16:34:14 +0000 (17:34 +0100)]
lavf: requeue attached pictures after seeking.
This allows the caller to get them without special code even after
seeking before receiving any data.
Anton Khirnov [Sun, 18 Mar 2012 16:29:52 +0000 (17:29 +0100)]
id3v2: set the keyframe flag on attached pictures.
Paul B Mahol [Sun, 18 Mar 2012 21:04:08 +0000 (21:04 +0000)]
FATE: change fate-maxis-xa to a normal demuxing test
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Paul B Mahol [Sun, 18 Mar 2012 19:50:20 +0000 (19:50 +0000)]
FATE: add test for adpcm-ea-maxis-xa
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Aaron Colwell [Mon, 19 Mar 2012 03:03:00 +0000 (20:03 -0700)]
vp8: avoid race condition on segment map.
This change avoids accessing the segment map of the previous frame if
segmentation is not enabled for the current frame. The caller of
decode_mb_mode() only calls ff_thread_await_progress() on the reference
segmentation index array if segmentation is enabled, so Chromium's TSAN
will report a race when accessing this data while segmentation is not
enabled.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Kostya Shishkov [Mon, 19 Mar 2012 18:11:24 +0000 (19:11 +0100)]
fix space type in Changelog
Derek Buitenhuis [Sun, 18 Mar 2012 19:04:38 +0000 (15:04 -0400)]
ZeroCodec Decoder
An obscure Japanese lossless video codec, originally intended
for use with a remote desktop application.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Kostya Shishkov [Sat, 17 Mar 2012 07:48:57 +0000 (08:48 +0100)]
RealAudio Lossless decoder
Martin Storsjö [Mon, 19 Mar 2012 11:56:25 +0000 (13:56 +0200)]
rtpenc: Use AVFormatContext.packet_size instead of a private option
The private option has not been part of any release yet (and
it is only of use in quite rare cases), so just remove it instead
of keeping it with deprecation warnings.
Signed-off-by: Martin Storsjö <martin@martin.st>
Nicolas George [Thu, 15 Mar 2012 11:16:54 +0000 (12:16 +0100)]
url: Document the expected behaviour of url_read
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Mon, 19 Mar 2012 12:24:04 +0000 (14:24 +0200)]
libavformat: Use AVFormatContext.probesize in init_input
This was forgotten in the transition from av_open_input_file to
avformat_open_input, see
603b8bc2a1.
This doesn't change anything for the default case where the
option isn't set, since PROBE_BUF_MAX is
1048576 (which was
used as max probe size earlier) while the default value for
the probesize option is
5000000, which for the probe function
is clipped to PROBE_BUF_MAX anyway.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Mon, 19 Mar 2012 12:21:52 +0000 (14:21 +0200)]
docs: Fix a stray reference to tags in the generic doxy on dicts
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Mon, 19 Mar 2012 10:17:47 +0000 (12:17 +0200)]
cosmetics: Align some AVInput/OutputFormat declarations
Also add missing trailing commas.
Signed-off-by: Martin Storsjö <martin@martin.st>
Kostya Shishkov [Sun, 18 Mar 2012 08:11:39 +0000 (09:11 +0100)]
zmbv: check decompress result
Changing flush type from Z_FINISH is needed since encoder compresses fixed
amount of data and doesn't care about writing end of stream marker.
Kostya Shishkov [Sun, 18 Mar 2012 07:48:50 +0000 (08:48 +0100)]
zmbv: correct indentation
Ronald S. Bultje [Sat, 17 Mar 2012 22:43:06 +0000 (15:43 -0700)]
adpcm: convert adpcm_thp to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 22:39:16 +0000 (15:39 -0700)]
adpcm: convert adpcm_yamaha to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 22:38:49 +0000 (15:38 -0700)]
adpcm: convert adpcm_swf to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 22:38:10 +0000 (15:38 -0700)]
adpcm: convert adpcm_sbpro to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 22:33:43 +0000 (15:33 -0700)]
adpcm: convert adpcm_ct to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 22:32:57 +0000 (15:32 -0700)]
adpcm: convert adpcm_ima_amv/smjpeg to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 22:25:03 +0000 (15:25 -0700)]
adpcm: convert adpcm_ea_xas to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 22:07:03 +0000 (15:07 -0700)]
adpcm: convert adpcm_ea_r1/2/3 to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 21:54:18 +0000 (14:54 -0700)]
adpcm: convert ea_maxis_xa to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 21:43:20 +0000 (14:43 -0700)]
adpcm: convert adpcm_ea to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 21:35:26 +0000 (14:35 -0700)]
adpcm convert adpcm_ima_ea_sead to bytestream2.
Ronald S. Bultje [Sun, 18 Mar 2012 00:06:39 +0000 (17:06 -0700)]
adpcm: convert adpcm_ima_ea_eacs to bytestream2.
Ronald S. Bultje [Sun, 18 Mar 2012 00:06:14 +0000 (17:06 -0700)]
adpcm: convert adpcm_xa to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 21:17:48 +0000 (14:17 -0700)]
adpcm: convert ima_ws to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 21:07:20 +0000 (14:07 -0700)]
adpcm: convert adpcm_ima_apc to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 20:42:17 +0000 (13:42 -0700)]
adpcm: convert adpcm_ima_iss to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 20:39:54 +0000 (13:39 -0700)]
adpcm: convert adpcm_dk3 to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 20:10:19 +0000 (13:10 -0700)]
adpcm: convert adpcm_dk4 to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 20:04:12 +0000 (13:04 -0700)]
adpcm: convert adpcm_ms to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 19:58:03 +0000 (12:58 -0700)]
adpcm: use av_clip() in adpcm_ima_expand_nibble().
Ronald S. Bultje [Sat, 17 Mar 2012 19:55:07 +0000 (12:55 -0700)]
adpcm: convert adpcm_4xm to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 19:51:59 +0000 (12:51 -0700)]
adpcm: convert adpcm_ima_wav to bytestream2.
Ronald S. Bultje [Sat, 17 Mar 2012 19:45:09 +0000 (12:45 -0700)]
adpcm: convert adpcm_ima_qt to bytestream2.
Ronald S. Bultje [Sun, 18 Mar 2012 20:36:32 +0000 (13:36 -0700)]
adpcm: fix nb_samples rounding for adpcm_ima_dk3, and update reference.
Michael Niedermayer [Sun, 18 Mar 2012 18:53:09 +0000 (14:53 -0400)]
oma: Fix out of array read.
Input: 01-Untitled-partial.oma
ZZUF params: zzuf[s=7157,r=0.001]
Fixes Bugzilla #106
Bug-found-by: darkshikari
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Mans Rullgard [Sun, 18 Mar 2012 17:44:18 +0000 (17:44 +0000)]
fate: make compare() function compatible with POSIX bc
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diego Biurrun [Wed, 22 Feb 2012 08:19:34 +0000 (09:19 +0100)]
Update Janne's email address.
Diego Biurrun [Wed, 7 Mar 2012 08:27:35 +0000 (09:27 +0100)]
APIchanges: Replace Subversion revision numbers by Git hashes.
Diego Biurrun [Fri, 16 Mar 2012 17:41:29 +0000 (18:41 +0100)]
bytestream: Eliminate one level of pointless macro indirection.
Ronald S. Bultje [Sat, 17 Mar 2012 19:24:11 +0000 (12:24 -0700)]
xwd: convert to bytestream2.
Paul B Mahol [Fri, 16 Mar 2012 00:56:41 +0000 (00:56 +0000)]
vqavideo: port to bytestream2 API
Protects against overreads.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Reinhard Tartler [Sun, 18 Mar 2012 08:26:32 +0000 (09:26 +0100)]
Read preset files with suffix .avpreset
The preset files have been renamed some time ago.
CC: libav-stable@libav.org
Kostya Shishkov [Sat, 17 Mar 2012 14:14:00 +0000 (15:14 +0100)]
prores: allow user to set fixed quantiser
Anton Khirnov [Wed, 14 Mar 2012 06:25:24 +0000 (07:25 +0100)]
lavf: remove some disabled code.
Anton Khirnov [Tue, 13 Mar 2012 20:45:05 +0000 (21:45 +0100)]
lavf: only set average frame rate for video.
Anton Khirnov [Tue, 13 Mar 2012 16:52:08 +0000 (17:52 +0100)]
lavf: remove a pointless check.
Timebase is already checked in avpriv_set_pts_info().
Paul B Mahol [Sat, 17 Mar 2012 17:43:58 +0000 (17:43 +0000)]
avcodec: add XBM encoder
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Justin Ruggles [Wed, 14 Mar 2012 17:01:32 +0000 (13:01 -0400)]
resample: allocate a large enough output buffer
Fixes invalid writes and crashes when doing conversions such as stereo to 5.1
channels or sample rate conversion on 5.1 channels.
Mans Rullgard [Sat, 17 Mar 2012 16:22:47 +0000 (16:22 +0000)]
fate: fix enc_dec_pcm tests with remote target
Signed-off-by: Mans Rullgard <mans@mansr.com>
Justin Ruggles [Sat, 17 Mar 2012 15:42:49 +0000 (11:42 -0400)]
wmaenc: remove bit-exact hack
It may have improved cross-platform stability, but wasn't the only place in
the encoder with bitexact issues. It is no longer needed because we have FATE
tests for float encoders using fuzzy comparison.
Justin Ruggles [Sat, 17 Mar 2012 15:35:18 +0000 (11:35 -0400)]
FATE: remove WMA acodec tests
Justin Ruggles [Fri, 9 Mar 2012 02:53:39 +0000 (21:53 -0500)]
FATE: add WMAv1 and WMAv2 encode/decode tests with fuzzy comparison
Justin Ruggles [Sat, 10 Mar 2012 20:36:34 +0000 (15:36 -0500)]
FATE: add AC-3 and E-AC-3 encode/decode tests with fuzzy comparison
Aneesh Dogra [Thu, 15 Mar 2012 19:13:23 +0000 (00:43 +0530)]
qtrle: Use bytestream2 functions to prevent buffer overreads.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Paul B Mahol [Fri, 16 Mar 2012 13:23:57 +0000 (13:23 +0000)]
vqavideo: check malloc return values
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Antonio Ospite [Fri, 16 Mar 2012 21:23:34 +0000 (22:23 +0100)]
x11grab: fix a memory leak exposed by valgrind
When using "-f x11grab -i :0.0" valgrind reports a definitely lost
memory block with this message:
==31544== 5 bytes in 1 blocks are definitely lost in loss record 1 of 2
==31544== at 0x4026E68: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31544== by 0x4026F17: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31544== by 0x60D399A: av_malloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.51.22.1)
==31544== by 0x60D3A70: av_strdup (in /usr/lib/x86_64-linux-gnu/libavutil.so.51.22.1)
==31544== by 0x4A2BE58: ??? (in /usr/lib/x86_64-linux-gnu/libavdevice.so.53.2.0)
==31544== by 0x506D29E: avformat_open_input (in /usr/lib/x86_64-linux-gnu/libavformat.so.53.21.0)
==31544== by 0x400A80: main (in /home/ao2/WIP/am7xxx-play/tests/a.out)
The 5 bytes lost are the ones from param = av_strdup(":0.0"), so let's
free param in the exit path.
Also check the av_strdup() return value.
Note: calling av_free(param) even when av_strdup() fails and param is
NULL is OK and keeps the code simpler without adding another label to
skip av_free().
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Uoti Urpala [Fri, 16 Mar 2012 03:42:26 +0000 (05:42 +0200)]
threads: fix old frames returned after avcodec_flush_buffers()
Calling avcodec_flush_buffers() and then avcodec_decode_video2() with
a 0-sized packet (to get remaining buffered frames) could incorrectly
return an old frame from before the avcodec_flush_buffers() call. Add
a loop in ff_thread_flush() to zero the got_frame field of each thread
to ensure the old frames will not be returned.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>