9 years agoasfdec: add missing #include for av_bswap32()
Mans Rullgard [Thu, 19 May 2011 11:31:05 +0000 (12:31 +0100)]
asfdec: add missing #include for av_bswap32()

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agompegaudio: merge two #if CONFIG_FLOAT blocks
Mans Rullgard [Mon, 16 May 2011 17:59:25 +0000 (18:59 +0100)]
mpegaudio: merge two #if CONFIG_FLOAT blocks

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agompegaudio: move some struct definitions from mpegaudio.h
Mans Rullgard [Tue, 17 May 2011 13:22:25 +0000 (14:22 +0100)]
mpegaudio: move some struct definitions from mpegaudio.h

These structs are only used in mpegaudiodec.c, so move them there
and remove no longer needed #include lines from mpegaudio.h.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agoMove some mpegaudio functions to new mpegaudiodsp subsystem
Mans Rullgard [Mon, 16 May 2011 15:52:01 +0000 (16:52 +0100)]
Move some mpegaudio functions to new mpegaudiodsp subsystem

This separation allows these functions to be used in a cleaner
fashion from other codecs (e.g. qdm2) and simplifies creating
optimised versions of them.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agoClean up #includes in cmdutils.h.
Diego Biurrun [Sun, 15 May 2011 15:09:25 +0000 (17:09 +0200)]
Clean up #includes in cmdutils.h.

inttypes.h is not necessary, just stdint.h is enough.
Unconditionally #include avfilter.h in cmdutils.h.  It is an installed
header with no non-standard external dependencies, so it is safe.

9 years agog729: Merge g729.h into g729dec.c.
Diego Biurrun [Tue, 17 May 2011 13:29:58 +0000 (15:29 +0200)]
g729: Merge g729.h into g729dec.c.

The header contains just a single define that is only used in g729dec.c.

9 years ago10l: wrap float_interleave functions in HAVE_YASM.
Justin Ruggles [Thu, 19 May 2011 00:18:08 +0000 (20:18 -0400)]
10l: wrap float_interleave functions in HAVE_YASM.

fixes compilation with --disable-yasm

9 years agoAPIchanges: fill in date and commit for request_sample_fmt
Justin Ruggles [Wed, 18 May 2011 21:52:31 +0000 (17:52 -0400)]
APIchanges: fill in date and commit for request_sample_fmt

9 years agoAdd floating-point sample format support to the ac3, eac3, dca, aac, and vorbis
Justin Ruggles [Sat, 23 Apr 2011 01:30:19 +0000 (21:30 -0400)]
Add floating-point sample format support to the ac3, eac3, dca, aac, and vorbis

Based on patches by clsid2 in ffdshow-tryout.

9 years agoAdd support for request_sample_format in ffmpeg and ffplay.
Justin Ruggles [Sun, 24 Apr 2011 20:48:42 +0000 (16:48 -0400)]
Add support for request_sample_format in ffmpeg and ffplay.

9 years agoAdd APIchanges entry for request_sample_fmt.
Justin Ruggles [Thu, 21 Apr 2011 14:48:05 +0000 (10:48 -0400)]
Add APIchanges entry for request_sample_fmt.

9 years agoAdd request_sample_fmt field to AVCodecContext.
Justin Ruggles [Tue, 19 Apr 2011 23:47:01 +0000 (19:47 -0400)]
Add request_sample_fmt field to AVCodecContext.

This will allow audio decoders to support output of different sample formats
as a runtime option.

9 years agoAdd float_interleave() to FmtConvertContext with x86-optimized versions.
Justin Ruggles [Sun, 24 Apr 2011 21:50:17 +0000 (17:50 -0400)]
Add float_interleave() to FmtConvertContext with x86-optimized versions.

Partially based on patches by clsid2 in ffdshow-tryout.
ff_float_interleave6() x86 improvements by Loren Merrit.

9 years agoRemove unused make variable SEEK_REFFILE
Mans Rullgard [Wed, 18 May 2011 16:13:15 +0000 (17:13 +0100)]
Remove unused make variable SEEK_REFFILE

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agofate: remove redundant aref and vref references
Mans Rullgard [Wed, 18 May 2011 16:23:47 +0000 (17:23 +0100)]
fate: remove redundant aref and vref references

