ffmpeg.git
7 years agofmtconvert: fix and extend documentation for float_interleave()
Justin Ruggles [Sun, 9 Oct 2011 20:30:11 +0000 (16:30 -0400)]
fmtconvert: fix and extend documentation for float_interleave()

7 years agoflvenc: store delay and last_ts per-stream.
Justin Ruggles [Thu, 20 Oct 2011 19:08:48 +0000 (15:08 -0400)]
flvenc: store delay and last_ts per-stream.

7 years agoh264: fix ppc/altivec build
Mans Rullgard [Fri, 21 Oct 2011 11:34:08 +0000 (12:34 +0100)]
h264: fix ppc/altivec build

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoEnable multithreding when decoding with libopenjpeg
Jean First [Fri, 30 Sep 2011 07:42:45 +0000 (09:42 +0200)]
Enable multithreding when decoding with libopenjpeg

Enable multithreding when decoding with libopenjpeg

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agoh264: mark some MC functions with av_always_inline instead of inline.
Ronald S. Bultje [Fri, 21 Oct 2011 06:36:23 +0000 (23:36 -0700)]
h264: mark some MC functions with av_always_inline instead of inline.

This actually causes them to be inlined, leading to a significant
speedup (1-1.5% in my measurements).

7 years agoH264: have hl_motion() and its callees take a chroma_idc argument.
Ronald S. Bultje [Fri, 21 Oct 2011 07:01:16 +0000 (00:01 -0700)]
H264: have hl_motion() and its callees take a chroma_idc argument.

7 years agoH264: change weight/biweight functions to take a height argument.
Ronald S. Bultje [Fri, 21 Oct 2011 07:00:39 +0000 (00:00 -0700)]
H264: change weight/biweight functions to take a height argument.

Neon parts by Mans Rullgard <mans@mansr.com>.

7 years agoSupport for lossless and inter H264 4:2:2.
Ronald S. Bultje [Wed, 12 Oct 2011 15:55:37 +0000 (08:55 -0700)]
Support for lossless and inter H264 4:2:2.

7 years agoh264: 4:2:2 intra decoding support
Baptiste Coudurier [Tue, 16 Aug 2011 15:05:44 +0000 (17:05 +0200)]
h264: 4:2:2 intra decoding support

Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agosws/pixfmt/pixdesc: add support for yuv420p9le/be.
Ronald S. Bultje [Fri, 21 Oct 2011 07:38:04 +0000 (00:38 -0700)]
sws/pixfmt/pixdesc: add support for yuv420p9le/be.

7 years agoRevert d1d421cbc0d13b08535f7fc08d179572ee352072: change to fate-lavfi-crop_scale.
Ronald S. Bultje [Fri, 21 Oct 2011 07:21:31 +0000 (00:21 -0700)]
Revert d1d421cbc0d13b08535f7fc08d179572ee352072: change to fate-lavfi-crop_scale.

7 years agovp8: fix up handling of segmentation_maps in reference frames.
Ronald S. Bultje [Tue, 18 Oct 2011 00:10:16 +0000 (17:10 -0700)]
vp8: fix up handling of segmentation_maps in reference frames.

Associate segmentation_map[] with reference frame, rather than
decoding instance. This fixes cases where the map would be free()'ed
on e.g. a size change in one thread, whereas the other thread was
still accessing it. Also, it fixes cases where threads overwrite data
that is still being referenced by the previous thread, who thinks that
it's part of the frame previously decoded by the next thread.

7 years agoswscale: prevent overflow in coefficient calculation.
Ronald S. Bultje [Thu, 20 Oct 2011 02:56:56 +0000 (19:56 -0700)]
swscale: prevent overflow in coefficient calculation.

7 years agolavc: hide private symbols.
Anton Khirnov [Mon, 17 Oct 2011 08:13:16 +0000 (10:13 +0200)]
lavc: hide private symbols.

Overhead as reported by rbelf-size goes from 90860 to 20204.

7 years agolavc: deprecate img_get_alpha_info().
Anton Khirnov [Mon, 17 Oct 2011 18:08:02 +0000 (20:08 +0200)]
lavc: deprecate img_get_alpha_info().

