ffmpeg.git
7 years agoffplay: get rid of void casts in the option table
Michael Niedermayer [Fri, 31 Aug 2012 12:26:20 +0000 (14:26 +0200)]
ffplay: get rid of void casts in the option table

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffplay: fix function parameters
Michael Niedermayer [Fri, 31 Aug 2012 12:25:57 +0000 (14:25 +0200)]
ffplay: fix function parameters

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 31 Aug 2012 11:18:48 +0000 (13:18 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  MSS1 and MSS2: set final pixel format after common stuff has been initialised
  MSS2 decoder
  configure: handle --disable-asm before check_deps
  x86: Split inline and external assembly #ifdefs
  configure: x86: Separate inline from standalone assembler capabilities
  pktdumper: Use a custom define instead of PATH_MAX for buffers
  pktdumper: Use av_strlcpy instead of strncpy
  pktdumper: Use sizeof(variable) instead of the direct buffer length

Conflicts:
Changelog
configure
libavcodec/allcodecs.c
libavcodec/avcodec.h
libavcodec/codec_desc.c
libavcodec/dct-test.c
libavcodec/imgconvert.c
libavcodec/mss12.c
libavcodec/version.h
libavfilter/x86/gradfun.c
libswscale/x86/yuv2rgb.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'ec36aa69448f20a78d8c4588265022e0b2272ab5'
Michael Niedermayer [Fri, 31 Aug 2012 10:04:17 +0000 (12:04 +0200)]
Merge commit 'ec36aa69448f20a78d8c4588265022e0b2272ab5'

* commit 'ec36aa69448f20a78d8c4588265022e0b2272ab5':
  x86: Fix linking with some or all of yasm, mmx, optimizations disabled
  configure: Add more fine-grained SSE CPU capabilities flags
  avfilter: x86: Use more precise compile template names
  x86: cosmetics: Comment some #endifs for better readability
  g723_1: add comfort noise generation
  utvideoenc: Switch to dsputils' median prediction
  utvideoenc: Avoid writing into the input picture
  avtools: remove the distinction between func_arg and func2_arg.
  avconv: make the -passlogfile option per-stream.
  avconv: make the -pass option per-stream.
  cmdutils: make -codecs print lossy/lossless flags.
  lavc: add lossy/lossless codec properties.

Conflicts:
Changelog
cmdutils.c
configure
doc/APIchanges
ffmpeg.h
ffmpeg_opt.c
ffprobe.c
libavcodec/codec_desc.c
libavcodec/g723_1.c
libavcodec/utvideoenc.c
libavcodec/version.h
libavcodec/x86/mpegaudiodec.c
libavcodec/x86/rv40dsp_init.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoWrite TIFF Tag ExtraSamples when encoding pix_fmts that contain transparency information.
Carl Eugen Hoyos [Fri, 31 Aug 2012 09:15:07 +0000 (11:15 +0200)]
Write TIFF Tag ExtraSamples when encoding pix_fmts that contain transparency information.

7 years agoCosmetics: Reorder pix_fmts in tiffenc.c.
Carl Eugen Hoyos [Fri, 31 Aug 2012 09:01:02 +0000 (11:01 +0200)]
Cosmetics: Reorder pix_fmts in tiffenc.c.

7 years agoSimplify setting colour space for mono* when encoding tiff.
Carl Eugen Hoyos [Fri, 31 Aug 2012 08:57:36 +0000 (10:57 +0200)]
Simplify setting colour space for mono* when encoding tiff.

7 years agoMSS1 and MSS2: set final pixel format after common stuff has been initialised
Alberto Delmás [Fri, 31 Aug 2012 05:59:36 +0000 (07:59 +0200)]
MSS1 and MSS2: set final pixel format after common stuff has been initialised

This way it won't interfere with WMV9 initialisation inside MSS2 decoder and
avplay will play it fine.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
7 years agoMSS2 decoder
Alberto Delmás [Fri, 24 Aug 2012 15:45:57 +0000 (17:45 +0200)]
MSS2 decoder

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
7 years agov4l2: fix compile on systems that lack V4L2_PIX_FMT_CPIA1
Michael Niedermayer [Fri, 31 Aug 2012 02:35:06 +0000 (04:35 +0200)]
v4l2: fix compile on systems that lack V4L2_PIX_FMT_CPIA1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoconfigure: handle --disable-asm before check_deps
Mans Rullgard [Fri, 31 Aug 2012 00:56:03 +0000 (01:56 +0100)]
configure: handle --disable-asm before check_deps

This is necessary to avoid spuriously enabling _external or _inline
variants of arch extensions when they should be disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agox86: Split inline and external assembly #ifdefs
Diego Biurrun [Tue, 28 Aug 2012 12:53:33 +0000 (14:53 +0200)]
x86: Split inline and external assembly #ifdefs

7 years agoconfigure: x86: Separate inline from standalone assembler capabilities
Diego Biurrun [Mon, 27 Aug 2012 01:07:11 +0000 (03:07 +0200)]
configure: x86: Separate inline from standalone assembler capabilities

7 years agoAdd CPiA video decoder
Stephan Hilb [Thu, 23 Aug 2012 16:40:22 +0000 (18:40 +0200)]
Add CPiA video decoder

The cpia video decoder is intended to be used with the v4l2 demuxer.
There are some small changes to the v4l2 demuxer to support the
variable frame length of the format.
Fixes ticket #1537

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: Fix assert failure
Michael Niedermayer [Thu, 30 Aug 2012 22:00:28 +0000 (00:00 +0200)]
ffmpeg: Fix assert failure

Fixes Ticket1674

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agofind_stream_info: update last_dts more often
Michael Niedermayer [Thu, 30 Aug 2012 21:41:16 +0000 (23:41 +0200)]
find_stream_info: update last_dts more often

This improves dts validity checks and consequently fps detection of files with invalid dts
Fixes Ticket1681

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agopktdumper: Use a custom define instead of PATH_MAX for buffers
Martin Storsjö [Tue, 28 Aug 2012 19:56:03 +0000 (22:56 +0300)]
pktdumper: Use a custom define instead of PATH_MAX for buffers

PATH_MAX is not necessarily available on all systems, e.g. it's
normally not available on MSVC, and is not guaranteed to defined
on a POSIX system either.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agopktdumper: Use av_strlcpy instead of strncpy
Martin Storsjö [Thu, 30 Aug 2012 20:10:07 +0000 (23:10 +0300)]
pktdumper: Use av_strlcpy instead of strncpy

This takes care of null-terminating the buffer if it is too small,
which wasn't handled properly before.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agopktdumper: Use sizeof(variable) instead of the direct buffer length
Martin Storsjö [Thu, 30 Aug 2012 20:08:06 +0000 (23:08 +0300)]
pktdumper: Use sizeof(variable) instead of the direct buffer length

Also change the snprintf size to use the full buffer, since
snprintf always null-terminates the buffer.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoexamples/scaling_video: add logging in case of image allocation failure
Stefano Sabatini [Thu, 30 Aug 2012 20:44:36 +0000 (22:44 +0200)]
examples/scaling_video: add logging in case of image allocation failure

7 years agoexamples/muxing: remove pointless #undef exit
Stefano Sabatini [Thu, 30 Aug 2012 19:42:43 +0000 (21:42 +0200)]
examples/muxing: remove pointless #undef exit

7 years agofaxcompr: fix byte alignment case
Michael Niedermayer [Thu, 30 Aug 2012 20:16:17 +0000 (22:16 +0200)]
faxcompr: fix byte alignment case

Fixes Ticket1653

Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoexamples/scaling_video: consistently use printf rather than av_log()
Stefano Sabatini [Thu, 30 Aug 2012 19:44:51 +0000 (21:44 +0200)]
examples/scaling_video: consistently use printf rather than av_log()

7 years agoexamples/scaling_video: add file doxy
Stefano Sabatini [Wed, 29 Aug 2012 21:40:23 +0000 (23:40 +0200)]
examples/scaling_video: add file doxy

7 years agoexamples/Makefile: give priority to pkg-config flags
Stefano Sabatini [Fri, 24 Aug 2012 14:49:04 +0000 (16:49 +0200)]
examples/Makefile: give priority to pkg-config flags

In case CFLAGS/LDLIBS are already defined and conflicting with the
pkg-config flags, give priority to the latter since they are used to
detect compilation flags.

This should fix for example the case where there are many different
instances of a library, CFLAGS=-I/foo/include and pkg-config cflags say
-I/bar/include.

7 years agox86: Fix linking with some or all of yasm, mmx, optimizations disabled
Diego Biurrun [Wed, 29 Aug 2012 09:14:17 +0000 (11:14 +0200)]
x86: Fix linking with some or all of yasm, mmx, optimizations disabled

Some optimized template functions reference optimized symbols, so they
must be explicitly disabled when those symbols are unavailable.

7 years agoconfigure: Add more fine-grained SSE CPU capabilities flags
Diego Biurrun [Tue, 28 Aug 2012 11:56:46 +0000 (13:56 +0200)]
configure: Add more fine-grained SSE CPU capabilities flags

7 years agoavfilter: x86: Use more precise compile template names
Diego Biurrun [Tue, 28 Aug 2012 12:09:35 +0000 (14:09 +0200)]
avfilter: x86: Use more precise compile template names

7 years agox86: cosmetics: Comment some #endifs for better readability
Diego Biurrun [Wed, 29 Aug 2012 13:05:53 +0000 (15:05 +0200)]
x86: cosmetics: Comment some #endifs for better readability

7 years agog723_1: add comfort noise generation
Kostya Shishkov [Thu, 23 Aug 2012 17:51:11 +0000 (19:51 +0200)]
g723_1: add comfort noise generation

7 years agolibvorbisdec: fix const nitpick warning
Michael Niedermayer [Thu, 30 Aug 2012 16:01:14 +0000 (18:01 +0200)]
libvorbisdec: fix const nitpick warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoutvideoenc: Switch to dsputils' median prediction
Michael Niedermayer [Sat, 25 Aug 2012 21:34:39 +0000 (21:34 +0000)]
utvideoenc: Switch to dsputils' median prediction

Also, align the mangled RGB planes, which is required for the
SIMD versions of dsputils' median predict.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoutvideoenc: Avoid writing into the input picture
Michael Niedermayer [Sat, 25 Aug 2012 21:34:35 +0000 (21:34 +0000)]
utvideoenc: Avoid writing into the input picture

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomp3enc: fix const correctness
Michael Niedermayer [Thu, 30 Aug 2012 15:56:38 +0000 (17:56 +0200)]
mp3enc: fix const correctness

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoutvideoenc: remove unused variable
Michael Niedermayer [Thu, 30 Aug 2012 15:50:33 +0000 (17:50 +0200)]
utvideoenc: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 30 Aug 2012 15:28:21 +0000 (17:28 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  build: allow non-standard variations of linker -l/-L flags
  Add reminders to update the codec descriptor list with new codec IDs.

Conflicts:
Makefile
configure
libavcodec/avcodec.h
libavformat/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavtools: remove the distinction between func_arg and func2_arg.
Anton Khirnov [Wed, 29 Aug 2012 12:37:22 +0000 (14:37 +0200)]
avtools: remove the distinction between func_arg and func2_arg.

func2_arg is the same as func_arg, except it has one additional
parameter. Change all func_arg callbacks to take that parameter (and
ignore it).

7 years agoavconv: make the -passlogfile option per-stream.
Anton Khirnov [Sun, 19 Aug 2012 07:15:48 +0000 (09:15 +0200)]
avconv: make the -passlogfile option per-stream.

7 years agoavconv: make the -pass option per-stream.
Anton Khirnov [Sun, 19 Aug 2012 06:29:44 +0000 (08:29 +0200)]
avconv: make the -pass option per-stream.

7 years agocmdutils: make -codecs print lossy/lossless flags.
Anton Khirnov [Wed, 29 Aug 2012 07:43:20 +0000 (09:43 +0200)]
cmdutils: make -codecs print lossy/lossless flags.

7 years agolavc: add lossy/lossless codec properties.
Anton Khirnov [Tue, 28 Aug 2012 09:21:59 +0000 (11:21 +0200)]
lavc: add lossy/lossless codec properties.

7 years agoswscale: fix usePal()
Michael Niedermayer [Thu, 30 Aug 2012 11:37:03 +0000 (13:37 +0200)]
swscale: fix usePal()

Fixes Ticket1702

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodnxhdenc: fix pointer type warning
Michael Niedermayer [Thu, 30 Aug 2012 09:47:57 +0000 (11:47 +0200)]
dnxhdenc: fix pointer type warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agowmalosslessdec: remove unused variable
Michael Niedermayer [Thu, 30 Aug 2012 09:11:31 +0000 (11:11 +0200)]
wmalosslessdec: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfiltergraph: kill uninitialized variable warning
Michael Niedermayer [Thu, 30 Aug 2012 09:02:15 +0000 (11:02 +0200)]
avfiltergraph: kill uninitialized variable warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoflvenc: kill a uninitialized variable warning.
Michael Niedermayer [Thu, 30 Aug 2012 03:20:51 +0000 (05:20 +0200)]
flvenc: kill a uninitialized variable warning.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoac3dec: fix uninitialized var warning
Michael Niedermayer [Thu, 30 Aug 2012 03:17:24 +0000 (05:17 +0200)]
ac3dec: fix uninitialized var warning

This commit should be purely cosmetic

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovsrc_testsrc: fix uninitilaized variable bug
Michael Niedermayer [Thu, 30 Aug 2012 03:15:03 +0000 (05:15 +0200)]
vsrc_testsrc: fix uninitilaized variable bug

Found-by: gcc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_framestep: fix uninitilaized variable bug
Michael Niedermayer [Thu, 30 Aug 2012 03:09:15 +0000 (05:09 +0200)]
vf_framestep: fix uninitilaized variable bug

Found-by: gcc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswscale.c: remove unused variable
Michael Niedermayer [Thu, 30 Aug 2012 00:38:10 +0000 (02:38 +0200)]
swscale.c: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agowmavoice: switch to av_assert
Michael Niedermayer [Thu, 30 Aug 2012 00:34:00 +0000 (02:34 +0200)]
wmavoice: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomov: fix av_log int type
Michael Niedermayer [Wed, 29 Aug 2012 22:15:58 +0000 (00:15 +0200)]
mov: fix av_log int type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaacdec: fix priming/skip for AAC HE/HE2
Michael Niedermayer [Wed, 29 Aug 2012 22:13:22 +0000 (00:13 +0200)]
aacdec: fix priming/skip for AAC HE/HE2

There is a remaining error of 2 - 8 samples in some but not all cases,
the source of the error is unknown ATM.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaacdec: pass AVPacket to aac_decode_frame_int()
Michael Niedermayer [Wed, 29 Aug 2012 22:12:49 +0000 (00:12 +0200)]
aacdec: pass AVPacket to aac_decode_frame_int()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaudio_frame_que: remove broken code that is specific to old audio_que
Michael Niedermayer [Wed, 29 Aug 2012 17:22:29 +0000 (19:22 +0200)]
audio_frame_que: remove broken code that is specific to old audio_que

This should fix compilation with -DDEBUG

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodshow: allow user to specify audio buffer size
Ramiro Polla [Sat, 25 Aug 2012 08:09:37 +0000 (05:09 -0300)]
dshow: allow user to specify audio buffer size

Based on patch by rogerdpack <rogerpack2005@gmail.com>

Tested-by: Roger Pack <rogerdpack2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/af_atempo: use av_malloc for rDFT buffers.
Nicolas George [Tue, 28 Aug 2012 16:15:49 +0000 (18:15 +0200)]
lavfi/af_atempo: use av_malloc for rDFT buffers.

Memory obtained from av_realloc is not aligned enough for AVX.
The other similar allocations are changed too because they use
the same macro. The buffers were cleared afterwards anyway.

Fix trac ticket #1692.

7 years agoAdd missing codec descriptor for timingless subrip.
Philip Langdale [Wed, 29 Aug 2012 04:02:25 +0000 (21:02 -0700)]
Add missing codec descriptor for timingless subrip.

Signed-off-by: Philip Langdale <philipl@overt.org>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 29 Aug 2012 16:13:00 +0000 (18:13 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  build: export filtered -lz flag in config.mak
  build: add separate setting for host linker
  configure: probe_cc: use separate variable for linker output flag
  x86: Always compile files with functions that are called unconditionally
  x86: mpegvideoenc: fix linking with --disable-mmx
  x86: mpegvideoenc: Do not abuse HAVE_ variables for template instantiation

Conflicts:
Makefile
configure
libavcodec/x86/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'd488c3bcbaf7ddda42597e014deb661a7e9e2112'
Michael Niedermayer [Wed, 29 Aug 2012 15:46:10 +0000 (17:46 +0200)]
Merge commit 'd488c3bcbaf7ddda42597e014deb661a7e9e2112'

* commit 'd488c3bcbaf7ddda42597e014deb661a7e9e2112':
  configure: support Bitrig OS
  yuv2rgb: handle line widths that are not a multiple of 4.
  graph2dot: Use the fallback getopt implementation if needed
  tools: Include io.h for open/read/write/close if unistd.h doesn't exist
  testprogs: Remove unused includes
  qt-faststart: Use other seek/tell functions on MSVC than on mingw
  ismindex: Include direct.h for _mkdir on windows
  sdp: Use static const char arrays instead of pointers to strings
  x86: avcodec: Drop silly "_mmx" suffixes from filenames
  x86: avcodec: Drop silly "_sse" suffixes from filenames
  sdp: Include profile-level-id for H264
  utvideoenc: use ff_huff_gen_len_table
  huffman: add ff_huff_gen_len_table
  cllc: simplify/fix swapped data buffer allocation.
  rtpdec_h264: Don't set the pixel format
  h264: Check that the codec isn't null before accessing it
  audio_frame_queue: Define af_queue_log_state before using it

Conflicts:
libavcodec/audio_frame_queue.c
libavcodec/h264.c
libavcodec/huffman.h
libavcodec/huffyuv.c
libavcodec/utvideoenc.c
libavcodec/x86/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agobuild: allow non-standard variations of linker -l/-L flags
Mans Rullgard [Tue, 28 Aug 2012 15:06:56 +0000 (16:06 +0100)]
build: allow non-standard variations of linker -l/-L flags

This enables replacing the -l and -L flags used to specify the
just-built libraries when linking the tools and shared libs with
non-standard syntaxes.  System library flags are already handled
by the filtering mechanism in configure.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agolavc: protect calls to frame_thread_encoder by HAVE_THREADS
Michael Niedermayer [Wed, 29 Aug 2012 09:09:36 +0000 (11:09 +0200)]
lavc: protect calls to frame_thread_encoder by HAVE_THREADS

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoexr: fix decoding ZIP16 and height not multiple of 16
Paul B Mahol [Wed, 29 Aug 2012 09:12:42 +0000 (09:12 +0000)]
exr: fix decoding ZIP16 and height not multiple of 16

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoAdd reminders to update the codec descriptor list with new codec IDs.
Anton Khirnov [Tue, 28 Aug 2012 08:16:53 +0000 (10:16 +0200)]
Add reminders to update the codec descriptor list with new codec IDs.

7 years agoframe_thread_encoder: pass frame pict type and quality
Michael Niedermayer [Wed, 29 Aug 2012 02:26:59 +0000 (04:26 +0200)]
frame_thread_encoder: pass frame pict type and quality

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoframe_thread_encoder: pass private options
Michael Niedermayer [Wed, 29 Aug 2012 02:26:36 +0000 (04:26 +0200)]
frame_thread_encoder: pass private options

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agobuild: export filtered -lz flag in config.mak
Mans Rullgard [Tue, 28 Aug 2012 15:24:09 +0000 (16:24 +0100)]
build: export filtered -lz flag in config.mak

This is needed to link tools/cws2fws using a linker with non-standard
command line syntax.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agobuild: add separate setting for host linker
Mans Rullgard [Tue, 28 Aug 2012 12:02:35 +0000 (13:02 +0100)]
build: add separate setting for host linker

This adds new HOSTLD and related settings for host linker allowing
it to be different from HOSTCC.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: probe_cc: use separate variable for linker output flag
Mans Rullgard [Tue, 28 Aug 2012 11:50:09 +0000 (12:50 +0100)]
configure: probe_cc: use separate variable for linker output flag

Some tools use different command line syntax for specifying output
when compiling and linking.  To accomodate these, separate variables
must be used.  No currently supported compilers/linkers are affected
by the change.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoAdd 'timeout' option to UDP protocol
Andrey Utkin [Mon, 27 Aug 2012 13:31:09 +0000 (16:31 +0300)]
Add 'timeout' option to UDP protocol

This patch accepts 'timeout' option for input mode only. As far as i know, UDP output cannot introduce delays.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agox86: Always compile files with functions that are called unconditionally
Diego Biurrun [Tue, 28 Aug 2012 15:47:39 +0000 (17:47 +0200)]
x86: Always compile files with functions that are called unconditionally

7 years agox86: mpegvideoenc: fix linking with --disable-mmx
Diego Biurrun [Tue, 28 Aug 2012 15:45:24 +0000 (17:45 +0200)]
x86: mpegvideoenc: fix linking with --disable-mmx

The optimized dct_quantize template functions reference optimized
fdct symbols, so these functions must only be enabled if the relevant
optimizations have been enabled by configure.

7 years agoconfigure: support Bitrig OS
Brad Smith [Mon, 27 Aug 2012 18:57:52 +0000 (14:57 -0400)]
configure: support Bitrig OS

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agox86: mpegvideoenc: Do not abuse HAVE_ variables for template instantiation
Diego Biurrun [Tue, 28 Aug 2012 15:37:54 +0000 (17:37 +0200)]
x86: mpegvideoenc: Do not abuse HAVE_ variables for template instantiation

This avoids trouble if HAVE_ variables are used elsewhere in the file.

7 years agoAdd 'rw_timeout' into URLContext
Andrey Utkin [Mon, 27 Aug 2012 13:31:08 +0000 (16:31 +0300)]
Add 'rw_timeout' into URLContext

If set non-zero, limits duration of retry_transfer_wrapper() loop, thus
affects ffurl_read*(), ffurl_write()
Measured in microseconds.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoyuv2rgb: handle line widths that are not a multiple of 4.
Ronald S. Bultje [Tue, 28 Aug 2012 00:32:50 +0000 (17:32 -0700)]
yuv2rgb: handle line widths that are not a multiple of 4.

This introduces support for width%4==2 in addition to width%4==0. For
odd widths, some more checks are needed, since the current code always
handles two luma items in a row, thus there is a possibility of an
overread by one.

7 years agograph2dot: Use the fallback getopt implementation if needed
Martin Storsjö [Tue, 28 Aug 2012 16:35:39 +0000 (19:35 +0300)]
graph2dot: Use the fallback getopt implementation if needed

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agotools: Include io.h for open/read/write/close if unistd.h doesn't exist
Martin Storsjö [Tue, 28 Aug 2012 19:54:43 +0000 (22:54 +0300)]
tools: Include io.h for open/read/write/close if unistd.h doesn't exist

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agotestprogs: Remove unused includes
Martin Storsjö [Tue, 28 Aug 2012 19:44:31 +0000 (22:44 +0300)]
testprogs: Remove unused includes

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoqt-faststart: Use other seek/tell functions on MSVC than on mingw
Martin Storsjö [Tue, 28 Aug 2012 19:40:27 +0000 (22:40 +0300)]
qt-faststart: Use other seek/tell functions on MSVC than on mingw

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoismindex: Include direct.h for _mkdir on windows
Martin Storsjö [Tue, 28 Aug 2012 19:30:36 +0000 (22:30 +0300)]
ismindex: Include direct.h for _mkdir on windows

The Windows SDK in MSVC doesn't have mkdir, only _mkdir, and
MSDN says one should include direct.h to use it.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoffmpeg: count finished streams for last stats line.
Nicolas George [Tue, 28 Aug 2012 21:19:33 +0000 (23:19 +0200)]
ffmpeg: count finished streams for last stats line.

Otherwise, all streams are finished and the time is nonsensical.

7 years agortpenc_xiph: switch to av_assert
Michael Niedermayer [Tue, 28 Aug 2012 20:29:20 +0000 (22:29 +0200)]
rtpenc_xiph: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosdp: Use static const char arrays instead of pointers to strings
Martin Storsjö [Tue, 28 Aug 2012 16:24:14 +0000 (19:24 +0300)]
sdp: Use static const char arrays instead of pointers to strings

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agogitignore: add scaling_video example.
Clément Bœsch [Tue, 28 Aug 2012 18:35:04 +0000 (20:35 +0200)]
gitignore: add scaling_video example.

7 years agoexamples/Makefile: remove duplicated -f switch
Stefano Sabatini [Tue, 28 Aug 2012 18:06:45 +0000 (20:06 +0200)]
examples/Makefile: remove duplicated -f switch

$(RM) already includes that flag.

Spotted-by: ubitux
7 years agoexamples: add scaling_video example
Stefano Sabatini [Tue, 21 Aug 2012 12:43:51 +0000 (14:43 +0200)]
examples: add scaling_video example

This example should be useful to show the basic functionality of the
libswscale API.

More advanced features (scaling options etc., colorspace tweaking) may be
added later.

7 years agolavfi: add smartblur filter
Jérémy Tran [Tue, 28 Aug 2012 16:41:06 +0000 (18:41 +0200)]
lavfi: add smartblur filter

This is a port of the MPlayer smartblur filter (libmpcodecs/vf_smartblur.c)
by Michael Niedermayer.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agoffmpeg: report max time of unfinished streams in stats.
Nicolas George [Mon, 20 Aug 2012 19:06:39 +0000 (21:06 +0200)]
ffmpeg: report max time of unfinished streams in stats.

Eliminating finished streams avoids the progress stopping
with the first stream.
Using the max instead of the min avoids the progress stopping
with gaps in sparse streams (subtitles).
Negligible change for normal circumstances.

7 years agox86: avcodec: Drop silly "_mmx" suffixes from filenames
Diego Biurrun [Wed, 8 Aug 2012 00:12:17 +0000 (02:12 +0200)]
x86: avcodec: Drop silly "_mmx" suffixes from filenames

7 years agox86: avcodec: Drop silly "_sse" suffixes from filenames
Diego Biurrun [Tue, 7 Aug 2012 23:49:46 +0000 (01:49 +0200)]
x86: avcodec: Drop silly "_sse" suffixes from filenames

7 years agosdp: Include profile-level-id for H264
Martin Storsjö [Tue, 28 Aug 2012 11:57:26 +0000 (14:57 +0300)]
sdp: Include profile-level-id for H264

This is required for playback with the Stagefright RTSP framework
on Android.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoadd myself as vda decoder maintainer
Xidorn Quan [Tue, 28 Aug 2012 12:11:47 +0000 (20:11 +0800)]
add myself as vda decoder maintainer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.
Ronald S. Bultje [Tue, 28 Aug 2012 14:41:16 +0000 (07:41 -0700)]
lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoutvideoenc: use ff_huff_gen_len_table
Michael Niedermayer [Wed, 22 Aug 2012 02:02:38 +0000 (04:02 +0200)]
utvideoenc: use ff_huff_gen_len_table

Avoid code duplication and provide faster and better compression.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agohuffman: add ff_huff_gen_len_table
Michael Niedermayer [Mon, 27 Aug 2012 14:00:47 +0000 (16:00 +0200)]
huffman: add ff_huff_gen_len_table

The function will be used by utvideo as well.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agocllc: simplify/fix swapped data buffer allocation.
Reimar Döffinger [Mon, 27 Aug 2012 20:11:08 +0000 (20:11 +0000)]
cllc: simplify/fix swapped data buffer allocation.

Using the malloc variant avoids pointless memcpy on size
increase and simplifies handling allocation failure.
Also change code to ensure that allocation, bswap and bitstream
reader all use the same size, even when the packet size is odd
for example.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agortpdec_h264: Don't set the pixel format
Samuel Pitoiset [Sun, 26 Aug 2012 15:35:08 +0000 (17:35 +0200)]
rtpdec_h264: Don't set the pixel format

There is no need for this depacketizer to set the pixel format,
the decoder can do that just fine.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoh264: Check that the codec isn't null before accessing it
Martin Storsjö [Tue, 28 Aug 2012 11:27:10 +0000 (14:27 +0300)]
h264: Check that the codec isn't null before accessing it

This fixes crashes introduced by 2e8f3cbcda5, the codec can be null
when called from parsers.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoaudio_frame_queue: Define af_queue_log_state before using it
Martin Storsjö [Tue, 28 Aug 2012 14:23:16 +0000 (17:23 +0300)]
audio_frame_queue: Define af_queue_log_state before using it

This fixes building with DEBUG defined after the function was made
static and the prototype removed in d7f9786cbc.

Signed-off-by: Martin Storsjö <martin@martin.st>