]> git.sesse.net Git - ffmpeg/log
ffmpeg
11 years agolavfi: make formats API private on next bump.
Anton Khirnov [Wed, 30 May 2012 08:12:55 +0000 (10:12 +0200)]
lavfi: make formats API private on next bump.

It is only useful inside filters and we don't allow user filters for
now.

11 years agoavplay: use buffersrc instead of custom input filter.
Anton Khirnov [Wed, 30 May 2012 06:53:08 +0000 (08:53 +0200)]
avplay: use buffersrc instead of custom input filter.

We do not allow user filters, so avtools shouldn't use them either.

It also allows to reuse buffer management code from avconv, thus
reducing duplication.

11 years agoavtools: move buffer management code from avconv to cmdutils.
Anton Khirnov [Wed, 30 May 2012 05:57:59 +0000 (07:57 +0200)]
avtools: move buffer management code from avconv to cmdutils.

It will be used by avplay.

11 years agoavconv: don't use InputStream in the buffer management code.
Anton Khirnov [Wed, 30 May 2012 05:32:43 +0000 (07:32 +0200)]
avconv: don't use InputStream in the buffer management code.

Use just the pointer to the head of the buffer pool.

This will allow sharing the code with avplay.

11 years agoavconv: fix exiting when max frames is reached.
Anton Khirnov [Mon, 4 Jun 2012 18:01:55 +0000 (20:01 +0200)]
avconv: fix exiting when max frames is reached.

frame number should never be strictly larger than max frames, so the
if() was never triggered.

11 years agompc8: fix maximum bands handling
Kostya Shishkov [Mon, 4 Jun 2012 06:01:34 +0000 (08:01 +0200)]
mpc8: fix maximum bands handling

In Musepack SV8 codec property tell the maximum nonzero band, but every
frame codes maximum band as a limit (i.e. strictly less than given value).
Synthesis also expects maximum nonzero band, so there's a need to convert
frame maximum band limit value.

11 years agoaacdec: Turn PS off when switching to stereo and turn it to implicit when switching...
Alex Converse [Tue, 22 May 2012 21:43:28 +0000 (14:43 -0700)]
aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono.

11 years agomovenc: Write chan atom for all audio tracks in mov mode movies.
Alex Converse [Thu, 31 May 2012 00:51:12 +0000 (17:51 -0700)]
movenc: Write chan atom for all audio tracks in mov mode movies.

11 years agompegtsenc: use avio_open_dyn_buf(), zero pointers after freeing
Jindřich Makovička [Sun, 3 Jun 2012 04:11:10 +0000 (06:11 +0200)]
mpegtsenc: use avio_open_dyn_buf(), zero pointers after freeing

Per suggestion by Michael Niedermayer.

Signed-off-by: Jindřich Makovička <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agodoc/avconv: add some details about the transcoding process.
Anton Khirnov [Mon, 4 Jun 2012 09:00:34 +0000 (11:00 +0200)]
doc/avconv: add some details about the transcoding process.

11 years agoavidec: make scale and rate unsigned.
Anton Khirnov [Mon, 4 Jun 2012 09:36:51 +0000 (11:36 +0200)]
avidec: make scale and rate unsigned.

The specs say they are unsigned 32bit integers.

11 years agoavconv: check output stream recording time before each frame returned from filters
Anton Khirnov [Sun, 3 Jun 2012 09:35:38 +0000 (11:35 +0200)]
avconv: check output stream recording time before each frame returned from filters

There may be multiple frames returned, so with just one check we can
write more than requested to the output.

11 years agoavconv: split selecting input file out of transcode().
Anton Khirnov [Fri, 1 Jun 2012 09:00:27 +0000 (11:00 +0200)]
avconv: split selecting input file out of transcode().

11 years agoavconv: split checking for active outputs out of transcode().
Anton Khirnov [Fri, 1 Jun 2012 08:44:11 +0000 (10:44 +0200)]
avconv: split checking for active outputs out of transcode().

11 years agoavfiltergraph: make some functions static.
Anton Khirnov [Wed, 16 May 2012 05:59:52 +0000 (07:59 +0200)]
avfiltergraph: make some functions static.

They are not used outside of avfiltergraph.c

11 years agolibrtmp: return AVERROR_UNKNOWN instead of -1.
Anton Khirnov [Sun, 3 Jun 2012 08:11:43 +0000 (10:11 +0200)]
librtmp: return AVERROR_UNKNOWN instead of -1.

