OSDN Git Service

coroid/ffmpeg_saccubus.git
13 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>
13 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>
13 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>
13 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>
13 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>
13 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.

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

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

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

13 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>
13 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>
13 years agopixdesc: remove duplicated header inclusion
Stefano Sabatini [Mon, 6 Jun 2011 09:34:45 +0000 (11:34 +0200)]
pixdesc: remove duplicated header inclusion

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

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

13 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().

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

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

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

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

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

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

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

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

13 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/.

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

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

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

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

13 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'.

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

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

13 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

13 years agoffmpeg: fix massive leak occurring when seeking
Stefano Sabatini [Fri, 3 Jun 2011 17:03:44 +0000 (19:03 +0200)]
ffmpeg: fix massive leak occurring when seeking

Avoid to add frames to the vsrc_buffer in the case ist->pts <
start_time, as these frames are unused (and never released). In
particular this condition is verified with commands of the kind:
ffmpeg -i INPUT -ss TIME OUTPUT

Also allow a minor simplification.

13 years agoffprobe: implement -i FILE option
Stefano Sabatini [Sat, 4 Jun 2011 22:09:04 +0000 (00:09 +0200)]
ffprobe: implement -i FILE option

Useful for mimicking the ffmpeg -i FILE syntax.

13 years agotableprint: Restore mistakenly deleted common.h #include for FF_ARRAY_ELEMS.
Diego Biurrun [Sun, 5 Jun 2011 00:06:13 +0000 (01:06 +0100)]
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>
13 years agoffplay.texi: document -i FILE option
Stefano Sabatini [Sat, 4 Jun 2011 22:06:20 +0000 (00:06 +0200)]
ffplay.texi: document -i FILE option

13 years agocmdutils: remove unnecessary OPT_DUMMY implementation
Stefano Sabatini [Sat, 4 Jun 2011 22:03:59 +0000 (00:03 +0200)]
cmdutils: remove unnecessary OPT_DUMMY implementation

The -i INPUT option can be implemented more cleanly by using a
function option, which can easily be done now that the
parse_arg_function passed to parse_options has a standard signature.

13 years agocmdutils: change the signature of the function argument in parse_options()
Stefano Sabatini [Sat, 4 Jun 2011 21:54:19 +0000 (23:54 +0200)]
cmdutils: change the signature of the function argument in parse_options()

This is required for a pending simplification.

13 years agosdl: use the filename for defining the window title, if not specified
Stefano Sabatini [Sat, 4 Jun 2011 22:57:05 +0000 (00:57 +0200)]
sdl: use the filename for defining the window title, if not specified

This allows a more efficient use of the commandline.

13 years agotiff: print log in case of unknown / unsupported tag.
Stefano Sabatini [Mon, 9 May 2011 19:26:39 +0000 (21:26 +0200)]
tiff: print log in case of unknown / unsupported tag.

Helps debugging.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agotiff: fix linesize for mono-white/black formats.
Stefano Sabatini [Mon, 9 May 2011 20:11:57 +0000 (22:11 +0200)]
tiff: fix linesize for mono-white/black formats.

Fix decoding of file Test_1bpp.tif

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoFix build of eval-test program
Mans Rullgard [Sat, 4 Jun 2011 17:48:46 +0000 (18:48 +0100)]
Fix build of eval-test program

eval.c has moved to libavutil, move the TESTPROGS entry too.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoconfigure: Document --enable-vaapi
Robert Swain [Sun, 5 Jun 2011 08:31:24 +0000 (10:31 +0200)]
configure: Document --enable-vaapi

