]> git.sesse.net Git - ffmpeg/log
ffmpeg
11 years agomov_chan: Pass a separate AVIOContext for reading
Samuel Pitoiset [Thu, 6 Sep 2012 10:46:37 +0000 (12:46 +0200)]
mov_chan: Pass a separate AVIOContext for reading

This fixes crashes when called from rtpdec_qt, where
AVFormatContext->pb is null, a crash present since 3bab7cd128.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoaf_asyncts: check return value from lavr when flushing.
Anton Khirnov [Tue, 4 Sep 2012 20:01:38 +0000 (22:01 +0200)]
af_asyncts: check return value from lavr when flushing.

Fixes an infinite loop on flush when avresample_get_delay() still
reports some samples but avresample_convert() doesn't return any data.

11 years agomss2: simplify loop in decode_rle()
Alberto Delmás [Mon, 3 Sep 2012 15:32:01 +0000 (17:32 +0200)]
mss2: simplify loop in decode_rle()

It calculates the sum of power of two series, which can be done in one step.

Suggested by Michael Niedermayer <michaelni@gmx.at>

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agomss12: avoid unnecessary division in arith*_get_bit()
Alberto Delmás [Mon, 3 Sep 2012 15:32:01 +0000 (17:32 +0200)]
mss12: avoid unnecessary division in arith*_get_bit()

That division can be replaced with a comparison:
((c->value - c->low) << 1) + 1 >= range

By expanding 'range' definition and simplifying this inequation we obtain
the final expression.

Suggested by Michael Niedermayer <michaelni@gmx.at>

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agomss2: do not try to read too many palette entries
Alberto Delmás [Mon, 3 Sep 2012 15:28:01 +0000 (17:28 +0200)]
mss2: do not try to read too many palette entries

Reported by Michael Niedermayer <michaelni@gmx.at>

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agompegvideo: set AVFrame fields to NULL after freeing the base memory
Janne Grunau [Wed, 5 Sep 2012 18:25:48 +0000 (20:25 +0200)]
mpegvideo: set AVFrame fields to NULL after freeing the base memory

Prevents dangling pointers and makes access after free more obvious.
Setting AVFrame.qscale_table to NULL is required for successfully
allocating a previously freed Picture with ff_alloc_picture().

11 years agoconfigure: Set the right cc_e flags for msvc
Martin Storsjö [Thu, 6 Sep 2012 11:44:07 +0000 (14:44 +0300)]
configure: Set the right cc_e flags for msvc

The default ones work, but outputs the preprocessed file on stdout
(into config.log).

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agofate: Allow setting the ld parameter from the config file
Martin Storsjö [Wed, 5 Sep 2012 19:57:40 +0000 (22:57 +0300)]
fate: Allow setting the ld parameter from the config file

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agox86: dsputil: Do not redundantly check for CPU caps before calling init funcs
Diego Biurrun [Wed, 5 Sep 2012 14:02:17 +0000 (16:02 +0200)]
x86: dsputil: Do not redundantly check for CPU caps before calling init funcs

The init functions check for CPU capabilities on their own already.

11 years agoconfigure: Disable some warnings in MSVC
Martin Storsjö [Wed, 5 Sep 2012 18:39:20 +0000 (21:39 +0300)]
configure: Disable some warnings in MSVC

This disables the following warnings:
C4100: unreferenced formal parameter
 (1035 occurrances)
C4214: nonstandard extension used : bit field types other than int
 (609 occurances)
C4996: 'avpriv_snprintf': This function or variable may be unsafe.
       Consider using _snprintf_s instead. To disable deprecation,
       use _CRT_SECURE_NO_WARNINGS. See online help for details.
 (351 occurrances)

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agox86: vp56: cmov version of vp56_rac_get_prob requires inline asm
Hendrik Leppkes [Wed, 5 Sep 2012 17:43:18 +0000 (19:43 +0200)]
x86: vp56: cmov version of vp56_rac_get_prob requires inline asm

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agoavopt: fix examples to match the same style about default values as the actual code.
Michael Niedermayer [Wed, 5 Sep 2012 16:40:21 +0000 (18:40 +0200)]
avopt: fix examples to match the same style about default values as the actual code.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoconfigure: Add support for MSVC cl.exe/link.exe
Ronald S. Bultje [Fri, 22 Jun 2012 09:24:59 +0000 (12:24 +0300)]
configure: Add support for MSVC cl.exe/link.exe

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agolavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.
Ronald S. Bultje [Tue, 4 Sep 2012 13:30:37 +0000 (14:30 +0100)]
lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agodsputil: workaround __VA_ARGS__ missing tokenization for MSVC
Luca Barbato [Wed, 25 Jul 2012 14:22:34 +0000 (16:22 +0200)]
dsputil: workaround __VA_ARGS__ missing tokenization for MSVC

A second expansion forces the preprocessor to tokenize properly.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoconfigure: add section for libc-specific hacks
Mans Rullgard [Tue, 4 Sep 2012 12:57:37 +0000 (13:57 +0100)]
configure: add section for libc-specific hacks

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agobuild: disable ranlib on mingw
Mans Rullgard [Tue, 4 Sep 2012 14:20:45 +0000 (15:20 +0100)]
build: disable ranlib on mingw

