ffmpeg.git
8 years agodict: This code was developed in ffmpeg and not libav, nor by libav developers.
Michael Niedermayer [Thu, 9 Jun 2011 22:19:25 +0000 (00:19 +0200)]
dict: This code was developed in ffmpeg and not libav, nor by libav developers.
Correct copyright notices.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 9 Jun 2011 02:47:19 +0000 (04:47 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  crypto: Use av_freep instead of av_free
  lavf: don't try to free private options if priv_data is NULL.
  swscale: fix types of assembly arguments.
  swscale: move two macros that are only used once into caller.
  swscale: remove unused function.
  options: Add missing braces around struct initializer.
  mov: Remove leftover crufty debug statement with references to a local file.
  dvbsubdec: Fix compilation of debug code.
  Remove all uses of now deprecated metadata functions.
  Move metadata API from lavf to lavu.

Conflicts:
doc/APIchanges
libavformat/aiffdec.c
libavformat/asfdec.c
libavformat/avformat.h
libavformat/avidec.c
libavformat/cafdec.c
libavformat/matroskaenc.c
libavformat/mov.c
libavformat/mp3enc.c
libavformat/wtv.c
libavutil/avutil.h
libavutil/internal.h
libswscale/swscale.c
libswscale/x86/swscale_template.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agojpegdec: actually search for and parse RSTn
Michael Niedermayer [Thu, 9 Jun 2011 01:35:50 +0000 (03:35 +0200)]
jpegdec: actually search for and parse RSTn

Fixes Ticket267

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agocrypto: Use av_freep instead of av_free
Etienne Buira [Wed, 8 Jun 2011 00:20:53 +0000 (02:20 +0200)]
crypto: Use av_freep instead of av_free

This fixes a potential double free.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoRevert "crypto: fix potential double free"
Michael Niedermayer [Wed, 8 Jun 2011 23:39:49 +0000 (01:39 +0200)]
Revert "crypto: fix potential double free"

This reverts commit 7d89f7cbf3ccd98f9a5f58db97effa9afd2d571a.

Revert at authors request, and its buggy missing &

8 years agoRevert "build: remove empty $(OBJS) target"
Michael Niedermayer [Wed, 8 Jun 2011 14:14:40 +0000 (16:14 +0200)]
Revert "build: remove empty $(OBJS) target"

This reverts commit b9c6c7cb25932b594fd684a0cb553e439d49fe12.
It appears this caused the .o files to be deletec under some circumstances.

8 years agocrypto: Use av_freep instead of av_free
Etienne Buira [Wed, 8 Jun 2011 00:20:53 +0000 (02:20 +0200)]
crypto: Use av_freep instead of av_free

This fixes a potential double free.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoaac: fix adts frame size mask, fix demuxer probing for some files.
Baptiste Coudurier [Tue, 7 Jun 2011 18:09:58 +0000 (11:09 -0700)]
aac: fix adts frame size mask, fix demuxer probing for some files.

8 years agolavf: don't try to free private options if priv_data is NULL.
Anton Khirnov [Mon, 6 Jun 2011 11:14:05 +0000 (13:14 +0200)]
lavf: don't try to free private options if priv_data is NULL.

This might happen if there was an error before priv_data was allocated
and result in segfault.

8 years agolavfi: handle NULL lists in avfilter_make_format_list
Mina Nagy Zaki [Tue, 7 Jun 2011 14:42:32 +0000 (17:42 +0300)]
lavfi: handle NULL lists in avfilter_make_format_list

8 years agoswscale: fix types of assembly arguments.
Ronald S. Bultje [Wed, 8 Jun 2011 15:39:26 +0000 (11:39 -0400)]
swscale: fix types of assembly arguments.

This prevents the following compiler warnings: "warning:
initialization from incompatible pointer type". Since the
variables are only ever used in inline assembly, their type
is actually irrelevant (so the part where it was wrong did
not invoke any buggy behaviour).

8 years agoswscale: move two macros that are only used once into caller.
Ronald S. Bultje [Wed, 8 Jun 2011 15:33:46 +0000 (11:33 -0400)]
swscale: move two macros that are only used once into caller.

This way, they look like regular code, which is easier to
understand.

8 years agoswscale: remove unused function.
Ronald S. Bultje [Wed, 8 Jun 2011 15:03:11 +0000 (11:03 -0400)]
swscale: remove unused function.

Use of this wrapper was removed in a previous patch, but I
forgot to actually remove the function itself.

8 years agoFix "mixed declarations and code" warnings.
Carl Eugen Hoyos [Wed, 8 Jun 2011 14:38:37 +0000 (16:38 +0200)]
Fix "mixed declarations and code" warnings.

8 years agooptions: Add missing braces around struct initializer.
Diego Biurrun [Wed, 8 Jun 2011 12:59:47 +0000 (14:59 +0200)]
options: Add missing braces around struct initializer.

This fixes the warning:
libavformat/options.c:62:1: warning: missing braces around initializer [-Wmissing-braces]

8 years agomov: Remove leftover crufty debug statement with references to a local file.
Diego Biurrun [Sun, 5 Jun 2011 14:10:17 +0000 (16:10 +0200)]
mov: Remove leftover crufty debug statement with references to a local file.

8 years agodvbsubdec: Fix compilation of debug code.
Diego Biurrun [Mon, 6 Jun 2011 12:10:22 +0000 (14:10 +0200)]
dvbsubdec: Fix compilation of debug code.

8 years agoRemove all uses of now deprecated metadata functions.
Anton Khirnov [Sun, 22 May 2011 10:46:29 +0000 (12:46 +0200)]
Remove all uses of now deprecated metadata functions.

8 years agoMove metadata API from lavf to lavu.
Anton Khirnov [Sun, 22 May 2011 10:45:00 +0000 (12:45 +0200)]
Move metadata API from lavf to lavu.

Rename it to AVDictionary, since it will be used as such.  Tags
documentation and metadata conversion API is lavf-specific, so remains
there.

8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 8 Jun 2011 01:56:36 +0000 (03:56 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (28 commits)
  Remove some non-compiling debug messages.
  ffplay: Fix non-compiling debug printf and replace it by av_dlog.
  H264: x86 predict init cosmetics.
  ac3enc: Fix linking of AC-3 encoder without the E-AC-3 encoder.
  Move E-AC-3 encoder functions to a separate eac3enc.c file.
  ac3enc: remove convenience macro, #define DEBUG
  ac3enc: remove unused #define
  vc1: re-initialize tables after width/height change.
  APIchanges: fill-in git commit hash for av_get_bytes_per_sample() addition
  samplefmt: add av_get_bytes_per_sample()
  iirfilter: fix biquad filter coefficients.
  swscale: remove duplicate conversion routine in swScale().
  swscale: add yuv2planar/packed function typedefs.
  swscale: integrate yuv2nv12X_C into yuv2yuvX() function pointers.
  swscale: reindent x86 init code.
  swscale: extract SWS_FULL_CHR_H_INT conditional into init code.
  swscale: cosmetics.
  swscale: remove alp/chr/lumSrcOffset.
  swscale: un-special-case yuv2yuvX16_c().
  shorten: Remove stray DEBUG #define and corresponding av_dlog statement.
  ...

Conflicts:
doc/APIchanges
libavcodec/ac3enc.c
libavutil/avutil.h
libavutil/samplefmt.c
libswscale/swscale.c
libswscale/swscale_internal.h
libswscale/x86/swscale_template.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agocrypto: fix potential double free
Etienne Buira [Wed, 8 Jun 2011 00:20:53 +0000 (02:20 +0200)]
crypto: fix potential double free

8 years agolibx264: fix double free
Etienne Buira [Tue, 7 Jun 2011 20:14:18 +0000 (22:14 +0200)]
libx264: fix double free

8 years agoffplay: remove -debug option
Stefano Sabatini [Tue, 7 Jun 2011 23:28:11 +0000 (01:28 +0200)]
ffplay: remove -debug option

The options -loglevel LEVEL -debug FLAGS can be used for achieving the
same objectives, with a finer level of control.

8 years agoffplay: remove -vismv option
Stefano Sabatini [Tue, 7 Jun 2011 23:24:42 +0000 (01:24 +0200)]
ffplay: remove -vismv option

Use -vismv 1 instead. Simplify.

8 years agompegvideo: use av_get_picture_type_char() in ff_print_debug_info()
Stefano Sabatini [Sun, 8 May 2011 18:46:41 +0000 (20:46 +0200)]
mpegvideo: use av_get_picture_type_char() in ff_print_debug_info()

8 years agoRemove some non-compiling debug messages.
Diego Biurrun [Sun, 5 Jun 2011 13:53:34 +0000 (15:53 +0200)]
Remove some non-compiling debug messages.

8 years agoffplay: Fix non-compiling debug printf and replace it by av_dlog.
Diego Biurrun [Tue, 7 Jun 2011 22:41:12 +0000 (00:41 +0200)]
ffplay: Fix non-compiling debug printf and replace it by av_dlog.

8 years agoH264: x86 predict init cosmetics.
Daniel Kang [Tue, 7 Jun 2011 14:31:51 +0000 (10:31 -0400)]
H264: x86 predict init cosmetics.

Change indentation and whitespace; also move HAVE_YASM blocks.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agoac3enc: Fix linking of AC-3 encoder without the E-AC-3 encoder.
Diego Biurrun [Tue, 7 Jun 2011 22:06:19 +0000 (00:06 +0200)]
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.

8 years agoMove E-AC-3 encoder functions to a separate eac3enc.c file.
Justin Ruggles [Tue, 7 Jun 2011 16:47:09 +0000 (12:47 -0400)]
Move E-AC-3 encoder functions to a separate eac3enc.c file.

8 years agoac3enc: remove convenience macro, #define DEBUG
Justin Ruggles [Tue, 7 Jun 2011 15:50:38 +0000 (11:50 -0400)]
ac3enc: remove convenience macro, #define DEBUG

8 years agoac3enc: remove unused #define
Justin Ruggles [Tue, 7 Jun 2011 14:53:44 +0000 (10:53 -0400)]
ac3enc: remove unused #define

8 years agovc1: re-initialize tables after width/height change.
John Stebbins [Tue, 7 Jun 2011 17:53:31 +0000 (19:53 +0200)]
vc1: re-initialize tables after width/height change.

read_sequence_header can change width/height; therefore, re-initialize
all tables if width/height changed

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoAPIchanges: fill-in git commit hash for av_get_bytes_per_sample() addition
Justin Ruggles [Tue, 7 Jun 2011 17:04:06 +0000 (13:04 -0400)]
APIchanges: fill-in git commit hash for av_get_bytes_per_sample() addition

8 years agosamplefmt: add av_get_bytes_per_sample()
Stefano Sabatini [Sun, 5 Jun 2011 23:14:50 +0000 (01:14 +0200)]
samplefmt: add av_get_bytes_per_sample()

Deprecate av_get_bits_per_sample_fmt(), which was a misnamed function.

For the moment we don't have sample formats with a non-integer number
of bytes, in that case we may need to create a new
av_get_bits_per_sample() function. In the meanwhile we prefer to adopt
this variant, since avoids divisions by 8 all over the place.

8 years agolibvpxenc: add forgotten AVClass.
Michael Niedermayer [Tue, 7 Jun 2011 16:22:53 +0000 (18:22 +0200)]
libvpxenc: add forgotten AVClass.

Fixes Ticket269

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoiirfilter: fix biquad filter coefficients.
Justin Ruggles [Mon, 6 Jun 2011 21:10:11 +0000 (17:10 -0400)]
iirfilter: fix biquad filter coefficients.

The current filter implementation should only have the cx coefficients
divided by gain in order to give the correct output scale.

8 years agoswscale: remove duplicate conversion routine in swScale().
Ronald S. Bultje [Mon, 6 Jun 2011 02:54:30 +0000 (22:54 -0400)]
swscale: remove duplicate conversion routine in swScale().

8 years agoswscale: add yuv2planar/packed function typedefs.
Ronald S. Bultje [Mon, 6 Jun 2011 02:31:11 +0000 (22:31 -0400)]
swscale: add yuv2planar/packed function typedefs.

8 years agoswscale: integrate yuv2nv12X_C into yuv2yuvX() function pointers.
Ronald S. Bultje [Mon, 6 Jun 2011 02:27:45 +0000 (22:27 -0400)]
swscale: integrate yuv2nv12X_C into yuv2yuvX() function pointers.

8 years agoswscale: reindent x86 init code.
Ronald S. Bultje [Mon, 6 Jun 2011 01:48:51 +0000 (21:48 -0400)]
swscale: reindent x86 init code.

8 years agoswscale: extract SWS_FULL_CHR_H_INT conditional into init code.
Ronald S. Bultje [Mon, 6 Jun 2011 01:46:16 +0000 (21:46 -0400)]
swscale: extract SWS_FULL_CHR_H_INT conditional into init code.

8 years agoswscale: cosmetics.
Ronald S. Bultje [Mon, 6 Jun 2011 01:40:04 +0000 (21:40 -0400)]
swscale: cosmetics.

8 years agoswscale: remove alp/chr/lumSrcOffset.
Ronald S. Bultje [Mon, 6 Jun 2011 01:37:59 +0000 (21:37 -0400)]
swscale: remove alp/chr/lumSrcOffset.

They are hacks added to reuse the same scaling function for
different formats and they may cause problems when SIMD
implementation of the same functions are used along with pure
C functions.

8 years agoswscale: un-special-case yuv2yuvX16_c().
Ronald S. Bultje [Mon, 6 Jun 2011 01:15:44 +0000 (21:15 -0400)]
swscale: un-special-case yuv2yuvX16_c().

Make yuv2yuvX16_c a function pointer for yuv2yuvX(), so that the
function pointer becomes bitdepth-independent.

8 years agoshorten: Remove stray DEBUG #define and corresponding av_dlog statement.
Diego Biurrun [Tue, 7 Jun 2011 08:52:30 +0000 (10:52 +0200)]
shorten: Remove stray DEBUG #define and corresponding av_dlog statement.

8 years agovorbisdec: Restore mistakenly removed debug output.
Diego Biurrun [Tue, 7 Jun 2011 12:02:38 +0000 (14:02 +0200)]
vorbisdec: Restore mistakenly removed debug output.

8 years agov4l2: set default standard to NULL
Stefano Sabatini [Tue, 7 Jun 2011 11:36:06 +0000 (13:36 +0200)]
v4l2: set default standard to NULL

It was errouneously changed to "NTSC" by the recent merge commit.

8 years agosws: make dither_scale const
Michael Niedermayer [Tue, 7 Jun 2011 11:22:36 +0000 (13:22 +0200)]
sws: make dither_scale const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoconfigure: Document --enable-vdpau.
Diego Biurrun [Mon, 6 Jun 2011 11:32:37 +0000 (13:32 +0200)]
configure: Document --enable-vdpau.

The option is disabled by default, so enabling it should be documented.

8 years agoReplace some av_log/printf + #ifdef combinations by av_dlog.
Diego Biurrun [Sun, 5 Jun 2011 23:25:32 +0000 (01:25 +0200)]
Replace some av_log/printf + #ifdef combinations by av_dlog.

8 years agoReplace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.
Diego Biurrun [Sun, 5 Jun 2011 22:53:31 +0000 (00:53 +0200)]
Replace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.

8 years agosvq1dec: Fix debug statements that referenced non-existing context.
Diego Biurrun [Sun, 5 Jun 2011 22:52:28 +0000 (00:52 +0200)]
svq1dec: Fix debug statements that referenced non-existing context.

8 years agoReplace some printf instances in debug code by av_log.
Diego Biurrun [Sun, 5 Jun 2011 22:39:39 +0000 (00:39 +0200)]
Replace some printf instances in debug code by av_log.

8 years agoshowfiltfmts: use av_get_pix_fmt_name()
Stefano Sabatini [Tue, 7 Jun 2011 00:18:19 +0000 (02:18 +0200)]
showfiltfmts: use av_get_pix_fmt_name()

Use av_get_pix_fmt_name() rather than access
av_pix_fmt_descriptors. Improve readability.

8 years agoinverse.c: Replace unnecessary intmath.h header by necessary stdint.h.
Diego Biurrun [Sun, 5 Jun 2011 13:27:51 +0000 (15:27 +0200)]
inverse.c: Replace unnecessary intmath.h header by necessary stdint.h.

8 years agoDrop unnecessary directory prefixes from #include directives.
Diego Biurrun [Sat, 4 Jun 2011 23:28:22 +0000 (01:28 +0200)]
Drop unnecessary directory prefixes from #include directives.

8 years agoMakefile: critical build fix after the merge. make fate passed locally due to ffmpeg...
Michael Niedermayer [Tue, 7 Jun 2011 02:43:03 +0000 (04:43 +0200)]
Makefile: critical build fix after the merge. make fate passed locally due to ffmpeg/ffmpeg_g being there from before

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 7 Jun 2011 01:37:57 +0000 (03:37 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  build: remove empty $(OBJS) target
  build: make rule for linking ff* apply only to these targets
  build: rearrange some lines in a more logical way
  s302m: fix resampling for 16 and 24bits.
  ARM: remove MUL64 and MAC64 inline asm
  build: clean up .PHONY lists
  build: move all (un)install* target aliases to toplevel Makefile
  flvenc: propagate error properly
  build: remove stale dependency
  build: do not add CFLAGS-yes to CFLAGS
  utils.c: fix crash with threading enabled.
  configure: simplify source_path setup
  configure: remove --source-path option
  lavf: deprecate AVFormatParameters.time_base.
  img2: add framerate private option.
  img2: add video_size private option.
  img2: add pixel_format private option.
  tty: add framerate private option.

Conflicts:
Makefile
configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffplay: Fix -vismv
Michael Niedermayer [Tue, 7 Jun 2011 01:14:28 +0000 (03:14 +0200)]
ffplay: Fix -vismv

Fixes Ticket164

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomem: Trying to workaround posix_memalign() bug on OSX
Michael Niedermayer [Mon, 6 Jun 2011 20:59:23 +0000 (22:59 +0200)]
mem: Trying to workaround posix_memalign() bug on OSX

This patch is based on a patch by John Stebbins

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agobuild: remove empty $(OBJS) target
Mans Rullgard [Mon, 6 Jun 2011 20:46:18 +0000 (21:46 +0100)]
build: remove empty $(OBJS) target

This target was added to prevent some files being deleted
by make when using chains of implicit rules.  This is no
longer required.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agobuild: make rule for linking ff* apply only to these targets
Mans Rullgard [Mon, 6 Jun 2011 22:00:26 +0000 (23:00 +0100)]
build: make rule for linking ff* apply only to these targets

This ensures that the special link command using cmdutils.o
only applies to the targets it should.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoeval: add support for pow() function
Stefano Sabatini [Mon, 6 Jun 2011 13:00:25 +0000 (15:00 +0200)]
eval: add support for pow() function

It is a more search-friendly alternative to the ^ operator.

8 years agobuild: rearrange some lines in a more logical way
Mans Rullgard [Mon, 6 Jun 2011 18:57:10 +0000 (19:57 +0100)]
build: rearrange some lines in a more logical way

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agos302m: fix resampling for 16 and 24bits.
Baptiste Coudurier [Sat, 4 Jun 2011 12:36:30 +0000 (14:36 +0200)]
s302m: fix resampling for 16 and 24bits.

8 years agoARM: remove MUL64 and MAC64 inline asm
Mans Rullgard [Sun, 5 Jun 2011 12:44:28 +0000 (13:44 +0100)]
ARM: remove MUL64 and MAC64 inline asm

Current GCC versions know how to generate these instructions
properly and avoiding inline asm gives better code.  The MULH
function for ARMv5 uses the same instruction and is also not
needed any more.

The MLS64 macro remains since negating an input would normally
not be allowed as it would fail for INT_MIN.  In our uses, the
inputs never have this value and thus negating is safe.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agobuild: clean up .PHONY lists
Mans Rullgard [Sun, 5 Jun 2011 20:57:03 +0000 (21:57 +0100)]
build: clean up .PHONY lists

This removes nonexisting targets from phony lists and puts them
all in one place.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agobuild: move all (un)install* target aliases to toplevel Makefile
Mans Rullgard [Sun, 5 Jun 2011 20:52:32 +0000 (21:52 +0100)]
build: move all (un)install* target aliases to toplevel Makefile

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoflvenc: propagate error properly
Luca Barbato [Mon, 6 Jun 2011 14:13:05 +0000 (09:13 -0500)]
flvenc: propagate error properly

avio_flush can fail, in particular when used with the rtmp/librtmp
protocol.

8 years agobuild: remove stale dependency
Mans Rullgard [Mon, 6 Jun 2011 12:21:05 +0000 (13:21 +0100)]
build: remove stale dependency

This dependency is implicitly covered elsewhere.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agobuild: do not add CFLAGS-yes to CFLAGS
Mans Rullgard [Sun, 5 Jun 2011 21:16:16 +0000 (22:16 +0100)]
build: do not add CFLAGS-yes to CFLAGS

CFLAGS-yes is never set so this serves no purpose.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoutils.c: fix crash with threading enabled.
Ronald S. Bultje [Mon, 6 Jun 2011 13:27:54 +0000 (09:27 -0400)]
utils.c: fix crash with threading enabled.

8 years agoconfigure: simplify source_path setup
Mans Rullgard [Mon, 6 Jun 2011 11:56:26 +0000 (12:56 +0100)]
configure: simplify source_path setup

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoconfigure: remove --source-path option
Mans Rullgard [Mon, 6 Jun 2011 11:37:06 +0000 (12:37 +0100)]
configure: remove --source-path option

This option does not work, and the implied functionality is
at best pointless.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agopixdesc: remove duplicated header inclusion
Stefano Sabatini [Mon, 6 Jun 2011 09:34:45 +0000 (11:34 +0200)]
pixdesc: remove duplicated header inclusion

8 years agolavfi: use av_samples_alloc() in avfilter_default_get_audio_buffer()
Stefano Sabatini [Sat, 15 Jan 2011 17:48:37 +0000 (18:48 +0100)]
lavfi: use av_samples_alloc() in avfilter_default_get_audio_buffer()

8 years agolavfi: prefer nb_samples over size in AVFilterBufferRefAudioProps
Stefano Sabatini [Tue, 1 Feb 2011 11:34:23 +0000 (12:34 +0100)]
lavfi: prefer nb_samples over size in AVFilterBufferRefAudioProps

Remove AVFilterBufferRefAudioProps.size, and use nb_samples in
avfilter_get_audio_buffer() and avfilter_default_get_audio_buffer() in
place of size.

This is required as the size in the audio buffer may be aligned, so it
may not contain a well defined number of samples.

8 years agosamplefmt: switch nb_channels/nb_samples params order in av_samples_alloc()
Stefano Sabatini [Thu, 2 Jun 2011 09:14:24 +0000 (11:14 +0200)]
samplefmt: switch nb_channels/nb_samples params order in av_samples_alloc()

This is consistent with the order of parameters in
av_samples_fill_arrays().

8 years agosamplefmt: change layout for arrays created by av_samples_alloc() and _fill_arrays()
Stefano Sabatini [Tue, 22 Mar 2011 12:29:28 +0000 (13:29 +0100)]
samplefmt: change layout for arrays created by av_samples_alloc() and _fill_arrays()

The new layout is consistent with that of the av_image_() API, and
simplifies understanding and copy operations, it also preserves
alignment information which was lost with the previous layout.

This breaks API/ABI, but since the function was never referenced in
the code (and it isn't unlikely already used by someone) then this
should not be a problem.

8 years agolavf: deprecate AVFormatParameters.time_base.
Anton Khirnov [Fri, 3 Jun 2011 22:23:14 +0000 (00:23 +0200)]
lavf: deprecate AVFormatParameters.time_base.

8 years agoimg2: add framerate private option.
Anton Khirnov [Fri, 3 Jun 2011 22:21:26 +0000 (00:21 +0200)]
img2: add framerate private option.

8 years agoimg2: add video_size private option.
Anton Khirnov [Fri, 3 Jun 2011 22:17:31 +0000 (00:17 +0200)]
img2: add video_size private option.

8 years agoimg2: add pixel_format private option.
Anton Khirnov [Fri, 3 Jun 2011 22:13:35 +0000 (00:13 +0200)]
img2: add pixel_format private option.

8 years agotty: add framerate private option.
Anton Khirnov [Fri, 3 Jun 2011 18:58:01 +0000 (20:58 +0200)]
tty: add framerate private option.

8 years agoMove code for "ffmpeg: fix massive leak occurring when seeking" / e4841a404bdabfeafb9...
Michael Niedermayer [Mon, 6 Jun 2011 02:03:09 +0000 (04:03 +0200)]
Move code for "ffmpeg: fix massive leak occurring when seeking" / e4841a404bdabfeafb917454d510b60d888cb761 elsewhere

The picture struct is written to in the loop, so this cannot work.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 6 Jun 2011 01:02:38 +0000 (03:02 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Remove some unused scripts from tools/.
  Add x86 assembly for some 10-bit H.264 intra predict functions.
  v4l2: do not force NTSC as standard
  Skip tableprint.h during 'make checkheaders'.
  Remove unnecessary LIBAVFORMAT_BUILD #ifdef.
  Drop explicit filenames from @file Doxygen tags.
  Skip generated table headers during 'make checkheaders'.
  lavf,lavc: free avoptions in a generic way.
  AVOptions: add av_opt_free convenience function.
  tableprint: Restore mistakenly deleted common.h #include for FF_ARRAY_ELEMS.
  tiff: print log in case of unknown / unsupported tag.
  tiff: fix linesize for mono-white/black formats.
  Fix build of eval-test program
  configure: Document --enable-vaapi
  ac3enc: extract all exponents for the frame at once

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavf: remove reference to output-example in Makefile
Stefano Sabatini [Sun, 5 Jun 2011 23:50:27 +0000 (01:50 +0200)]
lavf: remove reference to output-example in Makefile

output-example.c (and renamed to muxing-example.c) has been moved to
doc/examples.

8 years agovsrc_buffer: add flags param to av_vsrc_buffer_add_video_buffer_ref
Stefano Sabatini [Thu, 2 Jun 2011 13:43:21 +0000 (15:43 +0200)]
vsrc_buffer: add flags param to av_vsrc_buffer_add_video_buffer_ref

The new flags parameter allows to specify if the video ref to add
should overwrite the cache, if the flag is not set vsrc_buffer will
complain and abort; otherwise it will clean the already cached video
ref before to overwrite it, thus avoiding a leak.

8 years agoRemove some unused scripts from tools/.
Diego Biurrun [Sat, 4 Jun 2011 16:45:28 +0000 (18:45 +0200)]
Remove some unused scripts from tools/.

8 years agoAdd x86 assembly for some 10-bit H.264 intra predict functions.
Daniel Kang [Sun, 5 Jun 2011 23:20:05 +0000 (19:20 -0400)]
Add x86 assembly for some 10-bit H.264 intra predict functions.

Parts are inspired from the 8-bit H.264 predict code in Libav.
Other parts ported from x264 with relicensing permission from author.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agov4l2: do not force NTSC as standard
Luca Barbato [Sun, 5 Jun 2011 19:20:56 +0000 (14:20 -0500)]
v4l2: do not force NTSC as standard

Setting a standard is meaningful only for analog capture devices.

8 years agoAdd const to avfilter_get_video_buffer_ref_from_arrays arguments.
Reimar Döffinger [Wed, 1 Jun 2011 18:44:08 +0000 (20:44 +0200)]
Add const to avfilter_get_video_buffer_ref_from_arrays arguments.

Avoids warning about discarding qualifiers in avcodec.c

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoSkip tableprint.h during 'make checkheaders'.
Diego Biurrun [Sat, 4 Jun 2011 23:59:14 +0000 (01:59 +0200)]
Skip tableprint.h during 'make checkheaders'.

It is only used on the host and may not compile on the target.

8 years agoRemove unnecessary LIBAVFORMAT_BUILD #ifdef.
Diego Biurrun [Sat, 4 Jun 2011 23:54:45 +0000 (01:54 +0200)]
Remove unnecessary LIBAVFORMAT_BUILD #ifdef.

8 years agoDrop explicit filenames from @file Doxygen tags.
Diego Biurrun [Sat, 4 Jun 2011 22:59:52 +0000 (00:59 +0200)]
Drop explicit filenames from @file Doxygen tags.

The filename is unnecessary and brittle across file renames.

8 years agoSkip generated table headers during 'make checkheaders'.
Diego Biurrun [Sun, 5 Jun 2011 00:00:21 +0000 (02:00 +0200)]
Skip generated table headers during 'make checkheaders'.

8 years agolavf,lavc: free avoptions in a generic way.
Anton Khirnov [Sun, 5 Jun 2011 11:18:17 +0000 (13:18 +0200)]
lavf,lavc: free avoptions in a generic way.

It's simpler and less error-prone.

Fixes some memleaks along the way.

8 years agoAVOptions: add av_opt_free convenience function.
Anton Khirnov [Sun, 5 Jun 2011 11:17:26 +0000 (13:17 +0200)]
AVOptions: add av_opt_free convenience function.

8 years agosdl: align option fields after last commit
Stefano Sabatini [Sun, 5 Jun 2011 11:55:02 +0000 (13:55 +0200)]
sdl: align option fields after last commit