The ref targets are included in the FATE_[AV]CODEC lists created
by configure so they do not need to be listed separately in the
makefile.  Filter them out when setting dependencies to avoid make
warnings about circular deps.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agofate: remove do_ffmpeg_nocheck function
Mans Rullgard [Wed, 18 May 2011 14:13:58 +0000 (15:13 +0100)]
fate: remove do_ffmpeg_nocheck function

This function is essentially an alias for run_ffmpeg and is only
used in one place.  This patch removes the function and replaces
the call with the equivalent (simpler) run_ffmpeg call.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agofate: do not collect -benchmark output
Mans Rullgard [Wed, 18 May 2011 14:05:26 +0000 (15:05 +0100)]
fate: do not collect -benchmark output

The old regtest scripts pass -benchmark and collect the utime values.
As these values are never used, this machinery can be removed.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agompegaudiodec: remove decode_end() function
Mans Rullgard [Mon, 16 May 2011 15:37:38 +0000 (16:37 +0100)]
mpegaudiodec: remove decode_end() function

This function is not needed since 721d6f2dc5 removed the DCT table
allocations for the configuration used here.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agofate: run aref and vref as regular tests
Mans Rullgard [Wed, 18 May 2011 12:05:39 +0000 (13:05 +0100)]
fate: run aref and vref as regular tests

These tests create reference files used for psnr calculation in
the other codec tests.  Treating them as (mostly) regular tests
simplifies the makefile and makes them visible in the fate reports.
The latter makes errors in these runs easier to identify.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agompegaudio: sanitise compute_antialias_* names
Mans Rullgard [Tue, 17 May 2011 19:39:09 +0000 (20:39 +0100)]
mpegaudio: sanitise compute_antialias_* names

This makes the compute_antialias functions use the same naming
convention as everything else.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agompeg12: add slice-threading checks to slice-threading initializers.
Ronald S. Bultje [Tue, 17 May 2011 14:26:29 +0000 (10:26 -0400)]
mpeg12: add slice-threading checks to slice-threading initializers.

Fixes "make THREADS=2 THREAD_TYPE=1 fate-mpeg2-field-enc".

9 years agoh264: copy pixel_shift between slice threading contexts.
Ronald S. Bultje [Tue, 17 May 2011 14:26:30 +0000 (10:26 -0400)]
h264: copy pixel_shift between slice threading contexts.


9 years agomdec: enable frame-level multithreading.
Alexander Strange [Tue, 10 May 2011 15:29:09 +0000 (11:29 -0400)]
mdec: enable frame-level multithreading.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
9 years agomdec.c: fix overread.
Ronald S. Bultje [Tue, 10 May 2011 15:29:08 +0000 (11:29 -0400)]
mdec.c: fix overread.

9 years agoFix compilation of iirfilter-test.
Justin Ruggles [Tue, 17 May 2011 22:06:51 +0000 (18:06 -0400)]
Fix compilation of iirfilter-test.

9 years agolibx264: handle closed GOP codec flag
Jindrich Makovicka [Tue, 10 May 2011 13:11:45 +0000 (15:11 +0200)]
libx264: handle closed GOP codec flag

Also update libx264 presets to keep closed gop as default.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agolavf: remove duplicate assignment in avformat_alloc_context.
Anton Khirnov [Fri, 29 Apr 2011 09:42:05 +0000 (11:42 +0200)]
lavf: remove duplicate assignment in avformat_alloc_context.

AVClass is already initialized in  avformat_get_context_defaults.

9 years agolavf: use designated initializers for AVClasses.
Anton Khirnov [Fri, 29 Apr 2011 09:30:02 +0000 (11:30 +0200)]
lavf: use designated initializers for AVClasses.

9 years agoflvdec: clenup debug code
Alex Converse [Tue, 17 May 2011 19:49:42 +0000 (12:49 -0700)]
flvdec: clenup debug code

9 years agoasfdec: fix possible overread on broken files.
Uoti Urpala [Thu, 12 May 2011 14:20:27 +0000 (10:20 -0400)]
asfdec: fix possible overread on broken files.

9 years agoasfdec: do not fall back to binary/generic search
Vladimir Pantelic [Tue, 17 May 2011 15:30:05 +0000 (17:30 +0200)]
asfdec: do not fall back to binary/generic search