Using ranlib is not required but prevents using the libraries with
msvc.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoparser: Don't use pc as context for av_dlog
Martin Storsjö [Tue, 4 Sep 2012 11:45:00 +0000 (14:45 +0300)]
parser: Don't use pc as context for av_dlog

The ParserContext class doesn't have an AVClass, required for
using it as a logging class.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoh264: Remove an assert on current_picture_ptr being null
Michael Niedermayer [Mon, 6 Aug 2012 22:18:59 +0000 (00:18 +0200)]
h264: Remove an assert on current_picture_ptr being null

It is possible in various error paths as well as gap handling
that this has already been allocated. It is not clear why that
would be a problem with the current code, thus disable the
assert to avoid a common assert failure when asserts are enabled.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agobuild: eamad: Add missing dependency on mpegvideo code
Diego Biurrun [Tue, 4 Sep 2012 15:01:06 +0000 (17:01 +0200)]
build: eamad: Add missing dependency on mpegvideo code

11 years agobuild: utvideoenc: Add missing dependency on Huffman code
Diego Biurrun [Tue, 4 Sep 2012 14:57:29 +0000 (16:57 +0200)]
build: utvideoenc: Add missing dependency on Huffman code

11 years agoavopt: Reorder the default_val struct, making i64 the first field
Martin Storsjö [Fri, 31 Aug 2012 10:35:47 +0000 (13:35 +0300)]
avopt: Reorder the default_val struct, making i64 the first field

Also mention this change in APIchanges.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavopt: Explicitly store rational option defaults in .dbl
Martin Storsjö [Thu, 30 Aug 2012 21:42:30 +0000 (00:42 +0300)]
avopt: Explicitly store rational option defaults in .dbl

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavopt: Explicitly store float/double option defaults in .dbl
Martin Storsjö [Fri, 31 Aug 2012 10:34:23 +0000 (13:34 +0300)]
avopt: Explicitly store float/double option defaults in .dbl

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
Martin Storsjö [Fri, 31 Aug 2012 10:22:31 +0000 (13:22 +0300)]
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member
Martin Storsjö [Fri, 31 Aug 2012 09:52:18 +0000 (12:52 +0300)]
avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
Martin Storsjö [Fri, 31 Aug 2012 09:45:52 +0000 (12:45 +0300)]
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agosvq1enc: Set picture_structure correctly
Michael Niedermayer [Mon, 6 Aug 2012 14:28:13 +0000 (16:28 +0200)]
svq1enc: Set picture_structure correctly

This fixes assert failures when running in debug mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agompegvideo: remove last_picture_ptr / h264 assert.
Michael Niedermayer [Mon, 6 Aug 2012 14:49:49 +0000 (16:49 +0200)]
mpegvideo: remove last_picture_ptr / h264 assert.

This assert is no longer true since h264 error concealment needs
last_picture_ptr to be set.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agompegvideo_enc: remove assert that has become obsolete with the new API
Michael Niedermayer [Mon, 6 Aug 2012 08:26:04 +0000 (10:26 +0200)]
mpegvideo_enc: remove assert that has become obsolete with the new API

It now just checks uninitialized and unused data.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoelbg: Fix an assert
Michael Niedermayer [Sat, 18 Aug 2012 19:53:32 +0000 (21:53 +0200)]
elbg: Fix an assert

It seems the condition was flipped from what was intended.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoconfigure: add support for bdver1 and bdver2 CPU types.
Diego Elio Pettenò [Mon, 3 Sep 2012 12:20:44 +0000 (05:20 -0700)]
configure: add support for bdver1 and bdver2 CPU types.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoavio: make avio_close NULL the freed buffer
Luca Barbato [Tue, 4 Sep 2012 13:04:46 +0000 (15:04 +0200)]
avio: make avio_close NULL the freed buffer

11 years agopixdesc: cosmetics
Luca Barbato [Fri, 31 Aug 2012 09:22:20 +0000 (11:22 +0200)]
pixdesc: cosmetics

11 years agoproresenc: Don't free a buffer not owned by the codec
Martin Storsjö [Tue, 4 Sep 2012 11:57:45 +0000 (14:57 +0300)]
proresenc: Don't free a buffer not owned by the codec

The data in coded_frame isn't allocated using get_buffer, but
is copied from the input frame to the encoder, so we should
not try to free it ourselves.

This fixes an assert failure when running in debug mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoproresenc: Write the full value in one put_bits call
Martin Storsjö [Tue, 4 Sep 2012 11:31:52 +0000 (14:31 +0300)]
proresenc: Write the full value in one put_bits call

Previously, the put_bits call writing the value wrote a value
larger than the number of bits specified, failing asserts
in debug mode. There was no actual bitstream writer corruption,
since the overwritten bit already always was set to 1.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoadpcmenc: Calculate the IMA_QT predictor without overflow
Michael Niedermayer [Tue, 4 Sep 2012 11:02:30 +0000 (14:02 +0300)]
adpcmenc: Calculate the IMA_QT predictor without overflow

