ffmpeg.git
6 years agoavf_concat: fix silence duration.
Nicolas George [Sat, 28 Jul 2012 12:57:52 +0000 (14:57 +0200)]
avf_concat: fix silence duration.

concat_in.pts starts at 0 for each segment, so the duration
of the silence was too long, except at the first stitch.

6 years agoasrc_flite: do not crash on multiple instances.
Nicolas George [Sat, 28 Jul 2012 09:53:18 +0000 (11:53 +0200)]
asrc_flite: do not crash on multiple instances.

The voice register functions return the same voice structure
upon multiple registration. It causes us two problems:

If we delete a voice without deregistering it, it leaves
a dangling pointer inside the library.

If we delete or unregister a voice at uninit, it may still
be in use by another instance of the filter.

The second problem is solved by keeping an usage counter inside
asrc_flite. This is not thread-safe, but neither is flite itself.

6 years agodoc/general: add missing device support information
Stefano Sabatini [Sat, 28 Jul 2012 09:08:42 +0000 (11:08 +0200)]
doc/general: add missing device support information

6 years agoavf_concat: fix min value for v option.
Nicolas George [Sat, 28 Jul 2012 09:48:14 +0000 (11:48 +0200)]
avf_concat: fix min value for v option.

6 years agolavfi: add flite audio source
Stefano Sabatini [Sun, 21 Aug 2011 00:29:33 +0000 (02:29 +0200)]
lavfi: add flite audio source

6 years agodoc/filters: itemize movie examples
Stefano Sabatini [Mon, 23 Jul 2012 21:30:08 +0000 (23:30 +0200)]
doc/filters: itemize movie examples

6 years agolavfi: move movie and amovie to a "multimedia sources" section
Stefano Sabatini [Mon, 23 Jul 2012 21:21:33 +0000 (23:21 +0200)]
lavfi: move movie and amovie to a "multimedia sources" section

Since the recent changes, movie and amovie are able to deal with more
than one type of stream, so they should be categorized as "multimedia
sources" rather than audio/video sources.

6 years agolavu/bprint: extend/clarify documentation for av_bprint_init() size_max value
Stefano Sabatini [Thu, 26 Jul 2012 19:37:11 +0000 (21:37 +0200)]
lavu/bprint: extend/clarify documentation for av_bprint_init() size_max value

Also define AV_BPRINT_SIZE_* macros before av_bprint_init() declaration,
and mention them in the av_bprint_init() doxy.

6 years agompegaudiodec: switch to av_assert
Michael Niedermayer [Sat, 28 Jul 2012 02:25:02 +0000 (04:25 +0200)]
mpegaudiodec: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodxva2: Fix some warnings about incompatible pointer type
jamal [Fri, 27 Jul 2012 08:23:13 +0000 (05:23 -0300)]
dxva2: Fix some warnings about incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodvdsubenc: switch to av_assert
Michael Niedermayer [Fri, 27 Jul 2012 23:18:04 +0000 (01:18 +0200)]
dvdsubenc: switch to av_assert

we use av_assert0() because the previous code unconditionally
enabled the assert.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavio: Document that write_packet() is not allowed to change its input
Michael Niedermayer [Fri, 27 Jul 2012 23:15:48 +0000 (01:15 +0200)]
avio: Document that write_packet() is not allowed to change its input