asf_read_seek() inside the asf demuxer already does the
right thing, it tries the index and if that fails it uses
binary search. If binary search is called from outside of asfdec.c
it will fail because the asf code cannot clean up after itself.
Therefore introduce AVFMT_NOBINSEARCH that prevents the seek
code to fallback to binary search and AVFMT_NOGENSEARCH that
prevents the seek code to fallback to generic search.

9 years agoasfdec: reindent after previous commit c7bd5ed
Vladimir Pantelic [Thu, 12 May 2011 08:26:32 +0000 (10:26 +0200)]
asfdec: reindent after previous commit c7bd5ed

9 years agoasfdec: fallback to binary search internally
Vladimir Pantelic [Thu, 12 May 2011 08:25:54 +0000 (10:25 +0200)]
asfdec: fallback to binary search internally

lavf will do that anyway in case seek by index fails

9 years agompegaudio: add _fixed suffix to some names
Mans Rullgard [Tue, 17 May 2011 12:07:08 +0000 (13:07 +0100)]
mpegaudio: add _fixed suffix to some names

This adds a _fixed suffix to the fixed-point versions of things
with both float and fixed-point variants.  This makes it more
consistent with other dual-implementation things, e.g. fft.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agoModify x86util.asm to ease transitioning to 10-bit H.264 assembly.
Daniel Kang [Mon, 16 May 2011 21:18:22 +0000 (17:18 -0400)]
Modify x86util.asm to ease transitioning to 10-bit H.264 assembly.

Arguments for variable size instructions are added to many macros, along
with other various changes. The x86util.asm code was ported from x264.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agodct: build dct32 as separate object files
Mans Rullgard [Tue, 17 May 2011 10:48:28 +0000 (11:48 +0100)]
dct: build dct32 as separate object files

This builds the float and fixed-point versions of dct32 separately
instead of #including the file in dct.c and mpegaudiodec.c.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agoqdm2: include correct header for rdft
Mans Rullgard [Tue, 17 May 2011 12:42:43 +0000 (13:42 +0100)]
qdm2: include correct header for rdft

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agoffmpeg: fix -aspect cli option
Baptiste Coudurier [Fri, 1 Apr 2011 15:30:45 +0000 (17:30 +0200)]
ffmpeg: fix -aspect cli option

Redesign the way -aspect option is handled. This is done by making
ffmpeg read the sample aspect ratio set in the corresponding input
stream by default, and overriding it using the value specified by

If the output display aspect ratio is specified with -aspect, it is
set at the end of the filterchain, thus overriding the value set by
filters in the filterchain.

This implementation is more robust, since does not modify the
filterchain description (which was creating potential syntax errors).

(Cherry-pick abf8342aa94bdf06bb324f6723a6743dd628d5c6)

Another aspect ratio fix try. This leaves the setdar addition at the end
(preferred by people).

(Cherry-pick e7c7b0d000e81d24327602e04d8fed400dbb7193)

9 years agoRestructure video filter implementation in ffmpeg.c.
Michael Niedermayer [Mon, 14 Feb 2011 22:02:10 +0000 (23:02 +0100)]
Restructure video filter implementation in ffmpeg.c.

This fixes several bugs like multiple outputs and -aspect mixed with -vf

(cherry picked from commit 1762d9ced70ccc46c5d3e5d64e56a48d0fbbd4f7)
(cherry picked from commit 5c20c81bfa526b3a269db9c88b0c9007861f0917)
(cherry picked from commit a7844c580d83d8466c161a0e3979b3902d0d9100)

9 years agoffplay: remove audio_write_get_buf_size() forward declaration
Stefano Sabatini [Tue, 12 Apr 2011 10:06:49 +0000 (12:06 +0200)]
ffplay: remove audio_write_get_buf_size() forward declaration

Move up the definition of audio_write_get_buf_size(), so that it is
defined before it is used. Simplify.
(cherry picked from commit 8776f3d22e401e30d17856e341f6cabbbefa92f7)

9 years agolavfi: print key-frame and picture type information in ff_dlog_ref()
Stefano Sabatini [Sat, 23 Apr 2011 17:55:59 +0000 (19:55 +0200)]
lavfi: print key-frame and picture type information in ff_dlog_ref()

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
(cherry picked from commit f7bdffb09da597c5d6afff5359523370470ad072)