It's never been touched or used in any way since it was added in 2003
and only works for PIX_FMT_PAL8, which makes me conclude that nobody's
ever used it.

7 years agolavc: use avpriv_ prefix for ff_toupper4.
Anton Khirnov [Mon, 17 Oct 2011 08:12:51 +0000 (10:12 +0200)]
lavc: use avpriv_ prefix for ff_toupper4.

It's used in lavf.

7 years agolavc: use avpriv_ prefix for ff_copy_bits and align_put_bits.
Anton Khirnov [Mon, 17 Oct 2011 08:10:42 +0000 (10:10 +0200)]
lavc: use avpriv_ prefix for ff_copy_bits and align_put_bits.

They are used in lavf.

7 years agolavc: use avpriv_ prefix for ff_ac3_parse_header.
Anton Khirnov [Mon, 17 Oct 2011 08:04:12 +0000 (10:04 +0200)]
lavc: use avpriv_ prefix for ff_ac3_parse_header.

It's used in lavf.

7 years agolavc: use avpriv_ prefix for ff_frame_rate_tab.
Anton Khirnov [Mon, 17 Oct 2011 07:59:31 +0000 (09:59 +0200)]
lavc: use avpriv_ prefix for ff_frame_rate_tab.

It's used in lavf.

7 years agolavc: rename ff_find_start_code to avpriv_mpv_find_start_code
Anton Khirnov [Mon, 17 Oct 2011 07:51:55 +0000 (09:51 +0200)]
lavc: rename ff_find_start_code to avpriv_mpv_find_start_code

It's used in lavf.

7 years agolavc: use avpriv_ prefix for ff_split_xiph_headers.
Anton Khirnov [Mon, 17 Oct 2011 07:45:27 +0000 (09:45 +0200)]
lavc: use avpriv_ prefix for ff_split_xiph_headers.

It's used in lavf.

7 years agolavc: use avpriv_ prefix for ff_dirac_parse_sequence_header.
Anton Khirnov [Mon, 17 Oct 2011 07:45:27 +0000 (09:45 +0200)]
lavc: use avpriv_ prefix for ff_dirac_parse_sequence_header.

It's used in lavf.

7 years agolavc: use avpriv_ prefix for some dv symbols used in lavf.
Anton Khirnov [Mon, 17 Oct 2011 07:28:53 +0000 (09:28 +0200)]
lavc: use avpriv_ prefix for some dv symbols used in lavf.

Specifically, ff_dv_frame_profile and ff_dv_codec_profile.

7 years agolavc: use avpriv_ prefix for some flac symbols used in lavf.
Anton Khirnov [Mon, 17 Oct 2011 07:28:53 +0000 (09:28 +0200)]
lavc: use avpriv_ prefix for some flac symbols used in lavf.

Specifically, ff_flac_parse_streaminfo, ff_flac_is_extradata_valid and
ff_flac_parse_block_header

7 years agolavc: use avpriv_ prefix for some mpeg4audio symbols used in lavf.
Anton Khirnov [Mon, 17 Oct 2011 07:28:53 +0000 (09:28 +0200)]
lavc: use avpriv_ prefix for some mpeg4audio symbols used in lavf.

Specifically, ff_mpeg4audio_sample_rates, ff_mpeg4audio_get_config and
ff_copy_pce_data

7 years agolavc: use avpriv_ prefix for some mpegaudio symbols used in lavf.
Anton Khirnov [Mon, 17 Oct 2011 07:28:53 +0000 (09:28 +0200)]
lavc: use avpriv_ prefix for some mpegaudio symbols used in lavf.

Specifically, ff_mpa_freq_tab, ff_mpa_bitrate_tab, ff_mpa_decode_header,
ff_mpegaudio_decode_header.

7 years agolavc: use avpriv_ prefix for ff_aac_parse_header().
Anton Khirnov [Mon, 17 Oct 2011 07:22:04 +0000 (09:22 +0200)]
lavc: use avpriv_ prefix for ff_aac_parse_header().

It's used in lavf.