VAAPI is disabled by default so it should have a --enable-vaapi option
documented, not a --disable-vaapi.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoswscale: override the lack of the accurate rounding flag when needed for dither.
Michael Niedermayer [Sun, 5 Jun 2011 02:31:36 +0000 (04:31 +0200)]
swscale: override the lack of the accurate rounding flag when needed for dither.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoswscale: factor should_dither out
Michael Niedermayer [Sun, 5 Jun 2011 02:24:45 +0000 (04:24 +0200)]
swscale: factor should_dither out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 5 Jun 2011 00:33:59 +0000 (02:33 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  ARM: remove MULL inline asm
  mathops: use MUL64 macro where it forms part of other ops
  tty: factorise returning error codes.
  rawdec: add framerate private option.
  x11grab: add framerate private option.
  fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.
  bktr: don't error when AVFormatParameters.time_base isn't set.
  cmdutils: add missing const qualifier
  Skip headers not designed to work standalone during 'make checkheaders'.
  Add missing #includes to make headers self-contained.
  musepack: remove unnecessary #include from mpcdata.h
  musepack: remove extraneous mpcdata.h inclusions
  Fix error check in av_file_map()

Conflicts:
cmdutils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoac3enc: extract all exponents for the frame at once
Justin Ruggles [Wed, 1 Jun 2011 16:40:01 +0000 (12:40 -0400)]
ac3enc: extract all exponents for the frame at once

13 years agoARM: remove MULL inline asm
Mans Rullgard [Sat, 4 Jun 2011 20:16:04 +0000 (21:16 +0100)]
ARM: remove MULL inline asm

Reasonable gcc versions get this one right on their own.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agomathops: use MUL64 macro where it forms part of other ops
Mans Rullgard [Sat, 4 Jun 2011 16:52:30 +0000 (17:52 +0100)]
mathops: use MUL64 macro where it forms part of other ops

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agotty: factorise returning error codes.
Anton Khirnov [Fri, 3 Jun 2011 18:43:48 +0000 (20:43 +0200)]
tty: factorise returning error codes.

13 years agorawdec: add framerate private option.
Anton Khirnov [Fri, 3 Jun 2011 12:13:14 +0000 (14:13 +0200)]
rawdec: add framerate private option.

13 years agox11grab: add framerate private option.
Anton Khirnov [Fri, 3 Jun 2011 11:36:36 +0000 (13:36 +0200)]
x11grab: add framerate private option.

13 years agofbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.
Anton Khirnov [Fri, 3 Jun 2011 11:29:43 +0000 (13:29 +0200)]
fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.

13 years agobktr: don't error when AVFormatParameters.time_base isn't set.
Anton Khirnov [Fri, 3 Jun 2011 11:11:39 +0000 (13:11 +0200)]
bktr: don't error when AVFormatParameters.time_base isn't set.

There's a private option for it now.

13 years agocmdutils: add missing const qualifier
Mans Rullgard [Sat, 4 Jun 2011 15:47:15 +0000 (16:47 +0100)]
cmdutils: add missing const qualifier

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoSkip headers not designed to work standalone during 'make checkheaders'.
Diego Biurrun [Sat, 4 Jun 2011 16:02:40 +0000 (18:02 +0200)]
Skip headers not designed to work standalone during 'make checkheaders'.

13 years agoAdd missing #includes to make headers self-contained.
Diego Biurrun [Sat, 4 Jun 2011 14:58:31 +0000 (16:58 +0200)]
Add missing #includes to make headers self-contained.

This fixes 'make checkheaders'.

13 years agomusepack: remove unnecessary #include from mpcdata.h
Mans Rullgard [Sat, 4 Jun 2011 15:45:15 +0000 (16:45 +0100)]
musepack: remove unnecessary #include from mpcdata.h

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agomusepack: remove extraneous mpcdata.h inclusions
Mans Rullgard [Sat, 4 Jun 2011 15:43:41 +0000 (16:43 +0100)]
musepack: remove extraneous mpcdata.h inclusions

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoFix error check in av_file_map()
Mans Rullgard [Sat, 4 Jun 2011 12:36:35 +0000 (13:36 +0100)]
Fix error check in av_file_map()

On failure, mmap() returns MAP_FAILED, which may or may not be -1.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoudp: support old, crappy non pthread mode
Michael Niedermayer [Sat, 4 Jun 2011 14:55:22 +0000 (16:55 +0200)]
udp: support old, crappy non pthread mode

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 4 Jun 2011 04:31:35 +0000 (06:31 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (21 commits)
  build: simplify commands for clean target
  swscale: split swscale.c in unscaled and generic conversion routines.
  swscale: cosmetics.
  swscale: integrate (literally) swscale_template.c in swscale.c.
  swscale: split out x86/swscale_template.c from swscale.c.
  swscale: enable hScale_altivec_real.
  swscale: split out ppc _template.c files from main swscale.c.
  swscale: remove indirections in ppc/swscale_template.c.
  swscale: split out unscaled altivec YUV converters in their own file.
  mpegvideoenc: fix multislice fate tests with threading disabled.
  mpegts: Wrap #ifdef DEBUG and av_hex_dump_log() combination in a macro.
  build: Simplify texi2html invocation through the --output option.
  Mark some variables with av_unused
  Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().
  svq3: Check negative mb_type to fix potential crash.
  svq3: Move svq3-specific fields to their own context.
  rawdec: initialize return value to 0.
  Remove unused get_psnr() prototype
  rawdec: don't leak option strings.
  bktr: get default framerate from video standard.
  ...

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoffmpeg: use opt_acodec when setting audio codec in opt_target.
Baptiste Coudurier [Sat, 4 Jun 2011 02:52:27 +0000 (19:52 -0700)]
ffmpeg: use opt_acodec when setting audio codec in opt_target.

13 years agoffmpeg: fix segfault with too many output files
Michael Niedermayer [Fri, 3 Jun 2011 23:24:00 +0000 (01:24 +0200)]
ffmpeg: fix segfault with too many output files

Fixes Ticket219

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoffplay: error out with invalid sample rate or channels.
Michael Niedermayer [Fri, 3 Jun 2011 22:16:12 +0000 (00:16 +0200)]
ffplay: error out with invalid sample rate or channels.

Fixes Ticket119
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agooggdec: fix Ticket185
Michael Niedermayer [Fri, 3 Jun 2011 19:14:30 +0000 (21:14 +0200)]
oggdec: fix Ticket185

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agobuild: simplify commands for clean target
Mans Rullgard [Fri, 3 Jun 2011 14:50:14 +0000 (15:50 +0100)]
build: simplify commands for clean target

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoj2kdec: dont fail on non zero cblock style.
Michael Niedermayer [Fri, 3 Jun 2011 17:34:43 +0000 (19:34 +0200)]
j2kdec: dont fail on non zero cblock style.

This allows decoding to continue a bit further for some files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agomakefile: fix j2k encoder dependancies
Rukhsana Ruby [Fri, 3 Jun 2011 16:47:30 +0000 (18:47 +0200)]
makefile: fix j2k encoder dependancies

13 years agoudp: fix indention
JULIAN GARDNER [Fri, 3 Jun 2011 14:08:16 +0000 (16:08 +0200)]
udp: fix indention

13 years agoswscale: split swscale.c in unscaled and generic conversion routines.
Ronald S. Bultje [Fri, 3 Jun 2011 05:45:16 +0000 (22:45 -0700)]
swscale: split swscale.c in unscaled and generic conversion routines.

This duplicates the function fillPlane().

13 years agoswscale: cosmetics.
Ronald S. Bultje [Fri, 3 Jun 2011 05:34:13 +0000 (22:34 -0700)]
swscale: cosmetics.

Remove duplicate "inC" and "_c" functions that do the same thing;
give each function that handles data and acts as a function pointer
a "_c" suffix; remove "_c" suffix from functions that are inherently
not optimizable. Remove inline keyword from functions that are only
used through function pointers.

13 years agoswscale: integrate (literally) swscale_template.c in swscale.c.
Ronald S. Bultje [Fri, 3 Jun 2011 05:34:12 +0000 (22:34 -0700)]
swscale: integrate (literally) swscale_template.c in swscale.c.

13 years agoswscale: split out x86/swscale_template.c from swscale.c.
Ronald S. Bultje [Fri, 3 Jun 2011 05:00:00 +0000 (22:00 -0700)]
swscale: split out x86/swscale_template.c from swscale.c.

13 years agoswscale: enable hScale_altivec_real.
Ronald S. Bultje [Fri, 3 Jun 2011 03:33:05 +0000 (20:33 -0700)]
swscale: enable hScale_altivec_real.

13 years agoswscale: split out ppc _template.c files from main swscale.c.
Ronald S. Bultje [Fri, 3 Jun 2011 03:04:04 +0000 (20:04 -0700)]
swscale: split out ppc _template.c files from main swscale.c.

13 years agoswscale: remove indirections in ppc/swscale_template.c.
Ronald S. Bultje [Fri, 3 Jun 2011 02:28:56 +0000 (19:28 -0700)]
swscale: remove indirections in ppc/swscale_template.c.

13 years agoswscale: split out unscaled altivec YUV converters in their own file.
Ronald S. Bultje [Fri, 3 Jun 2011 03:17:20 +0000 (20:17 -0700)]
swscale: split out unscaled altivec YUV converters in their own file.

13 years agompegvideoenc: fix multislice fate tests with threading disabled.
Ronald S. Bultje [Thu, 2 Jun 2011 21:24:58 +0000 (14:24 -0700)]
mpegvideoenc: fix multislice fate tests with threading disabled.

The MPEG encoding code assumes that n_threads == n_slices, and thus it
should use n_slices even if threading itself is disabled.

13 years agocmdutils: move "#undef main" from ffplay.c to cmdutils.h
Carl Eugen Hoyos [Fri, 3 Jun 2011 11:30:27 +0000 (13:30 +0200)]
cmdutils: move "#undef main" from ffplay.c to cmdutils.h

On Windows/MinGW the SDL cflags re-define the main() function, which
results in a linking error if the define is not undeffed.

Since the addition of the SDL output device, SDL cflags are used also
for compiling ffmpeg and ffprobe, so we need to move this trick from
ffplay.c to a common header.

Fix trac issue #256.

13 years agowav: update size check for ds64
Michael Niedermayer [Fri, 3 Jun 2011 13:37:44 +0000 (15:37 +0200)]
wav: update size check for ds64

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agowav: fix skip size at end of ds64 chunk
Philip de Nier [Thu, 2 Jun 2011 16:04:42 +0000 (17:04 +0100)]
wav: fix skip size at end of ds64 chunk

13 years agompegts: Wrap #ifdef DEBUG and av_hex_dump_log() combination in a macro.
Diego Biurrun [Fri, 27 May 2011 18:34:01 +0000 (20:34 +0200)]
mpegts: Wrap #ifdef DEBUG and av_hex_dump_log() combination in a macro.

13 years agobuild: Simplify texi2html invocation through the --output option.
Diego Biurrun [Mon, 30 May 2011 15:28:43 +0000 (17:28 +0200)]
build: Simplify texi2html invocation through the --output option.

The --output option is available in texi2html since at least version 1.78.

13 years agoMark some variables with av_unused
Mans Rullgard [Fri, 3 Jun 2011 11:52:29 +0000 (12:52 +0100)]
Mark some variables with av_unused

Most of these variables are only used in av_dlog statements, some
are required but not used by other macros.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoReplace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().
Stefano Sabatini [Fri, 3 Jun 2011 09:42:07 +0000 (11:42 +0200)]
Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().

This fixes warnings about avcodec_get_pix_fmt_name() being deprecated.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agosvq3: Check negative mb_type to fix potential crash.
Baptiste Coudurier [Thu, 5 May 2011 01:45:36 +0000 (18:45 -0700)]
svq3: Check negative mb_type to fix potential crash.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agosvq3: Move svq3-specific fields to their own context.
Baptiste Coudurier [Thu, 5 May 2011 12:18:33 +0000 (14:18 +0200)]
svq3: Move svq3-specific fields to their own context.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agorawdec: initialize return value to 0.
Anton Khirnov [Fri, 3 Jun 2011 11:40:54 +0000 (13:40 +0200)]
rawdec: initialize return value to 0.

13 years agoRemove unused get_psnr() prototype
Vladimir Pantelic [Fri, 3 Jun 2011 09:00:15 +0000 (11:00 +0200)]
Remove unused get_psnr() prototype

Signed-off-by: Mans Rullgard <mans@mansr.com>