9 years agomathops: remove ancient confusing comment
Mans Rullgard [Mon, 16 May 2011 20:31:06 +0000 (21:31 +0100)]
mathops: remove ancient confusing comment

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agocws2fws: Improve error message wording.
Diego Biurrun [Sun, 15 May 2011 20:17:35 +0000 (22:17 +0200)]
cws2fws: Improve error message wording.

9 years agotools: Check the return value of write().
Diego Biurrun [Sun, 15 May 2011 16:34:11 +0000 (18:34 +0200)]
tools: Check the return value of write().

This fixes several warnings of the type:
warning: ignoring return value of ‘write’, declared with attribute warn_unused_result

9 years agompegaudio: move OUT_FMT macro to mpegaudiodec.c
Mans Rullgard [Mon, 16 May 2011 16:06:30 +0000 (17:06 +0100)]
mpegaudio: move OUT_FMT macro to mpegaudiodec.c

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agompegaudio: remove OUT_MIN/MAX macros
Mans Rullgard [Mon, 16 May 2011 16:13:23 +0000 (17:13 +0100)]
mpegaudio: remove OUT_MIN/MAX macros

These macros are no longer needed after the s32 output was removed.
Change the relevant code to use av_clip_int16() instead of using
explicit limits.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agoAdd missing #includes to mp3_header_(de)compress bsf
Mans Rullgard [Mon, 16 May 2011 14:23:22 +0000 (15:23 +0100)]
Add missing #includes to mp3_header_(de)compress bsf

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agodct: fix indentation
Mans Rullgard [Mon, 16 May 2011 14:57:36 +0000 (15:57 +0100)]
dct: fix indentation

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agodct: bypass table allocation for DCT_II of size 32
Mans Rullgard [Mon, 16 May 2011 14:57:04 +0000 (15:57 +0100)]
dct: bypass table allocation for DCT_II of size 32

The size-32 DCT_II has a special implementation which doesn't use
the normal tables.  Skipping allocation of these in this case saves
some memory.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agoh264dsp_mmx: Add #ifdefs around some mmxext functions on x86_64.
Gil Pedersen [Mon, 16 May 2011 12:40:56 +0000 (14:40 +0200)]
h264dsp_mmx: Add #ifdefs around some mmxext functions on x86_64.

This fixes linking errors due to undefined symbols on x86_64 OS X.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agoRemove unused header mpegaudio3.h.
Diego Biurrun [Mon, 16 May 2011 01:34:20 +0000 (03:34 +0200)]
Remove unused header mpegaudio3.h.

The header is a part of an MP3 encoder that never saw the light of day.

9 years agoaacdec: Use float instead of int16_t for ltp_state to avoid needless rounding.
Justin Ruggles [Sun, 15 May 2011 15:07:29 +0000 (11:07 -0400)]
aacdec: Use float instead of int16_t for ltp_state to avoid needless rounding.

9 years agoacelp: Remove unused gray_decode table.
Diego Biurrun [Fri, 29 Apr 2011 17:42:00 +0000 (19:42 +0200)]
acelp: Remove unused gray_decode table.

9 years agodfa: Remove unused variable.
Diego Biurrun [Sun, 15 May 2011 11:12:47 +0000 (13:12 +0200)]
dfa: Remove unused variable.

This fixes the warning:
libavcodec/dfa.c:189: warning: unused variable ‘frame_end’

9 years agoconfigure: Include AVX availability in summary output.
Diego Biurrun [Sun, 15 May 2011 09:46:18 +0000 (11:46 +0200)]
configure: Include AVX availability in summary output.

9 years agoconfigure: use same CPPFLAGS in kFreeBSD as Linux
Reinhard Tartler [Sat, 14 May 2011 14:10:30 +0000 (16:10 +0200)]
configure: use same CPPFLAGS in kFreeBSD as Linux

046f081b46c8479820409cf8f530b988221bd15b reorganized the CPPFLAGS to no
longer add -D_POSIX_C_SOURCE unconditionally, but only on systems (e.g.,
glibc based ones) that require it.  As kFreeBSD uses glibc, it needs to
be treated similar.

Additionally, _BSD_SOURCE is turned on to enable some additional types
such as caddr_t, which are normally enabled on BSD but not with glibc.

9 years agoFix FSF address copy paste error in some license headers.
Diego Biurrun [Sat, 14 May 2011 19:32:31 +0000 (21:32 +0200)]
Fix FSF address copy paste error in some license headers.