7 years agolavf: hide private symbols.
Anton Khirnov [Mon, 17 Oct 2011 07:14:04 +0000 (09:14 +0200)]
lavf: hide private symbols.

Overhead as reported by rbelf-size goes from 40147 to 20877.

7 years agolavf: use avpriv_ prefix for some dv functions.
Anton Khirnov [Mon, 17 Oct 2011 06:58:50 +0000 (08:58 +0200)]
lavf: use avpriv_ prefix for some dv functions.

They are used in libavdevice.

7 years agolavf: use avpriv_ prefix for ff_new_chapter().
Anton Khirnov [Mon, 17 Oct 2011 06:58:50 +0000 (08:58 +0200)]
lavf: use avpriv_ prefix for ff_new_chapter().

It's used in libavdevice.

7 years agoavcodec: add CODEC_CAP_DELAY note to avcodec_decode_audio3() documentation
Justin Ruggles [Sun, 25 Sep 2011 21:09:57 +0000 (17:09 -0400)]
avcodec: add CODEC_CAP_DELAY note to avcodec_decode_audio3() documentation

7 years agoavcodec: clarify the CODEC_CAP_DELAY note in avcodec_decode_video2()
Justin Ruggles [Sun, 25 Sep 2011 21:09:03 +0000 (17:09 -0400)]
avcodec: clarify the CODEC_CAP_DELAY note in avcodec_decode_video2()

7 years agoavcodec: clarify documentation of CODEC_CAP_DELAY
Justin Ruggles [Sun, 25 Sep 2011 21:05:34 +0000 (17:05 -0400)]
avcodec: clarify documentation of CODEC_CAP_DELAY

7 years agoshorten: fix end-of-stream decoding.
Justin Ruggles [Sat, 17 Sep 2011 01:34:42 +0000 (21:34 -0400)]
shorten: fix end-of-stream decoding.

enable CODEC_CAP_DELAY to flush any remaining frames in the buffer.

Stop decoding when the FN_QUIT command is found so that a trailing seek table
isn't decoded as a normal frame.

decode all channels in the same call to avcodec_decode_audio3() so that
decoding will not stop after the first channel of the last frame.

Updated FATE reference. More valid audio is now decoded.

7 years agoshorten: do not use block size to determine whether to read the header.
Justin Ruggles [Sat, 17 Sep 2011 00:54:11 +0000 (20:54 -0400)]
shorten: do not use block size to determine whether to read the header.

7 years agoshorten: check output buffer size before decoding
Justin Ruggles [Fri, 16 Sep 2011 22:01:28 +0000 (18:01 -0400)]
shorten: check output buffer size before decoding

7 years agoshorten: use av_clip_int16() for output sample clipping
Justin Ruggles [Fri, 16 Sep 2011 21:51:40 +0000 (17:51 -0400)]
shorten: use av_clip_int16() for output sample clipping

7 years agoshorten: use bytestream functions to decode the embedded WAVE header
Justin Ruggles [Fri, 16 Sep 2011 21:40:44 +0000 (17:40 -0400)]
shorten: use bytestream functions to decode the embedded WAVE header

7 years agoshorten: add some comments
Justin Ruggles [Fri, 16 Sep 2011 21:31:12 +0000 (17:31 -0400)]
shorten: add some comments

7 years agoshorten: merge decoding of FN_DIFF* subblocks into decode_subframe_lpc()
Justin Ruggles [Fri, 16 Sep 2011 19:55:27 +0000 (15:55 -0400)]
shorten: merge decoding of FN_DIFF* subblocks into decode_subframe_lpc()

7 years agocosmetics: remove some needless commented-out stuff
Justin Ruggles [Fri, 16 Sep 2011 19:39:51 +0000 (15:39 -0400)]
cosmetics: remove some needless commented-out stuff

7 years agoshorten: validate block size
Justin Ruggles [Fri, 16 Sep 2011 19:31:31 +0000 (15:31 -0400)]
shorten: validate block size