11 years agolibrtmp: don't abuse a variable for two unrelated things.
Anton Khirnov [Sun, 3 Jun 2012 08:09:03 +0000 (10:09 +0200)]
librtmp: don't abuse a variable for two unrelated things.

11 years agolibrtmp: add rtmp_app and rtmp_playpath private options.
Anton Khirnov [Sun, 3 Jun 2012 08:07:54 +0000 (10:07 +0200)]
librtmp: add rtmp_app and rtmp_playpath private options.

This makes it easier to switch between native rtmp and librtmp.

11 years agobmv: add stricter checks for invalid decoded length
Kostya Shishkov [Fri, 1 Jun 2012 18:51:57 +0000 (20:51 +0200)]
bmv: add stricter checks for invalid decoded length

This makes decoder handle random data passed as BMV frame data.

11 years agoavpacket: fix duplicating side data.
Anton Khirnov [Sat, 2 Jun 2012 11:49:13 +0000 (13:49 +0200)]
avpacket: fix duplicating side data.

Use correct side data size instead of just zeroed field.

11 years agoflv: support stream text data as onTextData
Luca Barbato [Wed, 9 May 2012 21:35:58 +0000 (14:35 -0700)]
flv: support stream text data as onTextData

Adobe specifies onTextData as the standard message to use to deliver
text information.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agompegtsenc: Support LATM packetization for AAC
Jindrich Makovicka [Fri, 1 Jun 2012 08:42:48 +0000 (10:42 +0200)]
mpegtsenc: Support LATM packetization for AAC

This adds the avoption mpegts_flags and converts the existing
resend_headers option into a flag, keeping the old option as
fallback for now.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoadtsenc: Don't expose the muxer internals to the rest of lavf
Jindrich Makovicka [Tue, 29 May 2012 12:48:38 +0000 (14:48 +0200)]
adtsenc: Don't expose the muxer internals to the rest of lavf

This isn't required any longer, when the mpegts muxer uses it
as a proper chained muxer.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agompegtsenc: use AVFormatContext for AAC packetization
Jindrich Makovicka [Fri, 1 Jun 2012 10:42:20 +0000 (12:42 +0200)]
mpegtsenc: use AVFormatContext for AAC packetization

This removes the dependency on adts.c internals, and simplifies
adding other packetization formats.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agompegtsenc: use AVERROR() for return codes
Jindrich Makovicka [Fri, 1 Jun 2012 09:44:56 +0000 (11:44 +0200)]
mpegtsenc: use AVERROR() for return codes

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agohttp: Add the url_shutdown function for https, too
Martin Storsjö [Fri, 1 Jun 2012 13:36:20 +0000 (16:36 +0300)]
http: Add the url_shutdown function for https, too

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agohttp: Simplify code by removing a local variable
Martin Storsjö [Fri, 1 Jun 2012 13:30:01 +0000 (16:30 +0300)]
http: Simplify code by removing a local variable

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agohttp: Clear the old URLContext pointer when closed
Martin Storsjö [Fri, 1 Jun 2012 13:24:47 +0000 (16:24 +0300)]
http: Clear the old URLContext pointer when closed

This fixes issues with opening http urls that have authentication
or redirects, introduced in commit e999b641.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agotcp: Try enabling SO_REUSEADDR when listening
Martin Storsjö [Wed, 30 May 2012 14:37:51 +0000 (17:37 +0300)]
tcp: Try enabling SO_REUSEADDR when listening

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agotcp: Check the return values from bind and accept
Martin Storsjö [Wed, 30 May 2012 14:35:05 +0000 (17:35 +0300)]
tcp: Check the return values from bind and accept

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavisynth: Make sure the filename passed to avisynth is in the right code page
Oka Motofumi [Wed, 30 May 2012 17:14:43 +0000 (02:14 +0900)]
avisynth: Make sure the filename passed to avisynth is in the right code page

avisynth is a non-unicode application and cannot accept UTF-8
characters. Therefore, the input filename should be converted to
the correct code page that it expects.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agofate: Fix fate-ac3-fixed-encode for pre-ssse3 x86 machines
Michael Niedermayer [Wed, 30 May 2012 10:54:22 +0000 (12:54 +0200)]
fate: Fix fate-ac3-fixed-encode for pre-ssse3 x86 machines

