Diego Biurrun
3fbc9bbb88
mpeg4videoenc: Remove disabled variant of mpeg4_encode_block().
...
As a nice sideeffect this fixes the following warning:
libavcodec/mpeg4videoenc.c:302:20: warning: variable ‘rl’ set but not used [-Wunused-but-set-variable]
2011-06-26 22:30:14 +02:00
Diego Biurrun
f3876ea485
Move some variable declarations below the proper #ifdefs.
...
This avoids warnings about set-but-unused variables.
2011-06-26 16:32:13 +02:00
Diego Biurrun
c713620b4c
ffplay: Remove unused-but-set channels variable from update_sample_display().
2011-06-25 14:11:33 +02:00
Diego Biurrun
729f953fb5
build: Add DEP_LIBS dependency directly to the shared library build rule.
...
The dependency was added conditional to a variable that is always defined,
so it is safe to add it directly.
2011-06-25 13:02:51 +02:00
Diego Biurrun
89b5829d0a
build: Remove multiple inclusion guards from config.mak.
...
config.mak is no longer included multiple times; the guards are pointless.
2011-06-25 13:02:51 +02:00
Diego Biurrun
a6213f3dce
build: Remove redundant config.mak includes from subdirectory Makefiles.
...
Calling Make from subdirectories is not supported and config.mak has
multiple inclusion guards anyway, so the top-level include is enough.
2011-06-25 13:02:51 +02:00
Diego Biurrun
3a0d0ff5e6
aacenc: Mark psy_3gpp_window() as av_unused.
...
It is intentionally left in to allow adding 3GPP-style windowing in the future.
Marking it av_unused silences an annoying unused function warning.
2011-06-25 11:39:36 +02:00
Diego Biurrun
b36518dcf4
configure: Add -Wno-format-zero-length to CFLAGS.
...
The C standard specifies that zero-length format strings are allowed.
2011-06-24 21:16:10 +02:00
Diego Biurrun
adbfc605f6
doxygen: Consistently use '@' instead of '\' for Doxygen markup.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-06-24 00:37:49 +02:00
Diego Biurrun
35fa0d4758
nsvdec: Propagate error values instead of returning 0 in nsv_read_header().
...
This eliminates a warning about a set-but-unused variable.
2011-06-23 13:47:16 +02:00
Diego Biurrun
087d93f568
swscale: Remove unused variable from ff_bfin_get_unscaled_swscale().
2011-06-21 20:53:52 +02:00
Diego Biurrun
6371ce4b0f
h264: Fix assert that failed to compile with -DDEBUG.
...
The assert referenced a variable that no longer exists since 4:4:4 support.
2011-06-21 20:52:45 +02:00
Diego Biurrun
1d076f46a0
rtpenc_latm: Consistently use "Libav" in license boilerplate.
2011-06-16 17:13:34 +02:00
Diego Biurrun
a60466dbc3
swscale: Remove HAVE_MMX from files that are only compiled with MMX enabled.
2011-06-15 01:18:10 +02:00
Diego Biurrun
97e057ff81
swscale: Fix compilation with --disable-mmx2.
...
Some MMX2 functions were being referenced without proper #ifdefs.
2011-06-15 01:17:59 +02:00
Diego Biurrun
35bdaf3d42
utils: Drop pointless '#if 1' preprocessor directive.
2011-06-13 23:02:28 +02:00
Diego Biurrun
919d7a345a
Replace DEBUG_SEEK/DEBUG_SI + av_log combinations by av_dlog.
2011-06-10 19:12:14 +02:00
Diego Biurrun
5bd6ec6d59
options: Add missing braces around struct initializer.
...
This fixes the warning:
libavformat/options.c:62:1: warning: missing braces around initializer [-Wmissing-braces]
2011-06-08 15:01:02 +02:00
Diego Biurrun
b7847a3f2e
mov: Remove leftover crufty debug statement with references to a local file.
2011-06-08 12:01:41 +02:00
Diego Biurrun
a4855adc80
dvbsubdec: Fix compilation of debug code.
2011-06-08 11:53:53 +02:00
Diego Biurrun
ac4a854811
Remove some non-compiling debug messages.
2011-06-08 00:45:47 +02:00
Diego Biurrun
8543f0f923
ffplay: Fix non-compiling debug printf and replace it by av_dlog.
2011-06-08 00:45:25 +02:00
Diego Biurrun
d3778972d8
ac3enc: Fix linking of AC-3 encoder without the E-AC-3 encoder.
...
The AC-3 encoder unconditionally references some symbols from the E-AC-3
encoder; make those references conditional to fix linking.
2011-06-08 00:06:19 +02:00
Diego Biurrun
b9478cfefb
shorten: Remove stray DEBUG #define and corresponding av_dlog statement.
2011-06-07 15:18:43 +02:00
Diego Biurrun
2d9570a304
vorbisdec: Restore mistakenly removed debug output.
2011-06-07 14:02:38 +02:00
Diego Biurrun
e8f6bd4b88
configure: Document --enable-vdpau.
...
The option is disabled by default, so enabling it should be documented.
2011-06-07 13:20:59 +02:00
Diego Biurrun
02a8d43adf
Replace some av_log/printf + #ifdef combinations by av_dlog.
2011-06-07 13:20:58 +02:00
Diego Biurrun
1f6b9cc31d
Replace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.
2011-06-07 13:20:58 +02:00
Diego Biurrun
f8ea0eb6ff
svq1dec: Fix debug statements that referenced non-existing context.
2011-06-07 13:20:57 +02:00
Diego Biurrun
d7cf5639e7
Replace some printf instances in debug code by av_log.
2011-06-07 13:20:57 +02:00
Diego Biurrun
e01bb264e7
inverse.c: Replace unnecessary intmath.h header by necessary stdint.h.
2011-06-07 10:31:26 +02:00
Diego Biurrun
dc25d79f49
Drop unnecessary directory prefixes from #include directives.
2011-06-07 10:31:26 +02:00
Diego Biurrun
eb7505e429
Remove some unused scripts from tools/.
2011-06-06 01:31:02 +02:00
Diego Biurrun
ef5d7e18f4
Skip tableprint.h during 'make checkheaders'.
...
It is only used on the host and may not compile on the target.
2011-06-05 16:01:01 +02:00
Diego Biurrun
fb8648ad4b
Remove unnecessary LIBAVFORMAT_BUILD #ifdef.
2011-06-05 16:01:01 +02:00
Diego Biurrun
f25a2ece76
Drop explicit filenames from @file Doxygen tags.
...
The filename is unnecessary and brittle across file renames.
2011-06-05 16:01:00 +02:00
Diego Biurrun
29b3de127f
Skip generated table headers during 'make checkheaders'.
2011-06-05 16:01:00 +02:00
Diego Biurrun and Mans Rullgard
92b4abc2ad
tableprint: Restore mistakenly deleted common.h #include for FF_ARRAY_ELEMS.
...
This fixes the build with hardcoded tables enabled.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-06-05 12:25:38 +01:00
Diego Biurrun
61ec024d39
Skip headers not designed to work standalone during 'make checkheaders'.
2011-06-04 18:16:38 +02:00
Diego Biurrun
8d459acc10
Add missing #includes to make headers self-contained.
...
This fixes 'make checkheaders'.
2011-06-04 18:15:50 +02:00
Diego Biurrun
43b6c3eb18
mpegts: Wrap #ifdef DEBUG and av_hex_dump_log() combination in a macro.
2011-06-03 15:43:34 +02:00
Diego Biurrun
a5514a8474
build: Simplify texi2html invocation through the --output option.
...
The --output option is available in texi2html since at least version 1.78.
2011-06-03 15:43:05 +02:00
Diego Biurrun
f190f676bc
Replace custom DEBUG preprocessor trickery by the standard one.
2011-06-03 00:44:06 +02:00
Diego Biurrun
068aa38712
vorbis: Remove non-compiling debug statement.
2011-06-03 00:44:05 +02:00
Diego Biurrun
ec6313ad86
vorbis: Remove pointless DEBUG #ifdef around debug output macros.
2011-06-03 00:44:04 +02:00
Diego Biurrun
fb52cf8267
cook: Remove non-compiling debug output.
...
random_state was changed from an int to a struct and can no longer be printed
as easily as before.
2011-06-03 00:44:04 +02:00
Diego Biurrun
0fc9c6554e
Remove pointless #ifdefs around function declarations in a header.
2011-06-03 00:44:04 +02:00
Diego Biurrun
2366462429
Replace #ifdef + av_log() combinations by av_dlog().
2011-06-03 00:44:03 +02:00
Diego Biurrun
df96f22d8f
Replace custom debug output functions by av_dlog().
2011-06-03 00:44:03 +02:00
Diego Biurrun
752207e36b
cook: Remove unused debug functions.
2011-06-03 00:43:56 +02:00
Diego Biurrun
b751f61106
Remove stray extra arguments from av_dlog() invocations.
2011-06-02 23:11:58 +02:00
Diego Biurrun
bde2c1c7fe
mpegaudiodec: Fix av_dlog() invocation.
...
Some parameters passed to the av_dlog can be either float or int, depending on
the mode the file is being compiled as. Cast those parameters to float and use
appropriate conversion specifiers.
2011-06-01 15:07:20 +02:00
Diego Biurrun
7e985c9e35
mpegaudioenc: Fix broken av_dlog statement.
2011-05-31 23:45:14 +02:00
Diego Biurrun
b0a4e5f9e7
Employ correct printf format specifiers, mostly in debug output.
2011-05-31 23:45:14 +02:00
Diego Biurrun
5ac4952a58
vf_drawtext: Replace FFmpeg by Libav in license boilerplate.
2011-05-31 21:15:49 +02:00
Diego Biurrun
f635a233e3
swscale: Remove unused variable.
2011-05-30 23:19:06 +02:00
Diego Biurrun
06b5facd4b
swscale: Remove disabled code.
2011-05-29 14:32:08 +02:00
Diego Biurrun
d6e0729b24
avfilter: Surround function only used in debug mode by appropriate #ifdef.
...
This fixes the warning:
libavfilter/avfilter.c:219: warning: ‘ff_get_ref_perms_string’ defined but not used
2011-05-29 13:43:03 +02:00
Diego Biurrun
2146f4928a
vf_crop: Replace #ifdef DEBUG + av_log() by av_dlog().
2011-05-29 13:43:02 +02:00
Diego Biurrun
5a5a0f1613
swscale: Remove unused variables in x86 code.
...
libswscale/x86/swscale_template.c:2072: warning: unused variable ‘canMMX2BeUsed’
libswscale/x86/swscale_template.c:2145: warning: unused variable ‘canMMX2BeUsed’
libswscale/x86/swscale_template.c:2209: warning: unused variable ‘chrVPixBuf’
libswscale/x86/swscale_template.c:2237: warning: unused variable ‘chrVSrcPtr’
2011-05-27 21:25:57 +02:00
Diego Biurrun
7eae011002
doc: Drop DJGPP section, Libav now compiles out-of-the-box on FreeDOS.
2011-05-27 21:21:14 +02:00
Diego Biurrun
5e528cffcf
x86: Add appropriate ifdefs around certain AVX functions.
...
nasm versions prior to 2.09 have trouble assembling some of our AVX code.
Protect these sections by preprocessor macros to allow compilation to pass.
2011-05-27 21:18:12 +02:00
Diego Biurrun
59748689f6
build: Remove generated .version file on distclean.
2011-05-26 16:26:18 +02:00
Diego Biurrun
e14574eb68
configure: Add -D_GNU_SOURCE to CPPFLAGS on OS/2.
...
The flag is required for some C99 math functions to be declared.
2011-05-26 16:26:18 +02:00
Diego Biurrun
25101cf5bd
doc: Drop hint at --enable-memalign-hack for MinGW, it is now autodetected.
2011-05-26 16:26:17 +02:00
Diego Biurrun
6c6c976fa9
ffplay: Remove disabled code.
2011-05-26 16:26:17 +02:00
Diego Biurrun
e169428529
Mark parameterless function declarations as 'void'.
2011-05-26 16:26:17 +02:00
Diego Biurrun
0093199184
swscale: Remove commented-out printf cruft.
2011-05-26 03:45:58 +02:00
Diego Biurrun
6f7a280ead
swscale: Remove orphaned, commented-out function declaration.
2011-05-26 00:56:07 +02:00
Diego Biurrun
a7a187a1be
configure: Add -U__STRICT_ANSI__ to CPPFLAGS on Cygwin and DOS.
...
In -std=c99 mode GCC defines __STRICT_ANSI__ to hide non-ANSI interfaces.
This causes declarations for some POSIX functions to be omitted from system
headers, which causes compilation failures.
2011-05-23 22:51:14 +02:00
Diego Biurrun
153382e1b6
multiple inclusion guard cleanup
...
Add missing multiple inclusion guards; clean up #endif comments;
add missing library prefixes; keep guard names consistent.
2011-05-21 13:48:10 +02:00
Diego Biurrun
0a6db2a25a
configure: Do not unconditionally add -Wall to host CFLAGS.
...
Some compilers choke on -Wall, so only add the flag after checking it works.
2011-05-20 17:52:24 +02:00
Diego Biurrun
4887f8245c
Rename costablegen.c ---> cos_tablegen.c.
...
This is consistent with how all other table generation programs are named.
Moreover this ensures that the cos table generation program is correctly
deleted when cleaning the tree.
2011-05-19 21:09:02 +02:00
Diego Biurrun
9f2405661d
Collapse tableprint.c into tableprint.h.
...
tableprint.c serves little purpose on its own and removing it allows building
the table generator programs with the normal HOSTPROGS Makefile rules.
2011-05-19 21:07:38 +02:00
Diego Biurrun
c98657a215
Remove potentially unstable filenames from comments in generated files.
2011-05-19 19:30:12 +02:00
Diego Biurrun
8a0572b054
Ignore generated tables and generated table generator programs.
2011-05-19 19:25:24 +02:00
Diego Biurrun
d9a69f730e
Simplify CLEANFILES make variable by using wildcards.
...
Also ensures that generated file cos_fixed_tables.c is deleted on 'make clean'.
2011-05-19 19:25:11 +02:00
Diego Biurrun
7ed0a77ff4
Remove silly insults from avformat_version() Doxygen documentation.
2011-05-19 18:28:25 +02:00
Diego Biurrun
429059f866
configure: Adjust AVX assembler check.
...
Older nasm versions have trouble assembling certain AVX instructions, but the
current AVX check did not detect this. Update the check to use an instruction
that triggers the nasm problem.
2011-05-19 16:27:40 +02:00
Diego Biurrun
ea91e77127
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.
2011-05-19 10:23:53 +02:00
Diego Biurrun
a2077b85da
g729: Merge g729.h into g729dec.c.
...
The header contains just a single define that is only used in g729dec.c.
2011-05-19 10:21:37 +02:00
Diego Biurrun
c540061f3f
cws2fws: Improve error message wording.
2011-05-16 20:56:56 +02:00
Diego Biurrun
d39facc783
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
2011-05-16 20:56:56 +02:00
Diego Biurrun
d39bf3df72
Remove unused header mpegaudio3.h.
...
The header is a part of an MP3 encoder that never saw the light of day.
2011-05-16 14:59:51 +02:00
Diego Biurrun
7f995abed3
acelp: Remove unused gray_decode table.
2011-05-15 19:01:06 +02:00
Diego Biurrun
b1bb3b8d87
dfa: Remove unused variable.
...
This fixes the warning:
libavcodec/dfa.c:189: warning: unused variable ‘frame_end’
2011-05-15 13:12:47 +02:00
Diego Biurrun
c73b779d35
configure: Include AVX availability in summary output.
2011-05-15 13:11:01 +02:00
Diego Biurrun
888fa31eca
Fix FSF address copy paste error in some license headers.
2011-05-14 21:32:31 +02:00
Diego Biurrun
0a6b1a9f21
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.
2011-05-12 12:05:54 +02:00
Diego Biurrun
be89845708
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.
2011-05-12 11:56:53 +02:00
Diego Biurrun
046f081b46
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.
2011-05-12 11:41:59 +02:00
Diego Biurrun
bea705752d
Remove unused softfloat implementation.
...
The softfloat functionality is unused, not installed and incomplete.
On platforms without floating point units, the compiler provides a softfloat
implementation so there is no point in carrying this code around locally.
2011-05-11 13:43:30 +02:00
Diego Biurrun
e1e0ca70eb
rotozoom: Eliminate French variable name.
2011-05-11 11:54:58 +02:00
Diego Biurrun
cbb0930f0e
rotozoom: Check return value of fread().
...
This fixes the warnings:
tests/rotozoom.c:252: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
tests/rotozoom.c:254: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
2011-05-11 11:54:57 +02:00
Diego Biurrun
771339ca20
rotozoom: Return an error value instead of calling exit().
2011-05-11 11:54:57 +02:00
Diego Biurrun
2131e8590c
rotozoom: Make init_demo() return int and check for errors on invocation.
2011-05-11 11:54:57 +02:00
Diego Biurrun
5a37c12c82
rotozoom: Drop silly UINT8 typedef.
2011-05-11 11:54:57 +02:00
Diego Biurrun
e9c10459a3
rotozoom: Drop some unnecessary parentheses.
2011-05-11 11:54:57 +02:00
Diego Biurrun
f628559d9a
rotozoom: K&R coding style cosmetics
2011-05-11 11:54:56 +02:00
Diego Biurrun
af1ca249e8
doc: Check standalone compilation before submitting new components.
2011-05-04 21:12:42 +02:00