7 years agoshorten: move declaration of 'ret' to top of shorten_decode_frame()
Justin Ruggles [Fri, 16 Sep 2011 15:24:14 +0000 (11:24 -0400)]
shorten: move declaration of 'ret' to top of shorten_decode_frame()

7 years agoshorten: pass on error value from allocate_buffers() instead of returning -1
Justin Ruggles [Fri, 16 Sep 2011 15:22:37 +0000 (11:22 -0400)]
shorten: pass on error value from allocate_buffers() instead of returning -1

7 years agoshorten: check for realloc failure
Justin Ruggles [Thu, 15 Sep 2011 22:08:52 +0000 (18:08 -0400)]
shorten: check for realloc failure

7 years agoshorten: move decoding of prediction order and applying of global offset to
Justin Ruggles [Wed, 14 Sep 2011 23:16:14 +0000 (19:16 -0400)]
shorten: move decoding of prediction order and applying of global offset to
decode_subframe_lpc().

7 years agoshorten: only calculate output size when returning decoded samples, otherwise
Justin Ruggles [Wed, 14 Sep 2011 22:54:42 +0000 (18:54 -0400)]
shorten: only calculate output size when returning decoded samples, otherwise
just set data_size to zero.

7 years agocosmetics: reindent
Justin Ruggles [Thu, 15 Sep 2011 04:03:35 +0000 (00:03 -0400)]
cosmetics: reindent

7 years agoshorten: separate processing of audio commands from non-audio commands
Justin Ruggles [Wed, 14 Sep 2011 22:46:37 +0000 (18:46 -0400)]
shorten: separate processing of audio commands from non-audio commands

7 years agoshorten: skip some fields in the WAV header embedded in the shorten header.
Justin Ruggles [Wed, 14 Sep 2011 19:20:22 +0000 (15:20 -0400)]
shorten: skip some fields in the WAV header embedded in the shorten header.

fixes incorrect bitrate reporting and potential misreporting of the number of
channels.

7 years agoshorten: split reading of file header into a separate functions
Justin Ruggles [Wed, 14 Sep 2011 19:02:35 +0000 (15:02 -0400)]
shorten: split reading of file header into a separate functions

7 years agoavformat: do not require frame_size for Speex.
Justin Ruggles [Wed, 19 Oct 2011 18:00:06 +0000 (14:00 -0400)]
avformat: do not require frame_size for Speex.

Having it there forces decoding of a frame in order to get frame_size, but it
is not really needed for proper demuxing or decoding.

7 years agoogg/speex: set correct timestamp and duration for the first packet.
Justin Ruggles [Wed, 19 Oct 2011 17:28:12 +0000 (13:28 -0400)]
ogg/speex: set correct timestamp and duration for the first packet.

The first timestamp should be negative due to delay.
Also, do not set AVCodecContext.frame_size unnecessarily.

7 years agoflvenc: check packet duration in speex using timestamps
Justin Ruggles [Wed, 19 Oct 2011 17:20:15 +0000 (13:20 -0400)]
flvenc: check packet duration in speex using timestamps

Using AVCodecContext.frame_size is not reliable.

7 years agolibspeexenc: add libspeex encoder
Justin Ruggles [Tue, 18 Oct 2011 19:16:27 +0000 (12:16 -0700)]
libspeexenc: add libspeex encoder

7 years agoflvenc: adjust for negative DTS for all codecs, not just H.264
Justin Ruggles [Wed, 19 Oct 2011 17:16:01 +0000 (13:16 -0400)]
flvenc: adjust for negative DTS for all codecs, not just H.264

7 years agox86: Move some variable declarations below the appropriat #ifdef.
Diego Biurrun [Thu, 20 Oct 2011 13:43:16 +0000 (15:43 +0200)]
x86: Move some variable declarations below the appropriat #ifdef.

This avoids some unused variable warnings with YASM disabled.

7 years agox86: Fix linking of ProRes DSP ASM with YASM disabled.
Diego Biurrun [Thu, 20 Oct 2011 13:59:22 +0000 (15:59 +0200)]
x86: Fix linking of ProRes DSP ASM with YASM disabled.