The default mmxext and sse implementations of apply_window_int16
aren't bitexact.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Pass the proper return code of net IO operations
Samuel Pitoiset [Wed, 30 May 2012 09:52:11 +0000 (11:52 +0200)]
http: Pass the proper return code of net IO operations

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Add 'post_data', a new option which sets custom HTTP post data
Samuel Pitoiset [Wed, 30 May 2012 09:27:18 +0000 (11:27 +0200)]
http: Add 'post_data', a new option which sets custom HTTP post data

This allows doing http posts with a content-length header sent
in advance, avoiding chunked encoding.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolavfi: amix: check active input count before calling request_samples
Justin Ruggles [Wed, 30 May 2012 12:48:26 +0000 (08:48 -0400)]
lavfi: amix: check active input count before calling request_samples

fixes use of the amix filter with only 1 input

12 years agovp8: move block coeff arithcoder on stack.
Ronald S. Bultje [Tue, 29 May 2012 17:56:15 +0000 (10:56 -0700)]
vp8: move block coeff arithcoder on stack.

This prevents gcc from assuming that contents of it may have changed
between calls to vp56_range_get_prob(), thus preventing countless (and
unnecessary) movs. Decoding of sintel trailer goes from (avg+SG) 9.796
+/- 0.003 to 9.635 +/- 0.010.

12 years agomp3/ac3 probe: search for PES headers to prevent probing MPEG-PS as MP3.
Ronald S. Bultje [Wed, 2 May 2012 22:45:18 +0000 (15:45 -0700)]
mp3/ac3 probe: search for PES headers to prevent probing MPEG-PS as MP3.

12 years agopcm-mpeg: improve log message wording
Christian Schmidt [Wed, 30 May 2012 11:40:23 +0000 (11:40 +0000)]
pcm-mpeg: improve log message wording

We support every defined value for channel layout, bitrate and sample depth.
All other values are not unsupported, but reserved.
Update comments to say "are used" instead of "are known or exist".

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years agofate: add missing $(TARGET_PATH) to ac3-fixed-encode
Mans Rullgard [Wed, 30 May 2012 04:17:50 +0000 (05:17 +0100)]
fate: add missing $(TARGET_PATH) to ac3-fixed-encode

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agofate: fix md5sum replacement on some systems
Mans Rullgard [Wed, 30 May 2012 02:31:16 +0000 (03:31 +0100)]
fate: fix md5sum replacement on some systems

On systems where the 'md5' command is used, there is a conflict
with the md5() shell function in fate-run.sh.  Using the 'command'
keyword bypasses the shell function for correct behaviour.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoavprobe: correctly set the default formatter
Luca Barbato [Tue, 29 May 2012 20:14:10 +0000 (13:14 -0700)]
avprobe: correctly set the default formatter

12 years agolavr: add x86-optimized function for mixing 2 to 1 s16p with q8 coeffs
Justin Ruggles [Mon, 23 Apr 2012 19:10:35 +0000 (15:10 -0400)]
lavr: add x86-optimized function for mixing 2 to 1 s16p with q8 coeffs

12 years agolavr: add x86-optimized functions for mixing 2 to 1 s16p with float coeffs
Justin Ruggles [Mon, 23 Apr 2012 19:04:09 +0000 (15:04 -0400)]
lavr: add x86-optimized functions for mixing 2 to 1 s16p with float coeffs

12 years agolavr: add C functions for mixing 2 to 1 channels with s16p format
Justin Ruggles [Mon, 23 Apr 2012 18:50:22 +0000 (14:50 -0400)]
lavr: add C functions for mixing 2 to 1 channels with s16p format

12 years agoavprobe: move formatter functions in the context
Luca Barbato [Mon, 28 May 2012 02:35:10 +0000 (19:35 -0700)]
avprobe: move formatter functions in the context

Avoid possible clashes.

12 years agoavconv: extend -r to work on any input stream.
Anton Khirnov [Sat, 26 May 2012 14:52:58 +0000 (16:52 +0200)]
avconv: extend -r to work on any input stream.

This is done by automatically inserting a setpts filter.

12 years agodoc/avconv: expand documentation for the -s option.
Anton Khirnov [Sat, 26 May 2012 11:52:44 +0000 (13:52 +0200)]
doc/avconv: expand documentation for the -s option.

12 years agoavconv: don't print filters inserted by avconv in stream mappings.
Anton Khirnov [Sat, 26 May 2012 11:31:54 +0000 (13:31 +0200)]
avconv: don't print filters inserted by avconv in stream mappings.

12 years agoavconv: merge configuration code for complex and simple filters
Anton Khirnov [Sat, 26 May 2012 10:47:47 +0000 (12:47 +0200)]
avconv: merge configuration code for complex and simple filters