9 years agoAdd an aac sample which uses LTP to fate-aac.
Justin Ruggles [Tue, 26 Apr 2011 22:19:52 +0000 (18:19 -0400)]
Add an aac sample which uses LTP to fate-aac.

9 years ago[PATCH] Update pixdesc_be fate refs after adding 9/10bit YUV420P formats.
Ronald S. Bultje [Fri, 13 May 2011 23:01:50 +0000 (19:01 -0400)]
[PATCH] Update pixdesc_be fate refs after adding 9/10bit YUV420P formats.

Also remove code that overwrites the C versions of functions in
sws_init_swScale_altivec(), so that it uses the C functions of files
if no altivec-optimized version exists.

9 years agoarm: properly mark external symbol call
Martin Aumüller [Sat, 14 May 2011 08:10:27 +0000 (10:10 +0200)]
arm: properly mark external symbol call

Surround memset and ff_vp8_dct_cat_prob by X() in order to fix iOS build

Includes patch by Luca Barbato <lu_zero@gentoo.org>.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years agoswscale: properly inline bits/endianness in yuv2yuvX16inC().
Ronald S. Bultje [Fri, 13 May 2011 14:28:49 +0000 (10:28 -0400)]
swscale: properly inline bits/endianness in yuv2yuvX16inC().

9 years agoswscale: fix clipping of 9/10bit YUV420P.
Ronald S. Bultje [Fri, 13 May 2011 20:45:04 +0000 (16:45 -0400)]
swscale: fix clipping of 9/10bit YUV420P.

9 years agoAdd av_clip_uintp2() function
Mans Rullgard [Fri, 13 May 2011 15:39:17 +0000 (16:39 +0100)]
Add av_clip_uintp2() function

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agodfa: fix buffer overflow checks to avoid integer overflows.
Reimar Döffinger [Tue, 29 Mar 2011 19:14:55 +0000 (21:14 +0200)]
dfa: fix buffer overflow checks to avoid integer overflows.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agomovenc: always write esds descriptor length using 4 bytes.
Baptiste Coudurier [Wed, 30 Mar 2011 21:08:16 +0000 (14:08 -0700)]
movenc: always write esds descriptor length using 4 bytes.

ipod shuffle doesn't support anything else.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoffmpeg: use parse_number_and_die() when it makes sense
Stefano Sabatini [Mon, 11 Apr 2011 11:16:07 +0000 (13:16 +0200)]
ffmpeg: use parse_number_and_die() when it makes sense

Prefer parse_number_or_die() over atoi()/atol() parsing for the options:
-pass, -top, -vc, and -qscale.

Improve input validation.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoffmpeg: get rid of the 'q' key schizofrenia
Anton Khirnov [Thu, 12 May 2011 13:15:07 +0000 (15:15 +0200)]
ffmpeg: get rid of the 'q' key schizofrenia

SIGINT for quitting should be enough for everybody.

9 years agortpdec_qdm2: Don't try to parse data packet if no configuration is received
Martin Storsjö [Thu, 12 May 2011 19:47:53 +0000 (22:47 +0300)]
rtpdec_qdm2: Don't try to parse data packet if no configuration is received

The later parsing of payload data depends on the configuration
being present. If it hasn't been configured properly yet,
parsing a data packet may lead to a crash.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoac3enc: put the counting of stereo rematrixing bits in the same place to
Justin Ruggles [Sat, 30 Apr 2011 19:55:18 +0000 (15:55 -0400)]
ac3enc: put the counting of stereo rematrixing bits in the same place to
make the code easier to understand.

9 years agoac3enc: clean up count_frame_bits() and count_frame_bits_fixed()
Justin Ruggles [Sat, 30 Apr 2011 19:52:55 +0000 (15:52 -0400)]
ac3enc: clean up count_frame_bits() and count_frame_bits_fixed()

9 years agompegvideo: make FF_DEBUG_DCT_COEFF output coeffs via av_log() instead of just via...
Michael Niedermayer [Wed, 23 Feb 2011 22:38:52 +0000 (23:38 +0100)]
mpegvideo: make FF_DEBUG_DCT_COEFF output coeffs via av_log() instead of just via AVFrame.

