]> git.sesse.net Git - ffmpeg/log
ffmpeg
11 years agoimgconvert: add avcodec_find_best_pix_fmt_of_2()
Michael Niedermayer [Tue, 24 Jul 2012 23:37:38 +0000 (01:37 +0200)]
imgconvert: add avcodec_find_best_pix_fmt_of_2()

and deprecate avcodec_find_best_pix_fmt2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agodvbsubdec: set width/height from display def if not set.
Reimar Döffinger [Mon, 27 Aug 2012 15:57:11 +0000 (17:57 +0200)]
dvbsubdec: set width/height from display def if not set.

This fixes playback of DVB subtitles in
http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1065/Test1.wtv
in MPlayer.
FFplay is not affected since it assumes that the subtitles
are scaled to match the video - but this usually isn't the
case after rescaling the video and stream-copying subtitles.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
11 years agowtvdec: set correct codec ID for CC streams.
Reimar Döffinger [Mon, 27 Aug 2012 20:08:56 +0000 (22:08 +0200)]
wtvdec: set correct codec ID for CC streams.

Closed caption data is definitely not teletext.
Since it contains a EIA-608 compatibility stream,
the EIA_608 codec ID is at least not completely wrong.
Fixes subtitle playback in MPlayer with the sample in
trac ticket #1482.
To fix the ticket itself I expect FFmpeg will need
a closed-caption to SRT decoder first.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
11 years agolavfi/hue: add process_command callback
Jérémy Tran [Thu, 30 Aug 2012 23:56:58 +0000 (01:56 +0200)]
lavfi/hue: add process_command callback

This allows dynamic reconfiguration of the filter.
The callback uses some code that was in the init function. Hence this code
has been moved in its own function.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
11 years agoconfigure: add decimate filter dependency on avcodec
Stefano Sabatini [Fri, 31 Aug 2012 15:49:24 +0000 (17:49 +0200)]
configure: add decimate filter dependency on avcodec

11 years agolavfi: port decimate libmpcodecs filter
Stefano Sabatini [Sat, 17 Mar 2012 14:49:51 +0000 (15:49 +0100)]
lavfi: port decimate libmpcodecs filter

This filter is based on the MPlayer decimate filter by Rich Felker.

11 years agolavfi/mp=decimate: fix off-by-one logic in diff_C() x loop
Stefano Sabatini [Wed, 29 Aug 2012 11:08:49 +0000 (13:08 +0200)]
lavfi/mp=decimate: fix off-by-one logic in diff_C() x loop

Set x offset values in the range 0-7, rather than in the range 8-1.

The y loop is changed accordingly, to avoid confusion.

This also fixes output difference with the new pending native decimate
filter.

11 years agolavfi/mp: remove smartblur filter
Stefano Sabatini [Wed, 29 Aug 2012 08:36:08 +0000 (10:36 +0200)]
lavfi/mp: remove smartblur filter

It was natively integrated into libavfilter.

11 years agoflvdec: remove duplicate return
Michael Niedermayer [Fri, 31 Aug 2012 13:27:58 +0000 (15:27 +0200)]
flvdec: remove duplicate return

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agovf_mp: fix duplicate return
Michael Niedermayer [Fri, 31 Aug 2012 13:26:33 +0000 (15:26 +0200)]
vf_mp: fix duplicate return

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoAdd some missing _EXTERNAL suffixes to yasm source files.
Carl Eugen Hoyos [Fri, 31 Aug 2012 13:39:03 +0000 (15:39 +0200)]
Add some missing _EXTERNAL suffixes to yasm source files.

11 years agobuffersink: remove stray ;
Michael Niedermayer [Fri, 31 Aug 2012 13:22:01 +0000 (15:22 +0200)]
buffersink: remove stray ;

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agobintext: remove stray ;
Michael Niedermayer [Fri, 31 Aug 2012 13:20:57 +0000 (15:20 +0200)]
bintext: remove stray ;

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agodsicinav: fix signed integer overflow
Michael Niedermayer [Fri, 31 Aug 2012 13:15:59 +0000 (15:15 +0200)]
dsicinav: fix signed integer overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 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>
11 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>
11 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>
11 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>
11 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.

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

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

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

11 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

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

11 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

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

11 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

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

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

11 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

11 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

11 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

11 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

11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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).

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

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

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

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

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

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

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

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

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

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

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

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

11 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