Some tests change because -s now inserts the scaler to the end instead
of beginning of the filtergraph.

12 years agoavconv: split configuring input filters out of configure_complex_filter
Anton Khirnov [Sat, 26 May 2012 09:18:21 +0000 (11:18 +0200)]
avconv: split configuring input filters out of configure_complex_filter

12 years agofate: fix acodec/vsynth tests for make 3.81
Mans Rullgard [Tue, 29 May 2012 08:49:44 +0000 (09:49 +0100)]
fate: fix acodec/vsynth tests for make 3.81

GNU make 3.81 applies pattern rules in declaration order rather than
by stem length as in 3.82.  This moves the more generic patterns above
the more specific ones such that they work with either make version.
Some of the vsynth patterns are also simplified a little.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agopcm_mpeg: fix number of consumed bytes to include the header.
Hendrik Leppkes [Tue, 10 Apr 2012 17:49:14 +0000 (19:49 +0200)]
pcm_mpeg: fix number of consumed bytes to include the header.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agoavfilter: include required header file avfilter.h in video.h
Janne Grunau [Tue, 29 May 2012 13:36:06 +0000 (15:36 +0200)]
avfilter: include required header file avfilter.h in video.h

12 years agox86: Avoid movs on BUTTERFLYPS when in AVX mode
Vitor Sessak [Fri, 11 May 2012 20:32:08 +0000 (22:32 +0200)]
x86: Avoid movs on BUTTERFLYPS when in AVX mode

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agox86: use new schema for ASM macros
Vitor Sessak [Sun, 27 May 2012 17:43:56 +0000 (17:43 +0000)]
x86: use new schema for ASM macros

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agofate: convert codec-regression.sh to makefile rules
Mans Rullgard [Fri, 18 May 2012 09:33:28 +0000 (10:33 +0100)]
fate: convert codec-regression.sh to makefile rules

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agofate: allow tests to specify unit size for psnr comparison
Mans Rullgard [Thu, 17 May 2012 18:14:17 +0000 (19:14 +0100)]
fate: allow tests to specify unit size for psnr comparison

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agofate: teach videogen/rotozoom to output a single raw video stream
Mans Rullgard [Thu, 17 May 2012 14:55:14 +0000 (15:55 +0100)]
fate: teach videogen/rotozoom to output a single raw video stream

This makes videogen/rotozoom output a raw video stream on stdout
if no output directory is specified.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agohttp: Add support for reusing the http socket for subsequent requests
Samuel Pitoiset [Mon, 28 May 2012 13:03:54 +0000 (15:03 +0200)]
http: Add support for reusing the http socket for subsequent requests

Introduce ff_http_do_new_request(), a new function which sends a new
HTTP request, reusing the existing connection to the server.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Add support for using persistent connections
Samuel Pitoiset [Mon, 28 May 2012 13:03:19 +0000 (15:03 +0200)]
http: Add support for using persistent connections

Add a new AVOption 'multiple_requests', which indicates if we want
to use persistent connections (ie. Connection: keep-alive).

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoAVOptions: fix the value printed in out of range error message.
Anton Khirnov [Mon, 28 May 2012 05:27:15 +0000 (07:27 +0200)]
AVOptions: fix the value printed in out of range error message.

12 years agoavprobe: restore pseudo-INI old style format for compatibility.
Anton Khirnov [Sat, 26 May 2012 06:54:25 +0000 (08:54 +0200)]
avprobe: restore pseudo-INI old style format for compatibility.

12 years agoavprobe: fix formatting.
Anton Khirnov [Sat, 26 May 2012 06:52:19 +0000 (08:52 +0200)]
avprobe: fix formatting.

12 years agolog: make colored output more colorful.
Anton Khirnov [Sat, 26 May 2012 06:24:14 +0000 (08:24 +0200)]
log: make colored output more colorful.

Green for verbose, cyan for debug.

12 years agortsp: Check for dynamic payload handlers if no static payload mapping was found
Martin Storsjö [Thu, 8 Dec 2011 13:19:58 +0000 (15:19 +0200)]
rtsp: Check for dynamic payload handlers if no static payload mapping was found

Some systems abuse the static payload types 35 or 36 (which
according to IANA are unassigned) for H264.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoopt: Add av_opt_set_bin()
Samuel Pitoiset [Fri, 25 May 2012 10:32:39 +0000 (12:32 +0200)]
opt: Add av_opt_set_bin()