Found-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 27 Jul 2012 21:42:19 +0000 (23:42 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  proresdsp: port x86 assembly to cpuflags.
  lavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro
  lavfi: better channel layout negotiation
  alac: check for truncated packets
  alac: reverse lpc coeff order, simplify filter
  lavr: add x86-optimized mixing functions
  x86: add support for fmaddps fma4 instruction with abstraction to avx/sse
  tscc2: fix typo in array index
  build: use COMPILE template for HOSTOBJS
  build: do full flag handling for all compiler-type tools
  eval: fix printing of NaN in eval fate test.
  build: Rename aandct component to more descriptive aandcttables
  mpegaudio: bury inline asm under HAVE_INLINE_ASM.
  x86inc: automatically insert vzeroupper for YMM functions.
  rtmp: Check the buffer length of ping packets
  rtmp: Allow having more unknown data at the end of a chunk size packet without failing
  rtmp: Prevent reading outside of an allocate buffer when receiving server bandwidth packets

Conflicts:
Makefile
configure
libavcodec/x86/proresdsp.asm
libavutil/eval.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoimgutils: Fix warnings about incompatible pointer type and discarded qualifiers
jamal [Fri, 27 Jul 2012 08:23:15 +0000 (05:23 -0300)]
imgutils: Fix warnings about incompatible pointer type and discarded qualifiers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoproresdsp: port x86 assembly to cpuflags.
Ronald S. Bultje [Fri, 27 Jul 2012 03:38:27 +0000 (20:38 -0700)]
proresdsp: port x86 assembly to cpuflags.

6 years agoFix aiff demuxer dependencies.
Carl Eugen Hoyos [Fri, 27 Jul 2012 18:42:35 +0000 (20:42 +0200)]
Fix aiff demuxer dependencies.

6 years agolavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro
Justin Ruggles [Tue, 26 Jun 2012 20:50:10 +0000 (16:50 -0400)]
lavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro

Removes a false dependency on existing contents of the 2nd dst register,
giving better performance for OOE.

6 years agolavfi: better channel layout negotiation
Justin Ruggles [Sat, 14 Jul 2012 00:22:08 +0000 (20:22 -0400)]
lavfi: better channel layout negotiation

Allow substitution of channel pairs in the input for nearby channel pairs in
the output in order to get a closer match. Also weigh LFE channel mismatch
differently to favor matching the same layout without LFE over one less
channel with LFE.

6 years agoalac: check for truncated packets
Justin Ruggles [Fri, 20 Jul 2012 00:04:40 +0000 (20:04 -0400)]
alac: check for truncated packets

This will give a clearer error message when the error is caused by a
truncated packet.

6 years agoalac: reverse lpc coeff order, simplify filter
Justin Ruggles [Thu, 19 Jul 2012 18:08:22 +0000 (14:08 -0400)]
alac: reverse lpc coeff order, simplify filter

Reversing the lpc coefficient order simplifies indexing in the filter.

6 years agodwt: Fix several warnings about incompatible pointer type
jamal [Fri, 27 Jul 2012 08:23:17 +0000 (05:23 -0300)]
dwt: Fix several warnings about incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavr: add x86-optimized mixing functions
Justin Ruggles [Mon, 7 May 2012 13:56:33 +0000 (09:56 -0400)]
lavr: add x86-optimized mixing functions

Adds optimized functions for mixing 3 through 8 input channels to 1 and 2
output channels in fltp or s16p format with flt coeffs.

6 years agox86: add support for fmaddps fma4 instruction with abstraction to avx/sse
Justin Ruggles [Tue, 19 Jun 2012 03:39:14 +0000 (23:39 -0400)]
x86: add support for fmaddps fma4 instruction with abstraction to avx/sse

6 years agovf_alphamerge: Fix reversed conditional
Steven Robertson [Fri, 27 Jul 2012 12:00:04 +0000 (14:00 +0200)]
vf_alphamerge: Fix reversed conditional

Reviewed-by: Nicolas George
6 years agoavutil: support 50 and 60 frame rates in timecode api
Matthieu Bouron [Sun, 27 May 2012 12:21:39 +0000 (14:21 +0200)]
avutil: support 50 and 60 frame rates in timecode api

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomxfdec: fix off by one error in d10 aes3 decoding
Marton Balint [Wed, 18 Jul 2012 23:23:20 +0000 (01:23 +0200)]
mxfdec: fix off by one error in d10 aes3 decoding

Without this fix the last sample was missing from the packet.

Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoaviobuf: Fix warning about discarded qualifier
jamal [Fri, 27 Jul 2012 08:23:23 +0000 (05:23 -0300)]
aviobuf: Fix warning about discarded qualifier

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agozmbv: Fix warning about discarded qualifier
Michael Niedermayer [Fri, 27 Jul 2012 10:43:15 +0000 (12:43 +0200)]
zmbv: Fix warning about discarded qualifier

Based on patch by: jamal <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffv1: Fix warnings about incompatible pointer type and discarded qualifiers
jamal [Fri, 27 Jul 2012 08:23:16 +0000 (05:23 -0300)]
ffv1: Fix warnings about incompatible pointer type and discarded qualifiers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agotscc2: fix typo in array index
Kostya Shishkov [Thu, 26 Jul 2012 17:42:22 +0000 (19:42 +0200)]
tscc2: fix typo in array index

6 years agobuild: use COMPILE template for HOSTOBJS
Mans Rullgard [Fri, 20 Jul 2012 10:01:19 +0000 (11:01 +0100)]
build: use COMPILE template for HOSTOBJS

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agobuild: do full flag handling for all compiler-type tools
Mans Rullgard [Fri, 20 Jul 2012 12:43:07 +0000 (13:43 +0100)]
build: do full flag handling for all compiler-type tools

This adds a full identification probe of CC, AS, LD and HOSTCC,
and sets up correct flags and dependency tracking for each.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoeval: fix printing of NaN in eval fate test.
Ronald S. Bultje [Thu, 26 Jul 2012 03:42:04 +0000 (20:42 -0700)]
eval: fix printing of NaN in eval fate test.

This fixes "make fate-eval" on MSVC builds. Without this, the test outputs
"-1.#NaN" instead of "nan" on MSVS 2010.

6 years agobuild: Rename aandct component to more descriptive aandcttables
Diego Biurrun [Tue, 24 Jul 2012 17:16:29 +0000 (19:16 +0200)]
build: Rename aandct component to more descriptive aandcttables

6 years agofate: change fate-suite rsync server.
Michael Niedermayer [Thu, 26 Jul 2012 21:01:25 +0000 (23:01 +0200)]
fate: change fate-suite rsync server.

there are some technical problems with fate.ffmpeg.org
thus split the subdomain between fate-suite and fate
fate-suite is now (temporary) provided by our main server

until fate-suite.ffmpeg.org is setup to point somewhere
we use fate-suite.avcodec.org

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agompegaudio: bury inline asm under HAVE_INLINE_ASM.
Ronald S. Bultje [Thu, 26 Jul 2012 03:32:58 +0000 (20:32 -0700)]
mpegaudio: bury inline asm under HAVE_INLINE_ASM.

6 years agox86inc: automatically insert vzeroupper for YMM functions.
Ronald S. Bultje [Thu, 26 Jul 2012 03:52:16 +0000 (20:52 -0700)]
x86inc: automatically insert vzeroupper for YMM functions.

6 years agoSubViewer demuxer and decoder.
Clément Bœsch [Fri, 13 Jul 2012 21:42:35 +0000 (23:42 +0200)]
SubViewer demuxer and decoder.

6 years agolavc/rt: small wording fix in a comment.
Clément Bœsch [Thu, 19 Jul 2012 19:16:11 +0000 (21:16 +0200)]
lavc/rt: small wording fix in a comment.

6 years agortmp: Check the buffer length of ping packets
Samuel Pitoiset [Thu, 26 Jul 2012 18:45:42 +0000 (20:45 +0200)]
rtmp: Check the buffer length of ping packets

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Allow having more unknown data at the end of a chunk size packet without failing
Samuel Pitoiset [Thu, 26 Jul 2012 12:05:58 +0000 (14:05 +0200)]
rtmp: Allow having more unknown data at the end of a chunk size packet without failing

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Prevent reading outside of an allocate buffer when receiving server bandwidth...
Samuel Pitoiset [Thu, 26 Jul 2012 12:05:18 +0000 (14:05 +0200)]
rtmp: Prevent reading outside of an allocate buffer when receiving server bandwidth packets

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 26 Jul 2012 19:36:03 +0000 (21:36 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  libopenjpeg: support YUV and deep RGB pixel formats
  Fix typo in v410 decoder.
  vf_yadif: unset cur_buf on the input link.
  vf_overlay: ensure the overlay frame does not get leaked.
  vf_overlay: prevent premature freeing of cur_buf
  Support urlencoded http authentication credentials
  rtmp: Return an error when the client bandwidth is incorrect
  rtmp: Return proper error code in handle_server_bw
  rtmp: Return proper error code in handle_client_bw
  rtmp: Return proper error codes in handle_chunk_size
  lavr: x86: add missing vzeroupper in ff_mix_1_to_2_fltp_flt()
  vp8: Replace x*155/100 by x*101581>>16.
  vp3: don't use calls to inline asm in yasm code.
  x86/dsputil: put inline asm under HAVE_INLINE_ASM.
  dsputil_mmx: fix incorrect assembly code
  rtmp: Factorize the code by adding handle_invoke
  rtmp: Factorize the code by adding handle_chunk_size
  rtmp: Factorize the code by adding handle_ping
  rtmp: Factorize the code by adding handle_client_bw
  rtmp: Factorize the code by adding handle_server_bw

Conflicts:
libavcodec/libopenjpegdec.c
libavcodec/x86/dsputil_mmx.c
libavfilter/vf_overlay.c
libavformat/Makefile
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoChangelog: put entries lost in 2cb4d516549526b5e17e941f6d2375a2c501ade6 back
Michael Niedermayer [Thu, 26 Jul 2012 18:37:05 +0000 (20:37 +0200)]
Changelog: put entries lost in 2cb4d516549526b5e17e941f6d2375a2c501ade6 back

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: doxyfy some comments and mention the timebase used in various timestamp fields.
Michael Niedermayer [Thu, 26 Jul 2012 15:58:26 +0000 (17:58 +0200)]
ffmpeg: doxyfy some comments and mention the timebase used in various timestamp fields.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: move decoded_frame->pts computation together
Michael Niedermayer [Thu, 26 Jul 2012 15:57:36 +0000 (17:57 +0200)]
ffmpeg: move decoded_frame->pts computation together

This clarifies the code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: Fix rounding errors in decoded_frame->pts computation
Michael Niedermayer [Thu, 26 Jul 2012 15:56:52 +0000 (17:56 +0200)]
ffmpeg: Fix rounding errors in decoded_frame->pts computation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: fix assumed decoded_frame->pts timebase
Michael Niedermayer [Thu, 26 Jul 2012 15:56:07 +0000 (17:56 +0200)]
ffmpeg: fix assumed decoded_frame->pts timebase

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: reset decoded_frame->pts after rescaling.
Michael Niedermayer [Thu, 26 Jul 2012 15:51:56 +0000 (17:51 +0200)]
ffmpeg: reset decoded_frame->pts after rescaling.

This ensures its not used afterwards.
This commit should not change anything as it should not have been used afterwards.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agompc8: Initialize AVFrame properly
Michael Niedermayer [Thu, 26 Jul 2012 15:45:44 +0000 (17:45 +0200)]
mpc8: Initialize AVFrame properly

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agompc7: Initialize AVFrame properly
Michael Niedermayer [Thu, 26 Jul 2012 15:42:08 +0000 (17:42 +0200)]
mpc7: Initialize AVFrame properly

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: fix units of next_?ts in debug printing routine.
Michael Niedermayer [Thu, 26 Jul 2012 15:12:07 +0000 (17:12 +0200)]
ffmpeg: fix units of next_?ts in debug printing routine.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264_cabac: switch to av_assert
Michael Niedermayer [Thu, 26 Jul 2012 14:33:39 +0000 (16:33 +0200)]
h264_cabac: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264_cabac: switch to av_assert
Michael Niedermayer [Thu, 26 Jul 2012 14:33:17 +0000 (16:33 +0200)]
h264_cabac: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibopenjpeg: support YUV and deep RGB pixel formats
Michael Bradshaw [Tue, 24 Jul 2012 17:43:06 +0000 (19:43 +0200)]
libopenjpeg: support YUV and deep RGB pixel formats

Based on FFmpeg version from
commit 3275981207e30e140cffaea334ac390f1a04266a

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoFix typo in v410 decoder.
Carl Eugen Hoyos [Mon, 23 Jul 2012 22:45:17 +0000 (18:45 -0400)]
Fix typo in v410 decoder.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agolavfi/af_amerge: avfilter_copy_buffer_ref_props will overwrite output pts
William Yu [Thu, 26 Jul 2012 08:05:58 +0000 (10:05 +0200)]
lavfi/af_amerge: avfilter_copy_buffer_ref_props will overwrite output pts

6 years agoomadec: switch to AVSTREAM_PARSE_FULL_RAW
Michael Niedermayer [Thu, 26 Jul 2012 01:30:35 +0000 (03:30 +0200)]
omadec: switch to AVSTREAM_PARSE_FULL_RAW

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoloasdec: switch to AVSTREAM_PARSE_FULL_RAW
Michael Niedermayer [Thu, 26 Jul 2012 01:30:20 +0000 (03:30 +0200)]
loasdec: switch to AVSTREAM_PARSE_FULL_RAW

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoaacdec: switch to AVSTREAM_PARSE_FULL_RAW
Michael Niedermayer [Thu, 26 Jul 2012 01:29:59 +0000 (03:29 +0200)]
aacdec: switch to AVSTREAM_PARSE_FULL_RAW

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agohls: replace probsize=0 by noheader flag removial.
Michael Niedermayer [Thu, 26 Jul 2012 00:52:08 +0000 (02:52 +0200)]
hls: replace probsize=0 by noheader flag removial.

This fixes h264 timestamps in hls
Fixes ticket1572

Tested-by: crtmpserver
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoff_add_index_entry: reject AV_NOPTS_VALUE
Michael Niedermayer [Tue, 24 Jul 2012 16:10:48 +0000 (18:10 +0200)]
ff_add_index_entry: reject AV_NOPTS_VALUE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf: move generic index generation code to a later point
Michael Niedermayer [Tue, 24 Jul 2012 16:00:11 +0000 (18:00 +0200)]
lavf: move generic index generation code to a later point

By moving it to a later point relative and unknown timestamps
are more likely to have been corrected

similar patch reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Conflicts:

libavformat/utils.c

6 years agoparse_packet: use pkt.pos always instead of the avparser offset.
Michael Niedermayer [Thu, 26 Jul 2012 00:20:59 +0000 (02:20 +0200)]
parse_packet: use pkt.pos always instead of the avparser offset.

This is more correct and will be needed when the code is moved to
a later point.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agowav: switch to AVSTREAM_PARSE_FULL_RAW
Michael Niedermayer [Thu, 26 Jul 2012 00:12:35 +0000 (02:12 +0200)]
wav: switch to AVSTREAM_PARSE_FULL_RAW

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoff_raw_audio_read_header: mark as AVSTREAM_PARSE_FULL_RAW
Michael Niedermayer [Thu, 26 Jul 2012 00:11:06 +0000 (02:11 +0200)]
ff_raw_audio_read_header: mark as AVSTREAM_PARSE_FULL_RAW

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoflacdec: mark as AVSTREAM_PARSE_FULL_RAW
Michael Niedermayer [Tue, 24 Jul 2012 15:39:54 +0000 (17:39 +0200)]
flacdec: mark as AVSTREAM_PARSE_FULL_RAW

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomp3dec: mark as AVSTREAM_PARSE_FULL_RAW
Michael Niedermayer [Tue, 24 Jul 2012 15:40:25 +0000 (17:40 +0200)]
mp3dec: mark as AVSTREAM_PARSE_FULL_RAW

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomovenc: fix remuxing of yuv2
Piotr Bandurski [Wed, 25 Jul 2012 09:59:05 +0000 (11:59 +0200)]
movenc: fix remuxing of yuv2

Attached patch fixes remuxing of yuv2 in mov (and does not break remuxing of yuvs)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoprobe_codec: fix memory corruption
Michael Niedermayer [Wed, 25 Jul 2012 23:05:01 +0000 (01:05 +0200)]
probe_codec: fix memory corruption

Found-by: Tanami Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: warn about new streams after startup.
Nicolas George [Wed, 25 Jul 2012 15:46:00 +0000 (17:46 +0200)]
ffmpeg: warn about new streams after startup.

6 years agofaq: explain about new streams, probesize and analyzeduration.
Nicolas George [Wed, 25 Jul 2012 15:23:39 +0000 (17:23 +0200)]
faq: explain about new streams, probesize and analyzeduration.

6 years agovf_yadif: unset cur_buf on the input link.
Anton Khirnov [Wed, 25 Jul 2012 06:42:27 +0000 (08:42 +0200)]
vf_yadif: unset cur_buf on the input link.

The buffer is stored internally, so this prevents it from being unreffed
automatically.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agovf_overlay: ensure the overlay frame does not get leaked.
Anton Khirnov [Wed, 25 Jul 2012 06:42:26 +0000 (08:42 +0200)]
vf_overlay: ensure the overlay frame does not get leaked.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agovf_overlay: prevent premature freeing of cur_buf
Michael Niedermayer [Wed, 25 Jul 2012 06:42:25 +0000 (08:42 +0200)]
vf_overlay: prevent premature freeing of cur_buf

Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoSupport urlencoded http authentication credentials
Antti Seppälä [Wed, 25 Jul 2012 09:43:39 +0000 (12:43 +0300)]
Support urlencoded http authentication credentials

It should be possible to specify usernames in http requests containing
urlencoded characters. This patch adds support for decoding the auth
strings.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Return an error when the client bandwidth is incorrect
Samuel Pitoiset [Wed, 25 Jul 2012 18:51:11 +0000 (20:51 +0200)]
rtmp: Return an error when the client bandwidth is incorrect

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Return proper error code in handle_server_bw
Samuel Pitoiset [Wed, 25 Jul 2012 18:51:10 +0000 (20:51 +0200)]
rtmp: Return proper error code in handle_server_bw

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Return proper error code in handle_client_bw
Samuel Pitoiset [Wed, 25 Jul 2012 18:51:09 +0000 (20:51 +0200)]
rtmp: Return proper error code in handle_client_bw

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Return proper error codes in handle_chunk_size
Samuel Pitoiset [Wed, 25 Jul 2012 18:51:08 +0000 (20:51 +0200)]
rtmp: Return proper error codes in handle_chunk_size

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 25 Jul 2012 20:00:06 +0000 (22:00 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtmp: Add a new option 'rtmp_pageurl'
  doc: Update the description of the rtmp_tcurl option
  rtmp: Make the description of the rtmp_tcurl option more generic
  libfdk-aacenc: add LATM/LOAS encapsulation support
  sctp: add port missing error message
  tcp: add port missing error message
  avfilter: Fix printf format string conversion specifier

Conflicts:
libavcodec/version.h
libavfilter/avfilter.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavr: x86: add missing vzeroupper in ff_mix_1_to_2_fltp_flt()
Justin Ruggles [Wed, 25 Jul 2012 18:49:40 +0000 (14:49 -0400)]
lavr: x86: add missing vzeroupper in ff_mix_1_to_2_fltp_flt()

6 years agolibvpxenc: switch to av_assert
Michael Niedermayer [Wed, 25 Jul 2012 19:35:48 +0000 (21:35 +0200)]
libvpxenc: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agointrax8: asserts cleanup
Michael Niedermayer [Wed, 25 Jul 2012 19:35:30 +0000 (21:35 +0200)]
intrax8: asserts cleanup

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovp8: Replace x*155/100 by x*101581>>16.
Ronald S. Bultje [Tue, 24 Jul 2012 21:23:12 +0000 (21:23 +0000)]
vp8: Replace x*155/100 by x*101581>>16.

Idea stolen from webp (by Pascal Massimino) - because it's Cool.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agovp3: don't use calls to inline asm in yasm code.
Ronald S. Bultje [Sun, 22 Jul 2012 20:38:56 +0000 (20:38 +0000)]
vp3: don't use calls to inline asm in yasm code.

Mixing yasm and inline asm is a bad idea, since if either yasm or inline
asm is not supported by your toolchain, all of the asm stops working.
Thus, better to use either one or the other alone.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agox86/dsputil: put inline asm under HAVE_INLINE_ASM.
Ronald S. Bultje [Sun, 22 Jul 2012 21:14:20 +0000 (21:14 +0000)]
x86/dsputil: put inline asm under HAVE_INLINE_ASM.

This allows compiling with compilers that don't support gcc-style
inline assembly.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agodsputil_mmx: fix incorrect assembly code
Yang Wang [Mon, 23 Jul 2012 22:51:10 +0000 (00:51 +0200)]
dsputil_mmx: fix incorrect assembly code

In ff_put_pixels_clamped_mmx(), there are two assembly code blocks.
In the first block (in the unrolled loop), the instructions
"movq 8%3, %%mm1 \n\t", and so forth, have problems.

From above instruction, it is clear what the programmer wants: a load from
p + 8. But this assembly code doesn’t guarantee that. It only works if the
compiler puts p in a register to produce an instruction like this:
"movq 8(%edi), %mm1". During compiler optimization, it is possible that the
compiler will be able to constant propagate into p. Suppose p = &x[10000].
Then operand 3 can become 10000(%edi), where %edi holds &x. And the instruction
becomes "movq 810000(%edx)". That is, it will stride by 810000 instead of 8.

This will cause a segmentation fault.

This error was fixed in the second block of the assembly code, but not in
the unrolled loop.

How to reproduce:
    This error is exposed when we build using Intel C++ Compiler, with
    IPO+PGO optimization enabled. Crashed when decoding an MJPEG video.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agortmp: Factorize the code by adding handle_invoke
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:58 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_invoke

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Factorize the code by adding handle_chunk_size
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:52 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_chunk_size

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Factorize the code by adding handle_ping
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:51 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_ping

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Factorize the code by adding handle_client_bw
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:50 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_client_bw

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Factorize the code by adding handle_server_bw
Samuel Pitoiset [Sat, 21 Jul 2012 10:59:49 +0000 (12:59 +0200)]
rtmp: Factorize the code by adding handle_server_bw

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Add a new option 'rtmp_pageurl'
Samuel Pitoiset [Tue, 24 Jul 2012 14:29:40 +0000 (16:29 +0200)]
rtmp: Add a new option 'rtmp_pageurl'

This option specifies the URL of the web page in which the media
was embedded.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agodoc: Update the description of the rtmp_tcurl option
Samuel Pitoiset [Tue, 24 Jul 2012 14:29:39 +0000 (16:29 +0200)]
doc: Update the description of the rtmp_tcurl option

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortmp: Make the description of the rtmp_tcurl option more generic
Samuel Pitoiset [Tue, 24 Jul 2012 14:29:38 +0000 (16:29 +0200)]
rtmp: Make the description of the rtmp_tcurl option more generic

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolibfdk-aacenc: add LATM/LOAS encapsulation support
Kieran Kunhya [Mon, 23 Jul 2012 16:20:04 +0000 (11:20 -0500)]
libfdk-aacenc: add LATM/LOAS encapsulation support

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agosctp: add port missing error message
Jordi Ortiz [Tue, 24 Jul 2012 17:56:39 +0000 (19:56 +0200)]
sctp: add port missing error message

Without this patch a user a bit absent-minded may not notice that
the connection doesn't work because the port is missing.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agotcp: add port missing error message
Jordi Ortiz [Tue, 24 Jul 2012 17:59:53 +0000 (19:59 +0200)]
tcp: add port missing error message

Without this patch a user a bit absent-minded may not notice that
the connection doesn't work because the port is missing.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agohls: call avformat_find_stream_info()
Michael Niedermayer [Wed, 25 Jul 2012 15:40:33 +0000 (17:40 +0200)]
hls: call avformat_find_stream_info()

This is needed to correctly demux h264 in ts

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