Previously, the value given to put_bits was 10 bits long for positive
predictors, even though 9 bits were to be written. The extra bit could
in some cases overwrite existing bits in the bitstream writer cache.

This fixes a failed assert in put_bits.h, when running a version
built with -DDEBUG.

The fate test result gets slightly improved, thanks to getting rid
of the overwritten bits in the bitstream writer cache.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agox86: Add convenience macros to check for CPU extensions and flags
Diego Biurrun [Wed, 29 Aug 2012 16:53:14 +0000 (18:53 +0200)]
x86: Add convenience macros to check for CPU extensions and flags

11 years agox86: h264dsp: drop some unnecessary ifdefs around prototype declarations
Diego Biurrun [Sun, 2 Sep 2012 15:03:41 +0000 (17:03 +0200)]
x86: h264dsp: drop some unnecessary ifdefs around prototype declarations

11 years agomss12: merge decode_pixel() and decode_top_left_pixel()
Alberto Delmás [Fri, 31 Aug 2012 09:24:26 +0000 (11:24 +0200)]
mss12: merge decode_pixel() and decode_top_left_pixel()

No meaningful generated code differences using gcc -O3.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agomss12: reduce SliceContext size from 1067 to 164 KB
Alberto Delmás [Sun, 2 Sep 2012 10:44:21 +0000 (12:44 +0200)]
mss12: reduce SliceContext size from 1067 to 164 KB

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agomss12: move SliceContexts out of the common context into the codec contexts
Alberto Delmás [Sun, 2 Sep 2012 10:42:01 +0000 (12:42 +0200)]
mss12: move SliceContexts out of the common context into the codec contexts

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
11 years agobuild: avcodec: order cosmetics
Diego Biurrun [Mon, 13 Aug 2012 23:57:22 +0000 (01:57 +0200)]
build: avcodec: order cosmetics

11 years agointrax8dsp: Add missing #include to make header standalone
Diego Biurrun [Mon, 3 Sep 2012 09:21:19 +0000 (11:21 +0200)]
intrax8dsp: Add missing #include to make header standalone

11 years agoDelete motion-test tool; it is of doubtful utility.
Diego Biurrun [Tue, 28 Aug 2012 21:15:39 +0000 (23:15 +0200)]
Delete motion-test tool; it is of doubtful utility.

11 years agointrax8: move functions from dsputil to own context
Mans Rullgard [Sat, 25 Aug 2012 13:35:52 +0000 (14:35 +0100)]
intrax8: move functions from dsputil to own context

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agocrypto: Remove a stray double space
Martin Storsjö [Thu, 30 Aug 2012 21:51:49 +0000 (00:51 +0300)]
crypto: Remove a stray double space

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoRename missed cases of FF_OPT_TYPE_* to AV_OPT_TYPE_*
Martin Storsjö [Fri, 31 Aug 2012 10:29:36 +0000 (13:29 +0300)]
Rename missed cases of FF_OPT_TYPE_* to AV_OPT_TYPE_*

Signed-off-by: Martin Storsjö <martin@martin.st>
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

11 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

11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 years agovc1: export some functions
Kostya Shishkov [Mon, 27 Aug 2012 17:21:00 +0000 (19:21 +0200)]
vc1: export some functions

This is a preparatory step for the MSS2 decoder which needs to use
the WMV9 decoder to decode some kinds of frames.

From the patch by Alberto Delmás <adelmas@gmail.com>

11 years agoconfigure: use HOSTCC_C/O in check_host_cc
Mans Rullgard [Mon, 27 Aug 2012 21:19:42 +0000 (22:19 +0100)]
configure: use HOSTCC_C/O in check_host_cc

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: use AS_O setting in check_as
Mans Rullgard [Mon, 27 Aug 2012 21:19:06 +0000 (22:19 +0100)]
configure: use AS_O setting in check_as

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoconfigure: use LD_O setting in check_ld()
Mans Rullgard [Mon, 27 Aug 2012 21:04:25 +0000 (22:04 +0100)]
configure: use LD_O setting in check_ld()

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agoRevert "dsputil: make {add/put/put_signed}_pixels_clamped() non-static."
Mans Rullgard [Sat, 25 Aug 2012 11:34:55 +0000 (12:34 +0100)]
Revert "dsputil: make {add/put/put_signed}_pixels_clamped() non-static."

This reverts commit 484a337cd7cd8bb180c4a1bd3321881f1c874a92.

These functions were used in f8bed30 "VC1: merge idct8x8, coeff
adjustments and put_pixels" which was reverted in 18b6a69.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agobuild: Restore dependency of acelp_filters.o on celp_math.o
Diego Biurrun [Mon, 27 Aug 2012 19:05:52 +0000 (21:05 +0200)]
build: Restore dependency of acelp_filters.o on celp_math.o

11 years agocelp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c()
Diego Biurrun [Sun, 26 Aug 2012 09:29:39 +0000 (11:29 +0200)]
celp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c()