Introduce a new function to set binary data through AVOption,
avoiding having to convert the binary data to a string inbetween.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavconv: Display the error returned by avformat_write_header
Martin Storsjö [Fri, 25 May 2012 21:55:56 +0000 (00:55 +0300)]
avconv: Display the error returned by avformat_write_header

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpenc_chain: Return an error code instead of just a plain pointer
Martin Storsjö [Fri, 25 May 2012 19:26:00 +0000 (22:26 +0300)]
rtpenc_chain: Return an error code instead of just a plain pointer

Also check the return value in sapenc.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpenc_chain: Free the URLContext on failure
Martin Storsjö [Fri, 25 May 2012 21:40:54 +0000 (00:40 +0300)]
rtpenc_chain: Free the URLContext on failure

If an URLContext is passed in, its ownership is given to this
function, and is either owned by the returned AVFormatContext
on a successful return, or freed on failure.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpenc: Expose the ssrc as an avoption
Martin Storsjö [Fri, 25 May 2012 21:18:01 +0000 (00:18 +0300)]
rtpenc: Expose the ssrc as an avoption

This allows the caller to set it, and allows the caller to query
what it was set to.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavprobe: display the codec profile in show_stream()
Christian Schmidt [Fri, 25 May 2012 22:34:12 +0000 (15:34 -0700)]
avprobe: display the codec profile in show_stream()

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoavprobe: fix function prototype
Luca Barbato [Fri, 25 May 2012 22:19:50 +0000 (15:19 -0700)]
avprobe: fix function prototype

Make opt_output_format return the correct value.

12 years agocosmetics: Fix indentation
Martin Storsjö [Fri, 25 May 2012 19:16:06 +0000 (22:16 +0300)]
cosmetics: Fix indentation

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavprobe: changelog entry
Luca Barbato [Fri, 25 May 2012 19:58:58 +0000 (12:58 -0700)]
avprobe: changelog entry

12 years agoavprobe: update documentation
Luca Barbato [Fri, 25 May 2012 19:57:36 +0000 (12:57 -0700)]
avprobe: update documentation

Update the documentation according to the latest changes

12 years agoavprobe: provide JSON output
Luca Barbato [Thu, 24 May 2012 19:22:29 +0000 (12:22 -0700)]
avprobe: provide JSON output

JSON usage is quite widespread.

12 years agoavprobe: output proper INI format
Luca Barbato [Fri, 18 May 2012 01:02:57 +0000 (18:02 -0700)]
avprobe: output proper INI format

Make the output valid INI serialization.

12 years agoavprobe: improve formatting
Luca Barbato [Fri, 25 May 2012 18:47:06 +0000 (11:47 -0700)]
avprobe: improve formatting

Do not use decimals if not needed.

12 years agortmp: fix url parsing
Luca Barbato [Tue, 15 May 2012 00:24:27 +0000 (17:24 -0700)]
rtmp: fix url parsing

The application component can have a subcomponent to specify the
application instance even if it doesn't have a ":" in the playpath.

12 years agofate: document TARGET_EXEC and its usage
Luca Barbato [Mon, 14 May 2012 22:44:30 +0000 (15:44 -0700)]
fate: document TARGET_EXEC and its usage

TARGET_EXEC allows running FATE on simulators, remote targets and
memory checkers. Also document a known issue with Wine and mixed
Unix/Windows line ending.

12 years agomovenc: Don't write the 'wave' atom or its child 'enda' for lpcm audio.
Alex Converse [Wed, 23 May 2012 18:32:52 +0000 (11:32 -0700)]
movenc: Don't write the 'wave' atom or its child 'enda' for lpcm audio.

It's left over from stsd v0. QuickTime 7 no longer writes 'wave' or 'enda'
when 'lpcm' is the audio tag.

12 years agoimc: some cosmetics
Kostya Shishkov [Tue, 22 May 2012 17:45:00 +0000 (19:45 +0200)]
imc: some cosmetics

12 years agortmp: Pass the proper return code in rtmp_handshake
Samuel Pitoiset [Thu, 24 May 2012 11:48:42 +0000 (13:48 +0200)]
rtmp: Pass the proper return code in rtmp_handshake

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortmp: Check return codes of net IO operations
Samuel Pitoiset [Thu, 24 May 2012 11:48:25 +0000 (13:48 +0200)]
rtmp: Check return codes of net IO operations

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortmp: Return a proper error code instead of -1
Samuel Pitoiset [Wed, 23 May 2012 16:55:52 +0000 (18:55 +0200)]
rtmp: Return a proper error code instead of -1

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortmp: Check malloc calls
Samuel Pitoiset [Wed, 23 May 2012 16:55:34 +0000 (18:55 +0200)]
rtmp: Check malloc calls

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortmp: Check ff_rtmp_packet_create calls
Samuel Pitoiset [Wed, 23 May 2012 20:45:03 +0000 (22:45 +0200)]
rtmp: Check ff_rtmp_packet_create calls