7 years agoavcodec.h: Move G.729/G.723 CODEC_IDs to the correct section.
Diego Biurrun [Wed, 19 Oct 2011 21:12:56 +0000 (23:12 +0200)]
avcodec.h: Move G.729/G.723 CODEC_IDs to the correct section.

This is done conditional to the libavcodec version to avoid ABI breaks.

7 years agoOnly test-compile w32pthreads.h if W32THREADS are available.
Diego Biurrun [Wed, 19 Oct 2011 21:25:01 +0000 (23:25 +0200)]
Only test-compile w32pthreads.h if W32THREADS are available.

This fixes 'make checkheaders' on non-W32THREADS systems.

7 years agopresets: rename presets directory
Janne Grunau [Wed, 19 Oct 2011 06:22:23 +0000 (08:22 +0200)]
presets: rename presets directory

7 years agolavc: make avcodec_get_context_defaults3 "officially" public
Anton Khirnov [Sat, 8 Oct 2011 06:47:47 +0000 (08:47 +0200)]
lavc: make avcodec_get_context_defaults3 "officially" public

Deprecate avcodec_get_context_defaults/avcodec_get_context_defaults2

7 years agolavf: replace av_new_stream->avformat_new_stream part II.
Anton Khirnov [Sat, 18 Jun 2011 09:43:24 +0000 (11:43 +0200)]
lavf: replace av_new_stream->avformat_new_stream part II.

Manual replacements are done in this commit.

In many cases, the id is some constant made up number (e.g. 0 for video
and 1 for audio), which is then not used in the demuxer for anything.
Those ids are removed.

7 years agolavf,lavd: replace av_new_stream->avformat_new_stream part I.
Anton Khirnov [Sat, 18 Jun 2011 09:43:24 +0000 (11:43 +0200)]
lavf,lavd: replace av_new_stream->avformat_new_stream part I.

Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'

7 years agolavf: add avformat_new_stream as a replacement for av_new_stream.
Anton Khirnov [Sat, 18 Jun 2011 09:19:27 +0000 (11:19 +0200)]
lavf: add avformat_new_stream as a replacement for av_new_stream.

It takes a codec parameter, thus enabling codec-specific defaults.

7 years agoUse correct scaling table for bwd-pred MVs in second B-field
Mashiat Sarker Shakkhar [Wed, 19 Oct 2011 13:51:20 +0000 (18:51 +0500)]
Use correct scaling table for bwd-pred MVs in second B-field

When scaling backward predicted MVs in second B-field, the scaling table is
opposite of that for P field pictures; i.e. first field P table will be used as
second field B table and second field P table will be used as first field B
table. This is not documented in the spec, but exists in the ref. decoder.

This fixes SA10139.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoUt Video decoder
Kostya Shishkov [Sun, 16 Oct 2011 15:20:17 +0000 (17:20 +0200)]
Ut Video decoder

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoMakefile: change presets extension to .avpreset
Anton Khirnov [Wed, 19 Oct 2011 05:50:12 +0000 (07:50 +0200)]
Makefile: change presets extension to .avpreset

Fixes make install.

7 years agolavfi: add rgbtestsrc source, ported from MPlayer libmpcodecs
Stefano Sabatini [Mon, 11 Jul 2011 14:27:09 +0000 (16:27 +0200)]
lavfi: add rgbtestsrc source, ported from MPlayer libmpcodecs

The licence was changed from GPL to LGPL with explicit approval from
the original author.

See thread:
Subject: [FFmpeg-devel] [PATCH] lavfi: add rgbtestsrc source,
        ported from MPlayer libmpcodecs
Date: Mon, 11 Jul 2011 16:32:41 +0200

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavfi: add testsrc source
Stefano Sabatini [Sat, 18 Jun 2011 01:11:16 +0000 (03:11 +0200)]
lavfi: add testsrc source

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoAVOptions: add documentation.
Anton Khirnov [Mon, 5 Sep 2011 16:16:13 +0000 (18:16 +0200)]
AVOptions: add documentation.

7 years agopresets: update libx264 ffpresets
Anton Khirnov [Thu, 13 Oct 2011 06:21:45 +0000 (08:21 +0200)]
presets: update libx264 ffpresets