This allows the values to be used without changing C code and is closer to how
the other DEBUG flags work.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agosrtdec: make sure we don't write past the end of buffer
Aurelien Jacobs [Fri, 25 Mar 2011 00:02:53 +0000 (01:02 +0100)]
srtdec: make sure we don't write past the end of buffer

Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agowmaenc: improve channel count and bitrate error handling in encode_init()
Tomas Härdin [Mon, 21 Mar 2011 09:52:36 +0000 (10:52 +0100)]
wmaenc: improve channel count and bitrate error handling in encode_init()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agomatroskaenc: make sure we don't produce invalid file with no codec ID
Aurelien Jacobs [Thu, 24 Mar 2011 00:56:26 +0000 (01:56 +0100)]
matroskaenc: make sure we don't produce invalid file with no codec ID

Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agomatroskadec: check that pointers were initialized before accessing them
Aurelien Jacobs [Wed, 23 Mar 2011 23:28:19 +0000 (00:28 +0100)]
matroskadec: check that pointers were initialized before accessing them

Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agolavf: fix function name in compute_pkt_fields2 av_dlog message
Stefano Sabatini [Thu, 17 Mar 2011 11:52:40 +0000 (12:52 +0100)]
lavf: fix function name in compute_pkt_fields2 av_dlog message

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agolavf: fix av_find_best_stream when providing a wanted stream.
Marton Balint [Sun, 20 Feb 2011 00:18:30 +0000 (01:18 +0100)]
lavf: fix av_find_best_stream when providing a wanted stream.

In the main loop, stream_number is incremented after checking the stream type,
so the search usually will not find the wanted stream.

This patch eliminates the useless stream_number variable and introduces a new
one, called real_stream_index to store the real stream index of the current
stream, no matter if we are looping through all the streams or only the streams
of a program.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agolavf: fix av_find_best_stream when decoder_ret is given and using a related stream.
Marton Balint [Sun, 20 Feb 2011 00:18:49 +0000 (01:18 +0100)]
lavf: fix av_find_best_stream when decoder_ret is given and using a related stream.

Yet another fix for the code originally designed for use without related_stream.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoffmpeg: factorize quality calculation
Michael Niedermayer [Wed, 6 Apr 2011 19:17:32 +0000 (21:17 +0200)]
ffmpeg: factorize quality calculation

Calculate quality value once per stream in print_report().
Also fix segfault, as coded_frame can be NULL.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agotiff: add support for SamplesPerPixel tag in tiff_decode_tag()
Stefano Sabatini [Mon, 9 May 2011 10:51:24 +0000 (12:51 +0200)]
tiff: add support for SamplesPerPixel tag in tiff_decode_tag()

Format detection and internal frame initialization is moved to a
separate init_image() function, which is called when all the tags have
been read, and so both BitsPerSample and SamplesPerPixel information
has been collected.

This fixes decoding of the file 11.tiff from roundup issue #1925.

Based on a patch by Kostya Shishkov <kostya.shishkov@gmail.com>.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agotiff: Prefer enum TiffCompr over int for TiffContext.compr.
Stefano Sabatini [Mon, 9 May 2011 19:05:42 +0000 (21:05 +0200)]
tiff: Prefer enum TiffCompr over int for TiffContext.compr.

This is safer and helps debugging.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agomov: Support edit list atom version 1.
Yusuke Nakamura [Wed, 11 May 2011 20:28:27 +0000 (05:28 +0900)]
mov: Support edit list atom version 1.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agoconfigure: Enable libpostproc automatically if GPL code is enabled.
Måns Rullgård [Thu, 12 May 2011 12:21:49 +0000 (13:21 +0100)]
configure: Enable libpostproc automatically if GPL code is enabled.

Enabling libpostproc automatically should give it more compile coverage
and save the FATE box maintainers some configuration hassles.

9 years agoCosmetics: fix prototypes in oggdec
Clément Bœsch [Wed, 11 May 2011 18:43:29 +0000 (20:43 +0200)]
Cosmetics: fix prototypes in oggdec

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agooggdec: fix memleak with continuous streams.
Clément Bœsch [Wed, 11 May 2011 18:43:27 +0000 (20:43 +0200)]
oggdec: fix memleak with continuous streams.