Check malloc calls used by ff_rtmp_packet_create, unify error
handling and pass on error codes.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolavfi: add audio mix filter
Justin Ruggles [Tue, 22 May 2012 01:27:59 +0000 (21:27 -0400)]
lavfi: add audio mix filter

12 years agoflvdec: Make sure sample_rate is set to the updated value
Martin Storsjö [Wed, 23 May 2012 13:28:25 +0000 (16:28 +0300)]
flvdec: Make sure sample_rate is set to the updated value

The sample_rate variable is used for checks for audio format
changes at the end of the function.

This fixes cases where the sample rate was set from the codec
id by flv_set_audio_codec (as for nellymoser 8 kHz/16 kHz),
so the value set to last_sample_rate wasn't equal to sample_rate
at this point. This caused the demuxer otherwise reports a spurious
change to 5512 Hz and back to the correct one.

Updating channels in the same way is only done for consistency.
Currently, flv_set_audio_codec doesn't update that value.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agotqi: Pass errors from the MB decoder
Michael Niedermayer [Mon, 19 Dec 2011 03:13:37 +0000 (04:13 +0100)]
tqi: Pass errors from the MB decoder

This silences some valgrind warnings.
CC: libav-stable@libav.org
Fixes second half of http://ffmpeg.org/trac/ffmpeg/ticket/794
Bug found by: Oana Stratulat

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
(cherry picked from commit f85334f58e1286287d0547a49fa9c93b40cbf48f)

12 years agoos_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2
Dave Yeo [Wed, 23 May 2012 20:34:13 +0000 (13:34 -0700)]
os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Add support for reading http POST reply headers
Samuel Pitoiset [Mon, 21 May 2012 09:27:10 +0000 (11:27 +0200)]
http: Add support for reading http POST reply headers

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agohttp: Add http_shutdown() for ending writing of posts
Samuel Pitoiset [Mon, 21 May 2012 09:26:40 +0000 (11:26 +0200)]
http: Add http_shutdown() for ending writing of posts

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agotcp: Allow signalling end of reading/writing
Samuel Pitoiset [Mon, 21 May 2012 09:24:55 +0000 (11:24 +0200)]
tcp: Allow signalling end of reading/writing

tcp_shutdown() isn't needed at the moment, but is added for
consistency to explain how the function is supposed to be used.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoavio: Add a function for signalling end of reading/writing
Samuel Pitoiset [Mon, 21 May 2012 09:24:54 +0000 (11:24 +0200)]
avio: Add a function for signalling end of reading/writing

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolavfi: fix comment, audio is supported now.
Anton Khirnov [Mon, 21 May 2012 17:33:35 +0000 (19:33 +0200)]
lavfi: fix comment, audio is supported now.

12 years agolavfi: fix incorrect comment.
Anton Khirnov [Mon, 21 May 2012 17:30:07 +0000 (19:30 +0200)]
lavfi: fix incorrect comment.

poll_frame()/request_frame() are used for audio too.

12 years agolavfi: remove avfilter_null_* from public API on next bump.
Anton Khirnov [Sat, 19 May 2012 08:37:56 +0000 (10:37 +0200)]
lavfi: remove avfilter_null_* from public API on next bump.

Those functions are only useful inside filters. It is better to not
support user filters until the API is more stable.

12 years agolavfi: remove avfilter_default_* from public API on next bump.
Anton Khirnov [Sat, 19 May 2012 08:37:56 +0000 (10:37 +0200)]
lavfi: remove avfilter_default_* from public API on next bump.

Those functions are only useful inside filters. It is better to not
support user filters until the API is more stable.

12 years agolavfi: deprecate default config_props() callback and refactor avfilter_config_links()
Mina Nagy Zaki [Thu, 4 Aug 2011 12:47:00 +0000 (15:47 +0300)]
lavfi: deprecate default config_props() callback and refactor avfilter_config_links()

Link properties have to be checked after config_props() is called to
make sure everything is sane, so the default config_props() for output
links was redundant.

Remove now empty defaults.c

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