Use the native libx264 options and rename all the preset to use
the avpreset extension.

7 years agosunrast: Check for out of bounds reads
Laurent Aimar [Tue, 27 Sep 2011 22:15:32 +0000 (22:15 +0000)]
sunrast: Check for out of bounds reads

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
7 years agolavc: rename AV_ER_* options to AV_EF_* and rename AGGRESSIVE to BUFFER
Dustin Brody [Mon, 17 Oct 2011 01:22:03 +0000 (21:22 -0400)]
lavc: rename AV_ER_* options to AV_EF_* and rename AGGRESSIVE to BUFFER

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavc: replace API-bump-triggered AVCodecContext field change with shorter, non-confli...
Dustin Brody [Mon, 17 Oct 2011 01:22:02 +0000 (21:22 -0400)]
lavc: replace API-bump-triggered AVCodecContext field change with shorter, non-conflicting name

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoAdd libvpx presets.
Anton Khirnov [Tue, 11 Oct 2011 13:56:40 +0000 (15:56 +0200)]
Add libvpx presets.

Based on a patch by James Zern jzern AT google DOT com

7 years agodoc/avtools: add forgotten part to stream specifiers description
Anton Khirnov [Tue, 11 Oct 2011 13:17:36 +0000 (15:17 +0200)]
doc/avtools: add forgotten part to stream specifiers description

7 years agoswscale: prevent overflow during initialization
Ronald Bultje [Tue, 18 Oct 2011 01:53:04 +0000 (01:53 +0000)]
swscale: prevent overflow during initialization

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
7 years agog722: Add a fate test for the encoder
Martin Storsjö [Thu, 9 Sep 2010 07:02:32 +0000 (10:02 +0300)]
g722: Add a fate test for the encoder

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agofate: Add a target for creating a 16000 Hz mono synthetic audio file
Martin Storsjö [Mon, 17 Oct 2011 20:03:49 +0000 (23:03 +0300)]
fate: Add a target for creating a 16000 Hz mono synthetic audio file

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agomacosx: use the default surface on newer sdl
Luca Barbato [Mon, 17 Oct 2011 05:31:53 +0000 (22:31 -0700)]
macosx: use the default surface on newer sdl

SDL 1.2.14 works fine with default colorspace on macosx and seems
to have some issues with 24bit surfaces and resize in addition.

7 years agoavconv: add presets
Alexandra Khirnova [Mon, 10 Oct 2011 10:52:13 +0000 (11:52 +0100)]
avconv: add presets

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agortsp: Expose the flag options via private AVOptions for sdp and rtp, too
Martin Storsjö [Mon, 17 Oct 2011 17:07:56 +0000 (20:07 +0300)]
rtsp: Expose the flag options via private AVOptions for sdp and rtp, too

This allows setting the filter_src option for these demuxers, too,
which wasn't possible at all before (where the option only was set
via URL parameters for RTSP).

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Make the rtsp flags avoptions set via a define
Martin Storsjö [Mon, 17 Oct 2011 17:04:41 +0000 (20:04 +0300)]
rtsp: Make the rtsp flags avoptions set via a define

This helps sharing these options with the sdp and rtp demuxers.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortpenc: Set a default video codec
Martin Storsjö [Mon, 17 Oct 2011 18:11:07 +0000 (21:11 +0300)]
rtpenc: Set a default video codec

avconv doesn't map video streams to a muxer without specifying a
manual stream mapping if the default video codec is CODEC_ID_NONE.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavoptions: Fix av_opt_flag_is_set
Martin Storsjö [Mon, 17 Oct 2011 17:50:02 +0000 (20:50 +0300)]
avoptions: Fix av_opt_flag_is_set

With the changes in 3b3ea34655db02d9cd9ea1a4122e920a7fdec602,
"Remove all uses of deprecated AVOptions API", av_opt_flag_is_set
was broken, since it now uses av_opt_find, which doesn't return
named constants unless a unit to look for the constant in is given.