This avoids the creation of a new AVStream instead of replacing it when
a stream reset occurs (track change with some webradios for example).

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agomatroskaenc: add missing new line in av_log() call
Aurelien Jacobs [Thu, 24 Mar 2011 00:54:15 +0000 (01:54 +0100)]
matroskaenc: add missing new line in av_log() call

Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agodnxhdenc: add AVClass in private context.
Baptiste Coudurier [Wed, 30 Mar 2011 15:47:30 +0000 (08:47 -0700)]
dnxhdenc: add AVClass in private context.

Fixes private options.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agomovenc: fix yuv range in avid atoms used by dnxhd.
Baptiste Coudurier [Wed, 23 Mar 2011 17:22:05 +0000 (10:22 -0700)]
movenc: fix yuv range in avid atoms used by dnxhd.

yuv range: full 1 / normal 2

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agomovenc: fix adpcm mono muxing.
Alex Converse [Mon, 28 Feb 2011 00:29:21 +0000 (16:29 -0800)]
movenc: fix adpcm mono muxing.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agompegts: do not output known sized packet if an unbounded packet is already queued.
Baptiste Coudurier [Mon, 28 Feb 2011 00:19:50 +0000 (16:19 -0800)]
mpegts: do not output known sized packet if an unbounded packet is already queued.

Fix issue #2624.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoffprobe: tweak error message in open_input_file()
Stefano Sabatini [Sun, 13 Mar 2011 20:22:59 +0000 (21:22 +0100)]
ffprobe: tweak error message in open_input_file()

Replace "codec (id=%d)" with "codec with id %d", slightly more

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agopatcheck: warn about assert usage
Peter Ross [Fri, 18 Mar 2011 11:28:52 +0000 (22:28 +1100)]
patcheck: warn about assert usage

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoconfigure: sort filter deps entries
Stefano Sabatini [Fri, 25 Mar 2011 17:49:24 +0000 (18:49 +0100)]
configure: sort filter deps entries

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoReplace int_fast integer types with their sized standard posix counterparts.
Diego Biurrun [Fri, 29 Apr 2011 14:08:20 +0000 (16:08 +0200)]
Replace int_fast integer types with their sized standard posix counterparts.

The _fast integer types provide no realworld benefits, but may introduce
portability issues and are just plain ugly.

9 years agojfdct: Replace sized int_fast integer types with plain int/unsigned.
Diego Biurrun [Fri, 29 Apr 2011 18:17:43 +0000 (20:17 +0200)]
jfdct: Replace sized int_fast integer types with plain int/unsigned.

int/unsigned is the natural memory access type for CPUs, using sized types
for temporary variables, counters and similar just increases code size and
can possibly cause a slowdown.

9 years agoconfigure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.
Diego Biurrun [Wed, 11 May 2011 15:52:51 +0000 (17:52 +0200)]
configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.

Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems
since it causes certain system functions to be hidden on some (BSD) systems.
The solution is to only add the flag on systems that really require it, i.e.
glibc-based ones.

This change makes BSD systems compile out-of-the-box without the need for
adding specific flags manually.  It also allows dropping a number of flags
set manually on a file-per-file basis, but were only present to work around
breakage introduced by the presence of _POSIX_C_SOURCE.

Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems.  We use XSI extensions
in several places already, so it is preferable to define it globally instead
of littering source files with individual #defines only needed for glibc.

9 years agonsv: Fix misdetection of MP3 files as NSV.
Thierry Foucu [Thu, 12 May 2011 04:27:04 +0000 (21:27 -0700)]
nsv: Fix misdetection of MP3 files as NSV.

If an MP3 file contains the string NSVs, the NSV probe will confuse it for an
NSV file. Check for 0xBEEF after a Video/Audio chunk to achieve more accuracy.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agooggdec: use explicit AVInputFormat struct initializers
Clément Bœsch [Wed, 11 May 2011 18:43:31 +0000 (20:43 +0200)]
oggdec: use explicit AVInputFormat struct initializers

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agooggdec: simplify ogg_probe
Clément Bœsch [Wed, 11 May 2011 18:43:30 +0000 (20:43 +0200)]
oggdec: simplify ogg_probe

Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years agoswscale: fix YUV420P 9/10bit support.
Ronald S. Bultje [Wed, 11 May 2011 23:15:14 +0000 (19:15 -0400)]
swscale: fix YUV420P 9/10bit support.

Fix handling of input if not in native endianness, and add support for
9/10-bit output. This allows us to force endianness of YUV420P 9/10bit
in the H264/10bit fate tests, which should fix them on big-endian