ffmpeg.git
6 years agoffmpeg: print swr options in --help too
Michael Niedermayer [Fri, 22 Jun 2012 01:43:07 +0000 (03:43 +0200)]
ffmpeg: print swr options in --help too

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate: add tests for SANM and VIMA
Paul B Mahol [Thu, 21 Jun 2012 14:08:41 +0000 (14:08 +0000)]
fate: add tests for SANM and VIMA

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoavformat: offset fps calculation by one to include 60.00 fps
Hendrik Leppkes [Mon, 9 Apr 2012 16:54:42 +0000 (18:54 +0200)]
avformat: offset fps calculation by one to include 60.00 fps

To ensure the full range of values is still used, also adjust all uses of this function to loop from 0
instead of 1. This way only 60.00 is added and nothing lost.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodoc/faq: Update video joining examples
Lou Logan [Thu, 21 Jun 2012 17:43:33 +0000 (09:43 -0800)]
doc/faq: Update video joining examples

-same_quant is not designed to convert between quantizer scales, AFAIK.

Add example using concat protocol.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 21 Jun 2012 19:57:39 +0000 (21:57 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  fix hardcoded tables compililation caused by missing math constants
  lavf: Make codec_tag arrays constant
  twinvq: give massive struct a name.
  lavf, lavu: version bumps and APIchanges for av_gettime() move
  lavfi/audio: don't set cur_buf in ff_filter_samples().
  lavfi/fifo: add audio version of the fifo filter.
  fifo: fix parenthesis placement.
  lavfi: rename vf_fifo.c -> fifo.c
  lavc: remove stats_in from AVCodecContext options table.

Conflicts:
doc/APIchanges
libavfilter/Makefile
libavfilter/allfilters.c
libavfilter/audio.c
libavfilter/fifo.c
libavformat/version.h
libavutil/avutil.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofix hardcoded tables compililation caused by missing math constants
Janne Grunau [Thu, 21 Jun 2012 15:59:56 +0000 (17:59 +0200)]
fix hardcoded tables compililation caused by missing math constants

Add -D_XOPEN_SOURCE=600 to host cflags to make the constants in math.h
available. Include math.h where necessary and remove redundant M_PI
defines.

6 years agosanm: silence warnings
Paul B Mahol [Thu, 21 Jun 2012 14:48:05 +0000 (14:48 +0000)]
sanm: silence warnings

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agolavf: add a real SRT muxer.
Nicolas George [Sun, 17 Jun 2012 19:11:49 +0000 (21:11 +0200)]
lavf: add a real SRT muxer.

This muxer supports CODEC_ID_SRT with the timestamps in the packet data
and CODEC_ID_TEXT with the timestamps in the packet fields.

Makes -scodec copy work from Matroska.

6 years agovc1: signal interlaced and tff flag to the consumer
Hendrik Leppkes [Fri, 13 Jan 2012 21:14:36 +0000 (22:14 +0100)]
vc1: signal interlaced and tff flag to the consumer

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosmacker: add sanity check for length in smacker_decode_tree()
Michael Niedermayer [Thu, 21 Jun 2012 14:01:52 +0000 (16:01 +0200)]
smacker: add sanity check for length in smacker_decode_tree()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavd/lavfi: do not set the channel layout list.
Nicolas George [Thu, 21 Jun 2012 07:55:33 +0000 (09:55 +0200)]
lavd/lavfi: do not set the channel layout list.

The list was set to avfilter_all_channel_layouts,
which is really all common channel layouts.
Not setting it leaves an empty list,
which now means really all.

6 years agolavf: Make codec_tag arrays constant
Ronald S. Bultje [Wed, 20 Jun 2012 17:25:00 +0000 (10:25 -0700)]
lavf: Make codec_tag arrays constant

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoReplace Libav with FFmpeg
Paul B Mahol [Thu, 21 Jun 2012 11:36:30 +0000 (11:36 +0000)]
Replace Libav with FFmpeg

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agosmush: set audio packet duration
Paul B Mahol [Thu, 21 Jun 2012 12:09:01 +0000 (12:09 +0000)]
smush: set audio packet duration

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agolavfi/deshake: fix crash in uninit()
Stefano Sabatini [Thu, 21 Jun 2012 15:00:52 +0000 (17:00 +0200)]
lavfi/deshake: fix crash in uninit()

Add NULL check on avctx before calling avcodec_close() on it.

Fix trac ticket #1472.

6 years agotwinvq: give massive struct a name.
Ronald S. Bultje [Wed, 20 Jun 2012 17:11:43 +0000 (10:11 -0700)]
twinvq: give massive struct a name.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoaac: move sample_fmt selection before decoder configuration.
Hendrik Leppkes [Tue, 12 Jun 2012 08:05:29 +0000 (10:05 +0200)]
aac: move sample_fmt selection before decoder configuration.

The decoder configuration initializes the sbr mdct, which needs to know about the sample format to properly take the scale factor into account.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoriff: don't overwrite bps from WAVEFORMATEX if EXTENSIBLE doesn't contain that data.
Hendrik Leppkes [Wed, 2 May 2012 14:34:45 +0000 (16:34 +0200)]
riff: don't overwrite bps from WAVEFORMATEX if EXTENSIBLE doesn't contain that data.

According to the specification on the MSDN [1], 0 is valid for that particular field, and it should be ignored in that case.

[1]: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757714(v=vs.85).aspx

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi/scale: remove unused variable out_link
Stefano Sabatini [Thu, 21 Jun 2012 09:55:09 +0000 (11:55 +0200)]
lavfi/scale: remove unused variable out_link

Fix warning:
libavfilter/vf_scale.c: In function ‘start_frame’:
libavfilter/vf_scale.c:284:23: warning: unused variable ‘out_link’ [-Wunused-variable]

6 years agolavfi/audio: remove unused variable in ff_filter_samples()
Stefano Sabatini [Thu, 21 Jun 2012 09:53:10 +0000 (11:53 +0200)]
lavfi/audio: remove unused variable in ff_filter_samples()

Fix warning:
libavfilter/audio.c: In function ‘ff_filter_samples’:
libavfilter/audio.c:193:13: warning: unused variable ‘size’ [-Wunused-variable]

6 years agolswr/rematrix: specify explicitly the name of the unsupported channel layouts
Stefano Sabatini [Thu, 21 Jun 2012 09:53:50 +0000 (11:53 +0200)]
lswr/rematrix: specify explicitly the name of the unsupported channel layouts

Help debugging.

6 years agolavf, lavu: version bumps and APIchanges for av_gettime() move
Mans Rullgard [Wed, 20 Jun 2012 16:28:34 +0000 (17:28 +0100)]
lavf, lavu: version bumps and APIchanges for av_gettime() move

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoavformat: add 48 fps to the NTSC framerates
Hendrik Leppkes [Mon, 9 Apr 2012 16:56:46 +0000 (18:56 +0200)]
avformat: add 48 fps to the NTSC framerates

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoutvideo: mark interlaced frames as such
Hendrik Leppkes [Tue, 3 Jan 2012 17:17:43 +0000 (18:17 +0100)]
utvideo: mark interlaced frames as such

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolagarith: frame multithreading
Hendrik Leppkes [Mon, 6 Feb 2012 17:04:51 +0000 (18:04 +0100)]
lagarith: frame multithreading

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agowavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit
Hendrik Leppkes [Fri, 16 Dec 2011 21:43:35 +0000 (22:43 +0100)]
wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi/ass: update use of deprecated functions, fix warnings
Stefano Sabatini [Thu, 21 Jun 2012 09:07:35 +0000 (11:07 +0200)]
lavfi/ass: update use of deprecated functions, fix warnings

6 years agolavfi/blackdetect: add logic for handling stream termination
Stefano Sabatini [Wed, 20 Jun 2012 23:15:52 +0000 (01:15 +0200)]
lavfi/blackdetect: add logic for handling stream termination

Add request_frame() which checks the black duration when the end of the
stream is signalled. Allow to detect black video segments at the end of
the stream.

Note that the reported last black video segment duration is not very
accurate, since we still miss the duration information in the video
buffer.

Address trac ticket #1470.

6 years agolavfi/blackdetect: fix pts time debug printing
Stefano Sabatini [Wed, 20 Jun 2012 22:57:53 +0000 (00:57 +0200)]
lavfi/blackdetect: fix pts time debug printing

6 years agolavfi/audio: don't set cur_buf in ff_filter_samples().
Anton Khirnov [Sun, 17 Jun 2012 08:21:49 +0000 (10:21 +0200)]
lavfi/audio: don't set cur_buf in ff_filter_samples().

It's redundant, since the input buffer is passed as a parameter to the
filter_samples() callback, and can lead to stale pointers remaining on
the link.

6 years agolavfi/fifo: add audio version of the fifo filter.
Anton Khirnov [Wed, 16 May 2012 06:21:47 +0000 (08:21 +0200)]
lavfi/fifo: add audio version of the fifo filter.

6 years agofifo: fix parenthesis placement.
Anton Khirnov [Sun, 27 May 2012 20:45:52 +0000 (22:45 +0200)]
fifo: fix parenthesis placement.

6 years agolavfi: rename vf_fifo.c -> fifo.c
Anton Khirnov [Wed, 16 May 2012 06:15:54 +0000 (08:15 +0200)]
lavfi: rename vf_fifo.c -> fifo.c

It will be used for audio too.

6 years agolavc: remove stats_in from AVCodecContext options table.
Anton Khirnov [Wed, 20 Jun 2012 16:36:14 +0000 (18:36 +0200)]
lavc: remove stats_in from AVCodecContext options table.

Its documentation states that it is allocated/freed by the caller, but
it is declared as an AV_OPT_TYPE_STRING AVOption. Since
367732832faaf1bac4ece37cf7fef8c911e16312 the AVOptions system frees
strings automatically. This can be considered an API break, since it
won't work when the caller doesn't use av_malloc() to allocate the
memory or wants to use the string after closing the codec.

Since there is not much value in this field being an AVOption, the best
solution is to remove it from the options table.

6 years agoLucasArts SMUSH demuxer
Paul B Mahol [Mon, 19 Mar 2012 02:55:26 +0000 (02:55 +0000)]
LucasArts SMUSH demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoLucasArts SMUSH video decoder
Paul B Mahol [Mon, 19 Mar 2012 02:54:19 +0000 (02:54 +0000)]
LucasArts SMUSH video decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoLucasArts SMUSH VIMA audio decoder
Paul B Mahol [Mon, 19 Mar 2012 02:52:08 +0000 (02:52 +0000)]
LucasArts SMUSH VIMA audio decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agolibavfilter/transform: fix mirroring.
Michael Niedermayer [Wed, 20 Jun 2012 21:48:26 +0000 (23:48 +0200)]
libavfilter/transform: fix mirroring.

mirror() borrowed from dwt.c, this could be moved to libavutil and made
public API, Ill submit a patch for this

Fixes Ticket1278

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibavutil: fix author attribution
Michael Niedermayer [Wed, 20 Jun 2012 19:28:03 +0000 (21:28 +0200)]
libavutil: fix author attribution

Libav.org has removed this while moving the code around

For reference, the code was originally added in:
commit 9aeeeb63f7e1ab7b0b7bb839a5f258667a2d2d78
Author: Fabrice Bellard <fabrice@bellard.org>
Date:   Wed Dec 20 00:02:47 2000 +0000

    Initial revision

    Originally committed as revision 2 to svn://svn.ffmpeg.org/ffmpeg/trunk
--
The function name originates from:
commit 949885313226f01ae7ba9a69eff5c45b47b78d57
Author: Fabrice Bellard <fabrice@bellard.org>
Date:   Thu Jul 25 16:01:46 2002 +0000

    more consistent naming

    Originally committed as revision 802 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

6 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'.

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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

6 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.

6 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>
6 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>
6 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>
6 years agolavfi: add showwaves filter
Stefano Sabatini [Sun, 25 Dec 2011 16:37:53 +0000 (17:37 +0100)]
lavfi: add showwaves filter

6 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.

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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.

6 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.

6 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

6 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()

6 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()

6 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>
6 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>
6 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>
6 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.

6 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

6 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>
6 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>
6 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>
6 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>
6 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

6 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()

6 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