This broke enabling LATM encapsulated AAC output in RTP.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortp: Fix ff_rtp_get_payload_type
Martin Storsjö [Mon, 17 Oct 2011 17:24:54 +0000 (20:24 +0300)]
rtp: Fix ff_rtp_get_payload_type

It was broken in 3b3ea34655db02d9cd9ea1a4122e920a7fdec602
"Remove all uses of deprecated AVOptions API", where any
presence of a payload_type AVOption caused its value to
be returned, even if it wasn't set (and thus had the default
-1 value).

This caused the RTP muxer to be broken.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agodoc: Update the documentation on setting options for RTSP
Martin Storsjö [Wed, 12 Oct 2011 15:27:18 +0000 (18:27 +0300)]
doc: Update the documentation on setting options for RTSP

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Remove the separate filter_source variable
Martin Storsjö [Thu, 23 Jun 2011 22:55:00 +0000 (01:55 +0300)]
rtsp: Remove the separate filter_source variable

Read it as a flag from the flags field instead.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Accept options via private avoptions instead of URL options
Martin Storsjö [Thu, 23 Jun 2011 22:49:09 +0000 (01:49 +0300)]
rtsp: Accept options via private avoptions instead of URL options

Eventually, the old way of passing options by adding
stuff to the URL can be dropped.

This avoids having to tamper with the user-specified URL to
pass options on the transport mode. This also works better
with redirects, since the options don't need to be parsed out
from the URL.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Simplify AVOption definitions
Martin Storsjö [Thu, 13 Oct 2011 11:00:06 +0000 (14:00 +0300)]
rtsp: Simplify AVOption definitions

Use defines for shortening common parts, omit the .dbl named
initializer (since it's the first element in the union).

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Merge the AVOption lists
Martin Storsjö [Thu, 23 Jun 2011 23:04:54 +0000 (02:04 +0300)]
rtsp: Merge the AVOption lists

This eases adding options that are common for both. The
AV_OPT_FLAG_EN/DECODING_PARAM still indicates whether they belong
to the muxer or demuxer.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agolavfi: port libmpcodecs delogo filter
Stefano Sabatini [Wed, 10 Aug 2011 16:58:49 +0000 (18:58 +0200)]
lavfi: port libmpcodecs delogo filter

The ported filter supports named option parsing and more YUV formats.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavfi: port boxblur filter from libmpcodecs
Stefano Sabatini [Sat, 9 Jul 2011 16:13:10 +0000 (18:13 +0200)]
lavfi: port boxblur filter from libmpcodecs

With the following additions:
* support to gray format
* support to yuva420p format
* parametric luma/chroma/alpha radius
* consistency check on the radius values, avoid crashes with invalid values

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavfi: add negate filter
Stefano Sabatini [Sat, 28 May 2011 20:00:26 +0000 (22:00 +0200)]
lavfi: add negate filter

This filter is a simple wrapper around the LUT filter.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavfi: add LUT (LookUp Table) generic filters
Stefano Sabatini [Sat, 28 May 2011 19:51:03 +0000 (21:51 +0200)]
lavfi: add LUT (LookUp Table) generic filters

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoAVOptions: don't segfault on NULL parameter in av_set_options_string()
Anton Khirnov [Sat, 1 Oct 2011 12:42:53 +0000 (14:42 +0200)]
AVOptions: don't segfault on NULL parameter in av_set_options_string()

7 years agoavio: Check for invalid buffer length.
Alex Converse [Sat, 15 Oct 2011 01:27:59 +0000 (18:27 -0700)]
avio: Check for invalid buffer length.

7 years agompegenc/mpegtsenc: add muxrate private options.
Anton Khirnov [Sun, 9 Oct 2011 12:40:11 +0000 (14:40 +0200)]
mpegenc/mpegtsenc: add muxrate private options.

Deprecate AVFormatContext.mux_rate.

7 years agolavf: deprecate AVFormatContext.file_size
Anton Khirnov [Sun, 9 Oct 2011 12:12:14 +0000 (14:12 +0200)]
lavf: deprecate AVFormatContext.file_size

It's too unreliable to be useful. avio_size() should be called instead.