ffmpeg.git
7 years agocdxl: disable checked bitstream reader
Paul B Mahol [Sun, 17 Jun 2012 11:22:42 +0000 (11:22 +0000)]
cdxl: disable checked bitstream reader

Overreads should not be possible.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi: remove redundant checks after av_parse_video_rate()
Paul B Mahol [Wed, 20 Jun 2012 17:17:25 +0000 (17:17 +0000)]
lavfi: remove redundant checks after av_parse_video_rate()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 20 Jun 2012 18:47:46 +0000 (20:47 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  MS Screen 1 decoder
  aacdec: Fix popping channel layouts.
  av_gettime: support Win32 without gettimeofday()
  Use av_gettime() in various places
  Move av_gettime() to libavutil
  dct-test: use emms_c() from libavutil instead of duplicating it
  mov: fix operator precedence bug
  mathematics.h: remove a couple of math defines
  Remove unnecessary inclusions of [sys/]time.h
  lavf: remove unnecessary inclusions of unistd.h
  bfin: libswscale: add const where appropriate to fix warnings
  bfin: libswscale: remove unnecessary #includes
  udp: Properly check for invalid sockets
  tcp: Check the return value from getsockopt
  network: Use av_strerror for getting error messages
  udp: Properly print error from getnameinfo
  mmst: Use AVUNERROR() to convert error codes to the right range for strerror
  network: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows
  rtmp: Reduce the number of idle posts sent by sleeping 50ms

Conflicts:
Changelog
configure
libavcodec/aacdec.c
libavcodec/allcodecs.c
libavcodec/avcodec.h
libavcodec/dct-test.c
libavcodec/version.h
libavformat/riff.c
libavformat/udp.c
libavutil/Makefile
libswscale/bfin/yuv2rgb_bfin.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_vflip: fix handling of the last line.
Michael Niedermayer [Wed, 20 Jun 2012 18:14:01 +0000 (20:14 +0200)]
vf_vflip: fix handling of the last line.

Fixes Ticket1271

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_lut: fix handling of odd dimensions
Michael Niedermayer [Wed, 20 Jun 2012 18:13:43 +0000 (20:13 +0200)]
vf_lut: fix handling of odd dimensions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMS Screen 1 decoder
Kostya Shishkov [Fri, 15 Jun 2012 18:37:37 +0000 (20:37 +0200)]
MS Screen 1 decoder

7 years agoaacdec: Fix popping channel layouts.
Alex Converse [Wed, 20 Jun 2012 02:06:34 +0000 (19:06 -0700)]
aacdec: Fix popping channel layouts.

'channel_layout' not 'channels' from the stored configuration should go
to AVCodecContext's 'channel_layout'.

7 years agomjpegenc: use av_assert
Michael Niedermayer [Wed, 20 Jun 2012 16:20:04 +0000 (18:20 +0200)]
mjpegenc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomjpegdec: use av_assert
Michael Niedermayer [Wed, 20 Jun 2012 16:19:53 +0000 (18:19 +0200)]
mjpegdec: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoav_gettime: support Win32 without gettimeofday()
Mans Rullgard [Wed, 20 Jun 2012 12:46:52 +0000 (13:46 +0100)]
av_gettime: support Win32 without gettimeofday()

Based on patch by Ronald S. Bultje.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoUse av_gettime() in various places
Mans Rullgard [Wed, 20 Jun 2012 00:34:38 +0000 (01:34 +0100)]
Use av_gettime() in various places

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoMove av_gettime() to libavutil
Mans Rullgard [Wed, 20 Jun 2012 00:24:39 +0000 (01:24 +0100)]
Move av_gettime() to libavutil

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agolog: flip highlight bit for codec & muxer layer
Michael Niedermayer [Tue, 19 Jun 2012 16:50:05 +0000 (18:50 +0200)]
log: flip highlight bit for codec & muxer layer

This way the encoder/muxer side is bold

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodct-test: use emms_c() from libavutil instead of duplicating it
Mans Rullgard [Wed, 20 Jun 2012 12:50:45 +0000 (13:50 +0100)]
dct-test: use emms_c() from libavutil instead of duplicating it

7 years agomov: fix operator precedence bug
Ronald S. Bultje [Mon, 18 Jun 2012 19:06:35 +0000 (20:06 +0100)]
mov: fix operator precedence bug

7 years agomathematics.h: remove a couple of math defines
Janne Grunau [Thu, 14 Jun 2012 18:13:00 +0000 (20:13 +0200)]
mathematics.h: remove a couple of math defines

While these defines are not defined by the C standard they are
standardized as X/Open System Interfaces Extension. We use the
appropiate _XOPEN_SOURCE define to make them available. They
seem to be available on all FATE configs since the constants
are used in files where mathematics.h is not included.

7 years agodoc/ffmpeg.texi: use an exising preset file name
Lou Logan [Tue, 19 Jun 2012 18:18:30 +0000 (10:18 -0800)]
doc/ffmpeg.texi: use an exising preset file name

libx264-max.ffpreset is no longer with us.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoRemove unnecessary inclusions of [sys/]time.h
Mans Rullgard [Tue, 19 Jun 2012 21:08:35 +0000 (22:08 +0100)]
Remove unnecessary inclusions of [sys/]time.h

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agolavf: remove unnecessary inclusions of unistd.h
Mans Rullgard [Tue, 19 Jun 2012 14:11:34 +0000 (15:11 +0100)]
lavf: remove unnecessary inclusions of unistd.h

These files do not use anything provided by unistd.h.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agolavfi: add showwaves filter
Stefano Sabatini [Sun, 25 Dec 2011 16:37:53 +0000 (17:37 +0100)]
lavfi: add showwaves filter

7 years agolavfi/asplit: fix memleak
Stefano Sabatini [Fri, 15 Jun 2012 14:40:33 +0000 (16:40 +0200)]
lavfi/asplit: fix memleak

The input samples buffer must be unreferenced after it is propagated to
the output links.

7 years agoavio: av_protocol_next() is gone
Paul B Mahol [Tue, 19 Jun 2012 17:58:56 +0000 (17:58 +0000)]
avio: av_protocol_next() is gone

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agobfin: libswscale: add const where appropriate to fix warnings
Mans Rullgard [Tue, 19 Jun 2012 14:14:33 +0000 (15:14 +0100)]
bfin: libswscale: add const where appropriate to fix warnings

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agobfin: libswscale: remove unnecessary #includes
Mans Rullgard [Tue, 19 Jun 2012 14:12:57 +0000 (15:12 +0100)]
bfin: libswscale: remove unnecessary #includes

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agolibilbc: use designated initializers for AVClass
Paul B Mahol [Tue, 19 Jun 2012 20:43:28 +0000 (20:43 +0000)]
libilbc: use designated initializers for AVClass

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/color: fix typo
Paul B Mahol [Tue, 19 Jun 2012 20:04:17 +0000 (20:04 +0000)]
lavfi/color: fix typo

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agowmv2enc: fix rounding flag.
Michael Niedermayer [Tue, 19 Jun 2012 19:35:32 +0000 (21:35 +0200)]
wmv2enc: fix rounding flag.

Fixes Ticket1467

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/color: use AVOptions
Paul B Mahol [Tue, 19 Jun 2012 13:29:26 +0000 (13:29 +0000)]
lavfi/color: use AVOptions

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 19 Jun 2012 18:52:00 +0000 (20:52 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (24 commits)
  flvdec: remove incomplete, disabled seeking code
  mem: add support for _aligned_malloc() as found on Windows
  lavc: Extend the documentation for avcodec_init_packet
  flvdec: remove incomplete, disabled seeking code
  http: replace atoll() with strtoll()
  mpegts: remove unused/incomplete/broken seeking code
  af_amix: allow float planar sample format as input
  af_amix: use AVFloatDSPContext.vector_fmac_scalar()
  float_dsp: add x86-optimized functions for vector_fmac_scalar()
  float_dsp: Move vector_fmac_scalar() from libavcodec to libavutil
  lavr: Add x86-optimized function for flt to s32 conversion
  lavr: Add x86-optimized function for flt to s16 conversion
  lavr: Add x86-optimized functions for s32 to flt conversion
  lavr: Add x86-optimized functions for s32 to s16 conversion
  lavr: Add x86-optimized functions for s16 to flt conversion
  lavr: Add x86-optimized function for s16 to s32 conversion
  rtpenc: Support packetizing iLBC
  rtpdec: Add a depacketizer for iLBC
  Implement the iLBC storage file format
  mov: Support muxing/demuxing iLBC
  ...

Conflicts:
Changelog
configure
libavcodec/avcodec.h
libavcodec/dsputil.c
libavcodec/version.h
libavformat/movenc.c
libavformat/mpegts.c
libavformat/version.h
libavutil/mem.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoudp: Properly check for invalid sockets
Martin Storsjö [Tue, 19 Jun 2012 14:59:57 +0000 (17:59 +0300)]
udp: Properly check for invalid sockets

If stdin has been closed, 0 is a valid socket descriptor.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agotcp: Check the return value from getsockopt
Martin Storsjö [Tue, 19 Jun 2012 14:50:38 +0000 (17:50 +0300)]
tcp: Check the return value from getsockopt

Make sure we actually have an error code in ret, in case
getsockopt failed.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agonetwork: Use av_strerror for getting error messages
Martin Storsjö [Tue, 19 Jun 2012 12:37:06 +0000 (15:37 +0300)]
network: Use av_strerror for getting error messages

Also use ff_neterrno() instead of errno directly (which doesn't work
on windows), for getting the error code.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoudp: Properly print error from getnameinfo
Martin Storsjö [Tue, 19 Jun 2012 12:28:48 +0000 (15:28 +0300)]
udp: Properly print error from getnameinfo

getnameinfo doesn't set errno on failure, it returns an error code,
which should be handled by gai_strerror instead of the normal
strerror.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agommst: Use AVUNERROR() to convert error codes to the right range for strerror
Martin Storsjö [Tue, 19 Jun 2012 12:21:43 +0000 (15:21 +0300)]
mmst: Use AVUNERROR() to convert error codes to the right range for strerror

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agonetwork: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows
Martin Storsjö [Mon, 18 Jun 2012 20:39:30 +0000 (23:39 +0300)]
network: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows

This avoids warnings.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortmp: Reduce the number of idle posts sent by sleeping 50ms
Samuel Pitoiset [Tue, 19 Jun 2012 11:21:09 +0000 (13:21 +0200)]
rtmp: Reduce the number of idle posts sent by sleeping 50ms

Rtmpt is effectively half duplex - the server can't return any
data unless we send a request (to which the server responds). If
we don't have any data to send currently, and the server didn't
return any data either, wait a little before doing the next request.

This avoids busy looping with idle posts with empty replies, while
waiting for more data from the server.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavidec: add .category
Paul B Mahol [Tue, 19 Jun 2012 14:54:58 +0000 (14:54 +0000)]
avidec: add .category

While here make .class_name consistent with other AVClass.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolibavfilter: improve atempo audio quality
Pavel Koshevoy [Sun, 17 Jun 2012 22:45:26 +0000 (16:45 -0600)]
libavfilter: improve atempo audio quality

Reduce audio fragment alignment jitter by penalizing alignment
correction offsets that deviate too much from the target offset.
This is accomplished by multiplying the cross correlation search
window with a quadratic function.

Signed-off-by: Pavel Koshevoy <pavel@homestead.aragog.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: separate muxer/demuxer class category
Michael Niedermayer [Sun, 3 Jun 2012 20:41:05 +0000 (22:41 +0200)]
lavf: separate muxer/demuxer class category

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc: seperate encoder/decoder class category
Michael Niedermayer [Sun, 3 Jun 2012 20:40:37 +0000 (22:40 +0200)]
lavc: seperate encoder/decoder class category

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavutil: add get_category() for the case where one AVClass can have more than 1 category
Michael Niedermayer [Sun, 3 Jun 2012 20:39:54 +0000 (22:39 +0200)]
avutil: add get_category() for the case where one AVClass can have more than 1 category

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolog: swap colors for muxer and codec layer
Michael Niedermayer [Sun, 3 Jun 2012 23:06:52 +0000 (01:06 +0200)]
log: swap colors for muxer and codec layer

This way the filters which are semantically closer to the codec layer
have a (subjectively to me) more similar color.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/avfilter: use av_assert
Michael Niedermayer [Tue, 19 Jun 2012 14:44:45 +0000 (16:44 +0200)]
lavfi/avfilter: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agorv40dsp: use av_assert
Michael Niedermayer [Tue, 19 Jun 2012 14:44:28 +0000 (16:44 +0200)]
rv40dsp: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/avcodec: make avfilter_fill_frame_from*() functions use avfilter_copy_buf_props()
Stefano Sabatini [Sun, 10 Jun 2012 16:08:12 +0000 (18:08 +0200)]
lavfi/avcodec: make avfilter_fill_frame_from*() functions use avfilter_copy_buf_props()

The code in avfilter_copy_buf_props() is more generic, allow code
factorization.

7 years agolavfi/avcodec: always use av_frame* accessors in avfilter_copy_buf_props()
Stefano Sabatini [Mon, 18 Jun 2012 23:14:32 +0000 (01:14 +0200)]
lavfi/avcodec: always use av_frame* accessors in avfilter_copy_buf_props()

Use av_frame_* accessors for the newly added fields in AVFrame (for which
we are supposed to use such accessors), and group the istructions
accordingly.

7 years agolavfi/avcodec: copy pos field from AVFilterBuffer to AVFrame pkt_pos
Stefano Sabatini [Sun, 10 Jun 2012 16:20:40 +0000 (18:20 +0200)]
lavfi/avcodec: copy pos field from AVFilterBuffer to AVFrame pkt_pos

7 years agolavc/qtrlenc: return proper error codes from qtrle_encode_init()
Stefano Sabatini [Tue, 19 Jun 2012 11:03:03 +0000 (13:03 +0200)]
lavc/qtrlenc: return proper error codes from qtrle_encode_init()

7 years agolavc/libschroedinger: add missing failure checks in ff_create_schro_frame()
Stefano Sabatini [Tue, 19 Jun 2012 11:01:07 +0000 (13:01 +0200)]
lavc/libschroedinger: add missing failure checks in ff_create_schro_frame()

7 years agox86/intmath: fix type of FASTDIV
Michael Niedermayer [Tue, 19 Jun 2012 14:08:44 +0000 (16:08 +0200)]
x86/intmath: fix type of FASTDIV

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavidec: use designated initializers for AVClass
Paul B Mahol [Tue, 19 Jun 2012 13:59:17 +0000 (13:59 +0000)]
avidec: use designated initializers for AVClass

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agomov: use designated initializers for AVClass
Paul B Mahol [Tue, 19 Jun 2012 13:57:06 +0000 (13:57 +0000)]
mov: use designated initializers for AVClass

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoFix dependencies for the atempo filter.
Carl Eugen Hoyos [Tue, 19 Jun 2012 10:06:41 +0000 (12:06 +0200)]
Fix dependencies for the atempo filter.

Found, analysed and tested by trac user Jamal.

Fixes ticket #1465.

7 years agoflvdec: remove incomplete, disabled seeking code
Diego Biurrun [Fri, 29 Jul 2011 10:02:54 +0000 (12:02 +0200)]
flvdec: remove incomplete, disabled seeking code

7 years agomem: add support for _aligned_malloc() as found on Windows
Ronald S. Bultje [Mon, 18 Jun 2012 13:37:02 +0000 (14:37 +0100)]
mem: add support for _aligned_malloc() as found on Windows

The check uses check_func_header, since this function is
conditionally available depending on the targeted MSVCRT
version.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agolavc: Extend the documentation for avcodec_init_packet
Simon A. Eugster [Sat, 9 Jun 2012 09:16:12 +0000 (11:16 +0200)]
lavc: Extend the documentation for avcodec_init_packet

Add a note that pkt->data and pkt->size must be initialized.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoswr: introduce filter_alloc in preparation of SIMD resample optimisations
Michael Niedermayer [Tue, 19 Jun 2012 01:06:40 +0000 (03:06 +0200)]
swr: introduce filter_alloc in preparation of SIMD resample optimisations

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswr/resample: optimize C code for the most common case
Michael Niedermayer [Mon, 18 Jun 2012 21:02:44 +0000 (23:02 +0200)]
swr/resample: optimize C code for the most common case

15% speedup

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoflvdec: remove incomplete, disabled seeking code
Ronald S. Bultje [Mon, 18 Jun 2012 14:22:15 +0000 (15:22 +0100)]
flvdec: remove incomplete, disabled seeking code

7 years agohttp: replace atoll() with strtoll()
Ronald S. Bultje [Mon, 18 Jun 2012 13:02:43 +0000 (14:02 +0100)]
http: replace atoll() with strtoll()

7 years agompegts: remove unused/incomplete/broken seeking code
Ronald S. Bultje [Mon, 18 Jun 2012 12:57:59 +0000 (13:57 +0100)]
mpegts: remove unused/incomplete/broken seeking code

7 years agolavc/avcodec.h: fix reference to nonexistent function in av_picture_copy() doxy
Stefano Sabatini [Sat, 16 Jun 2012 09:52:24 +0000 (11:52 +0200)]
lavc/avcodec.h: fix reference to nonexistent function in av_picture_copy() doxy

Mention av_image_copy() instead.

7 years agolavc/imgconvert: fix check on av_image_check_size() return code in avpicture_get_size()
Stefano Sabatini [Sat, 16 Jun 2012 09:38:50 +0000 (11:38 +0200)]
lavc/imgconvert: fix check on av_image_check_size() return code in avpicture_get_size()

The documentation states that av_image_check_size() will return a
negative value in case of error, while the check is done on ret != 0.

Also return a proper error code rather than -1 in case the check fails.

7 years agolavc/imgconvert: remove pointless switch block from avpicture_fill()
Stefano Sabatini [Sat, 16 Jun 2012 09:35:38 +0000 (11:35 +0200)]
lavc/imgconvert: remove pointless switch block from avpicture_fill()

7 years agolavc/rawdec: propagate duration from packet to frame
Stefano Sabatini [Sat, 16 Jun 2012 09:01:33 +0000 (11:01 +0200)]
lavc/rawdec: propagate duration from packet to frame

7 years agoaf_amix: allow float planar sample format as input
Justin Ruggles [Sat, 9 Jun 2012 03:59:04 +0000 (23:59 -0400)]
af_amix: allow float planar sample format as input

7 years agoaf_amix: use AVFloatDSPContext.vector_fmac_scalar()
Justin Ruggles [Sat, 9 Jun 2012 02:34:30 +0000 (22:34 -0400)]
af_amix: use AVFloatDSPContext.vector_fmac_scalar()

7 years agofloat_dsp: add x86-optimized functions for vector_fmac_scalar()
Justin Ruggles [Sat, 9 Jun 2012 03:20:59 +0000 (23:20 -0400)]
float_dsp: add x86-optimized functions for vector_fmac_scalar()

7 years agofloat_dsp: Move vector_fmac_scalar() from libavcodec to libavutil
Justin Ruggles [Fri, 8 Jun 2012 17:49:56 +0000 (13:49 -0400)]
float_dsp: Move vector_fmac_scalar() from libavcodec to libavutil

7 years agolavr: Add x86-optimized function for flt to s32 conversion
Justin Ruggles [Fri, 20 Apr 2012 20:09:15 +0000 (16:09 -0400)]
lavr: Add x86-optimized function for flt to s32 conversion

7 years agolavr: Add x86-optimized function for flt to s16 conversion
Justin Ruggles [Tue, 24 Apr 2012 02:22:28 +0000 (22:22 -0400)]
lavr: Add x86-optimized function for flt to s16 conversion

7 years agolavr: Add x86-optimized functions for s32 to flt conversion
Justin Ruggles [Mon, 23 Apr 2012 22:29:58 +0000 (18:29 -0400)]
lavr: Add x86-optimized functions for s32 to flt conversion

7 years agolavr: Add x86-optimized functions for s32 to s16 conversion
Justin Ruggles [Fri, 20 Apr 2012 17:49:53 +0000 (13:49 -0400)]
lavr: Add x86-optimized functions for s32 to s16 conversion

7 years agolavr: Add x86-optimized functions for s16 to flt conversion
Justin Ruggles [Tue, 24 Apr 2012 02:10:26 +0000 (22:10 -0400)]
lavr: Add x86-optimized functions for s16 to flt conversion

7 years agolavr: Add x86-optimized function for s16 to s32 conversion
Justin Ruggles [Fri, 20 Apr 2012 19:48:08 +0000 (15:48 -0400)]
lavr: Add x86-optimized function for s16 to s32 conversion

7 years agohuffyuv: switch to av_assert
Michael Niedermayer [Mon, 18 Jun 2012 19:44:48 +0000 (21:44 +0200)]
huffyuv: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasv1: switch to av_assert
Michael Niedermayer [Mon, 18 Jun 2012 19:44:22 +0000 (21:44 +0200)]
asv1: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agortpenc: Support packetizing iLBC
Martin Storsjö [Sun, 17 Jun 2012 14:25:46 +0000 (17:25 +0300)]
rtpenc: Support packetizing iLBC

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortpdec: Add a depacketizer for iLBC
Martin Storsjö [Sun, 17 Jun 2012 13:12:53 +0000 (16:12 +0300)]
rtpdec: Add a depacketizer for iLBC

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoImplement the iLBC storage file format
Martin Storsjö [Sun, 17 Jun 2012 12:54:31 +0000 (15:54 +0300)]
Implement the iLBC storage file format

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agomov: Support muxing/demuxing iLBC
Martin Storsjö [Sat, 16 Jun 2012 21:29:26 +0000 (00:29 +0300)]
mov: Support muxing/demuxing iLBC

The packet size, signalled via block_align, has to be passed via
the container.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoAdd support for iLBC decoding/encoding via the external library libilbc
Martin Storsjö [Fri, 15 Jun 2012 21:42:13 +0000 (00:42 +0300)]
Add support for iLBC decoding/encoding via the external library libilbc

The library is 3-clause BSD licensed.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortmp: Don't send every flv packet in a separate HTTP request in RTMPT
Samuel Pitoiset [Mon, 18 Jun 2012 12:55:55 +0000 (14:55 +0200)]
rtmp: Don't send every flv packet in a separate HTTP request in RTMPT

Add a new option 'rtmp_flush_interval' that allows specifying the
number of packets to write before sending it off as a HTTP request.

This is mostly relevant for RTMPT - for plain RTMP, it only controls
how often we check the socket for incoming packets, which shouldn't
affect the performance in any noticeable way.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Send mode=record instead of mode=receive
Martin Storsjö [Mon, 18 Jun 2012 13:19:33 +0000 (16:19 +0300)]
rtsp: Send mode=record instead of mode=receive

This seems to be the correct mode to send, according to the
original RTSP RFC, and matches the method RECORD which is
sent later when starting to send data.

Darwin Streaming Server works fine with either of them.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agodirac: replace compound literal with normal initialiser
Ronald S. Bultje [Mon, 18 Jun 2012 11:57:25 +0000 (12:57 +0100)]
dirac: replace compound literal with normal initialiser

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agosnowenc: update selftest code for the new temporary arrays
Michael Niedermayer [Mon, 18 Jun 2012 18:20:14 +0000 (20:20 +0200)]
snowenc: update selftest code for the new temporary arrays

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 18 Jun 2012 18:05:32 +0000 (20:05 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavr: add x86-optimized functions for mixing 1-to-2 s16p with flt coeffs
  lavr: add x86-optimized functions for mixing 1-to-2 fltp with flt coeffs
  Add Dolby/DPLII downmix support to libavresample
  vorbisdec: replace div/mod in loop with a counter
  fate: vorbis: add 5.1 surround test
  rtpenc: Allow requesting H264 RTP packetization mode 0
  configure: Sort the library listings in the help text alphabetically
  dwt: remove variable-length arrays
  RTMPT protocol support
  http: Properly handle chunked transfer-encoding for replies to post data
  http: Fail reading if the connection has gone away
  amr: Mark an array const
  amr: More space cleanup
  rtpenc: Fix memory leaks in the muxer open function

Conflicts:
Changelog
configure
doc/APIchanges
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavutil: add a merge sort.
Michael Niedermayer [Mon, 18 Jun 2012 16:40:02 +0000 (18:40 +0200)]
libavutil: add a merge sort.

compared to qsort this is slower but its stable and doesnt have a O(n^2) worst
case

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoqsort doxy
Michael Niedermayer [Mon, 18 Jun 2012 16:39:35 +0000 (18:39 +0200)]
qsort doxy

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoqsort: add some forgotten ()
Michael Niedermayer [Mon, 18 Jun 2012 16:39:17 +0000 (18:39 +0200)]
qsort: add some forgotten ()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavr: add x86-optimized functions for mixing 1-to-2 s16p with flt coeffs
Justin Ruggles [Tue, 29 May 2012 21:03:56 +0000 (17:03 -0400)]
lavr: add x86-optimized functions for mixing 1-to-2 s16p with flt coeffs

7 years agolavr: add x86-optimized functions for mixing 1-to-2 fltp with flt coeffs
Justin Ruggles [Tue, 29 May 2012 21:03:40 +0000 (17:03 -0400)]
lavr: add x86-optimized functions for mixing 1-to-2 fltp with flt coeffs

7 years agoAdd Dolby/DPLII downmix support to libavresample
John Stebbins [Sat, 9 Jun 2012 20:45:49 +0000 (13:45 -0700)]
Add Dolby/DPLII downmix support to libavresample

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
7 years agolibavutil: add AV_QSORT()
Michael Niedermayer [Mon, 18 Jun 2012 14:13:22 +0000 (16:13 +0200)]
libavutil: add AV_QSORT()

about 2-5 times faster than gnu libcs qsort()
And should be 100% binary identical across platforms.

I will bump the version once the API is certainly stable and
everyone is happy with the API.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovorbisdec: replace div/mod in loop with a counter
Mans Rullgard [Sat, 16 Jun 2012 17:08:03 +0000 (18:08 +0100)]
vorbisdec: replace div/mod in loop with a counter

2x speedup of surround decoding on Cortex-A9.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agofate: vorbis: add 5.1 surround test
Mans Rullgard [Sat, 16 Jun 2012 15:14:21 +0000 (16:14 +0100)]
fate: vorbis: add 5.1 surround test

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agortpenc: Allow requesting H264 RTP packetization mode 0
Martin Storsjö [Mon, 28 May 2012 09:11:26 +0000 (12:11 +0300)]
rtpenc: Allow requesting H264 RTP packetization mode 0

This requires all NAL units to fit within single RTP packets. It
doesn't change the actual packetization for packets that fit, but
errors out and gives a helpful hint if the NAL units would have to
be split, and signals the right packetization mode in the SDP.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoconfigure: Sort the library listings in the help text alphabetically
Martin Storsjö [Sun, 17 Jun 2012 21:05:52 +0000 (00:05 +0300)]
configure: Sort the library listings in the help text alphabetically

Only these three libraries were out of order, the rest was already
neatly sorted.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoffmpeg.c: count subtitles in total size.
Nicolas George [Sun, 17 Jun 2012 17:50:36 +0000 (19:50 +0200)]
ffmpeg.c: count subtitles in total size.

This avoids the "Output file is empty" warning
with subtitles-only files.

7 years agoffprobe: dump AVPacket.convergence_duration.
Nicolas George [Sun, 17 Jun 2012 15:16:48 +0000 (17:16 +0200)]
ffprobe: dump AVPacket.convergence_duration.