OSDN Git Service

coroid/ffmpeg_saccubus.git
13 years agoDo not reset channel_layout to 0.
Carl Eugen Hoyos [Wed, 25 May 2011 07:43:14 +0000 (09:43 +0200)]
Do not reset channel_layout to 0.

The channel_layout may have been set by the demuxer.

13 years agovsrc_buffer: remove duplicated file description
Stefano Sabatini [Wed, 25 May 2011 07:37:25 +0000 (09:37 +0200)]
vsrc_buffer: remove duplicated file description

13 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 25 May 2011 04:32:23 +0000 (06:32 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (22 commits)
  configure: enable memalign_hack automatically when needed
  swscale: unbreak the build on non-x86 systems.
  swscale: remove if(bitexact) branch from functions.
  swscale: remove if(canMMX2BeUsed) conditional.
  swscale: remove swScale_{c,MMX,MMX2} duplication.
  swscale: use emms_c().
  Move emms_c() from libavcodec to libavutil.
  tiff: set palette in the context when specified in TIFF_PAL tag
  rtsp: use strtoul to parse rtptime and seq values.
  pgssubdec: fix incorrect colors.
  dvdsubdec: fix incorrect colors.
  ape: Allow demuxing of files with metadata tags.
  swscale: remove dead macro WRITEBGR24OLD.
  swscale: remove AMD3DNOW "optimizations".
  swscale: remove duplicate code in ppc/ subdirectory.
  swscale: remove duplicated x86/ functions.
  swscale: force --enable-runtime-cpudetect and remove SWS_CPU_CAPS_*.
  vsrc_buffer.h: add file doxy
  vsrc_buffer: tweak error message in init()
  msmpeg4: reindent.
  ...

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoMerge swscale bloatup
Michael Niedermayer [Wed, 25 May 2011 03:23:39 +0000 (05:23 +0200)]
Merge swscale bloatup
This will be cleaned up in the next merge

Authorship / merged commits:
commit f668afd4896ee65683619b6f165dda4cdd46766f
Author: Janne Grunau <janne-libav@jannau.net>
Date:   Fri Apr 15 09:12:34 2011 +0200

    swscale: fix "ISO C90 forbids mixed declarations and code" warning

    only hit with --enable-runtime-cpudetect

commit 7f2ae5c7af374dfe254195a9375974a2ff9395a7
Author: Janne Grunau <janne-libav@jannau.net>
Date:   Fri Apr 15 02:09:44 2011 +0200

    swscale: fix compilation with --enable-runtime-cpudetect

commit b6cad3df822969b31bb93eaf677e52a72416bc97
Author: Janne Grunau <janne-libav@jannau.net>
Date:   Fri Apr 15 00:31:04 2011 +0200

    swscale: correct include path to fix ppc altivec build

commit 6216fc70b74e01a5272085329aa92f5ac797f9cf
Author: Luca Barbato <lu_zero@gentoo.org>
Date:   Thu Apr 14 22:03:45 2011 +0200

    swscale: simplify rgb2rgb templating

    MMX is always built. Drop the ifdefs

commit 33a0421bbaa64f4e9c3d852b7f225ede8dad1388
Author: Josh Allmann <joshua.allmann@gmail.com>
Date:   Wed Apr 13 20:57:32 2011 +0200

    swscale: simplify initialization code

    Simplify the fallthrough case when no accelerated functions
    can be initialized.

commit 735bf1951171a1e0ee4292e84a1b1beac45dd0ab
Author: Josh Allmann <joshua.allmann@gmail.com>
Date:   Wed Apr 13 20:57:31 2011 +0200

    swscale: further cleanup swscale.c

    Move x86-specific constants out of swscale.c

commit 86330b4c9258d5e583c0db033d1e68f46443307c
Author: Luca Barbato <lu_zero@gentoo.org>
Date:   Wed Apr 13 20:57:30 2011 +0200

    swscale: partially move the arch specific code left

    PPC and x86 code is split off from swscale_template.c. Lots of code is
    still duplicated and should be removed later.

    Again uniformize the init system to be more similar to the dsputil one.

    Unset h*scale_fast in the x86 init in order to make the output
    consistent with the previous status. Thanks to Josh for spotting it.

commit c0038328830d7b341c28d7c99b0236a33617fd21
Author: Luca Barbato <lu_zero@gentoo.org>
Date:   Wed Apr 13 20:57:29 2011 +0200

    swscale: move away x86 specific code from rgb2rgb

    Keep only the plain C code in the main rgb2rgb.c and move the x86
    specific optimizations to x86/rgb2rgb.c
    Change the initialization pattern a little so some of it can be
    factorized to behave more like dsputils.

Conflicts:
libswscale/rgb2rgb.c
libswscale/swscale_template.c

13 years agoswscale: MMX optim of hscale16()
Michael Niedermayer [Wed, 25 May 2011 00:40:22 +0000 (02:40 +0200)]
swscale: MMX optim of hscale16()

code is based on existing 8bit MMX code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoswscale: dont loose bits on planar >8bit yuv ind gray nput.
Michael Niedermayer [Tue, 24 May 2011 20:59:11 +0000 (22:59 +0200)]
swscale: dont loose bits on planar >8bit yuv ind gray nput.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoswscale: Switch to ronalds yuv2yuvX16inC_template() its very similar to baptsites
Michael Niedermayer [Tue, 24 May 2011 15:48:41 +0000 (17:48 +0200)]
swscale: Switch to ronalds yuv2yuvX16inC_template() its very similar to baptsites
and supports alpha

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoconfigure: enable memalign_hack automatically when needed
Mans Rullgard [Tue, 24 May 2011 19:11:53 +0000 (20:11 +0100)]
configure: enable memalign_hack automatically when needed

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agorawdec: fix decoding of QT WRAW files
ami_stuff [Tue, 24 May 2011 21:38:01 +0000 (23:38 +0200)]
rawdec: fix decoding of QT WRAW files

Fix decoding of QT WRAW files.

From some tests it results that:

1. all of the AVI/MOV WRAW files (at least from the link posted
   to the trac ticket #108) need to be flipped
2. mov WRAW files need to use AVI color modes
3. assigning PAL8 mode by default to WRAW codec is not correct

Fix decoding of file CarltonMovie2.mov, fix trac issue #108.

13 years agomatroska: improve declaration of video_stereo_* constant tables
Aurelien Jacobs [Tue, 24 May 2011 21:34:24 +0000 (23:34 +0200)]
matroska: improve declaration of video_stereo_* constant tables

13 years agomatroskadec: fix reverted condition to accept combine_plane operation
Aurelien Jacobs [Tue, 24 May 2011 21:26:24 +0000 (23:26 +0200)]
matroskadec: fix reverted condition to accept combine_plane operation

13 years agoFix register types for LOAD_AB arguments, fixes compilation with NASM.
Reimar Döffinger [Tue, 24 May 2011 20:24:08 +0000 (22:24 +0200)]
Fix register types for LOAD_AB arguments, fixes compilation with NASM.

13 years agoswscale: unbreak the build on non-x86 systems.
Ronald S. Bultje [Tue, 24 May 2011 19:32:03 +0000 (15:32 -0400)]
swscale: unbreak the build on non-x86 systems.

13 years agoswscale: remove if(bitexact) branch from functions.
Ronald S. Bultje [Tue, 24 May 2011 16:30:55 +0000 (12:30 -0400)]
swscale: remove if(bitexact) branch from functions.

Instead, only set the function pointers if bitexact flag is
not set during initialization. Since a change in flags triggers
a re-init anyway, this doesn't situations where flag values
change during runtime.

13 years agoswscale: remove if(canMMX2BeUsed) conditional.
Ronald S. Bultje [Tue, 24 May 2011 16:15:14 +0000 (12:15 -0400)]
swscale: remove if(canMMX2BeUsed) conditional.

Instead, set function pointers conditionally during init. This
patch also reveals a whole branch of dead assembly code that is
therefore also removed.

13 years agoswscale: remove swScale_{c,MMX,MMX2} duplication.
Ronald S. Bultje [Tue, 24 May 2011 16:43:29 +0000 (12:43 -0400)]
swscale: remove swScale_{c,MMX,MMX2} duplication.

13 years agoswscale: use emms_c().
Ronald S. Bultje [Tue, 24 May 2011 17:04:46 +0000 (13:04 -0400)]
swscale: use emms_c().

13 years agoMove emms_c() from libavcodec to libavutil.
Ronald S. Bultje [Tue, 24 May 2011 17:04:38 +0000 (13:04 -0400)]
Move emms_c() from libavcodec to libavutil.

13 years agotiff: set palette in the context when specified in TIFF_PAL tag
Stefano Sabatini [Mon, 23 May 2011 23:17:25 +0000 (01:17 +0200)]
tiff: set palette in the context when specified in TIFF_PAL tag

Since image initialization was moved after tag parsing, the
palette needs to be specified in the context and then copied
to the allocated image in init_image().

Fixes a regression with TIFF images that have palette data,
trac issue #230, file Test_Flate_8bpp.tif.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agortsp: use strtoul to parse rtptime and seq values.
Ilya [Sat, 26 Mar 2011 16:13:36 +0000 (17:13 +0100)]
rtsp: use strtoul to parse rtptime and seq values.

strtol could return negative values, leading to various error messages,
mainly "non-monotonically increasing dts".

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agopgssubdec: fix incorrect colors.
Alexandre Colucci [Fri, 25 Mar 2011 16:31:28 +0000 (17:31 +0100)]
pgssubdec: fix incorrect colors.

On Blu-ray colors are stored in the order YCrCb (and not YCbCr) as mentioned in the specifications:
see System Description Blu-ray Disc Read-Only Format, 9.14.4.2.2.1 Palette Definition Segment

When decoding a Blu-ray subtitle, the colors were incorrectly set.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agodvdsubdec: fix incorrect colors.
Alexandre Colucci [Fri, 25 Mar 2011 10:25:02 +0000 (11:25 +0100)]
dvdsubdec: fix incorrect colors.

On DVD and HD-DVD colors are stored in the order YCrCb (and not YCbCr) as mentioned in the specifications:
see DVD Specifications for Read-Only Disc / Part 3, 4.3 Program Chain Information (7) PGC_SP_PLT
see DVD Specifications for High Definition Disc, 5.2 Navigation for Standard Content (11) PGC_SDSP_PLT
see DVD Specifications for High Definition Disc, 5.2 Navigation for Standard Content (12) PGC_HDSP_PLT
see DVD Specifications for High Definition Disc, 5.5 Presentation Data (4) SET_COLOR2

When decoding a DVD or HD-DVD subtitle, the colors were incorrectly set.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoape: Allow demuxing of files with metadata tags.
Carl Eugen Hoyos [Mon, 21 Mar 2011 11:04:10 +0000 (12:04 +0100)]
ape: Allow demuxing of files with metadata tags.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoswscale: remove dead macro WRITEBGR24OLD.
Ronald S. Bultje [Tue, 24 May 2011 14:46:40 +0000 (10:46 -0400)]
swscale: remove dead macro WRITEBGR24OLD.

13 years agoswscale: remove AMD3DNOW "optimizations".
Ronald S. Bultje [Tue, 24 May 2011 14:19:41 +0000 (10:19 -0400)]
swscale: remove AMD3DNOW "optimizations".

The functions are identical to their MMX counterparts. Thus,
pretending that swscale is highly optimized for AMD3DNOW
extensions is a poorly executed practical joke at best.

13 years agoswscale: remove duplicate code in ppc/ subdirectory.
Ronald S. Bultje [Sat, 14 May 2011 18:45:27 +0000 (14:45 -0400)]
swscale: remove duplicate code in ppc/ subdirectory.

13 years agoswscale: remove duplicated x86/ functions.
Ronald S. Bultje [Tue, 24 May 2011 14:11:26 +0000 (10:11 -0400)]
swscale: remove duplicated x86/ functions.

13 years agoswscale: force --enable-runtime-cpudetect and remove SWS_CPU_CAPS_*.
Ronald S. Bultje [Tue, 24 May 2011 14:03:26 +0000 (10:03 -0400)]
swscale: force --enable-runtime-cpudetect and remove SWS_CPU_CAPS_*.

13 years agovsrc_buffer.h: add file doxy
Stefano Sabatini [Mon, 11 Apr 2011 09:29:35 +0000 (11:29 +0200)]
vsrc_buffer.h: add file doxy

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agovsrc_buffer: tweak error message in init()
Stefano Sabatini [Sun, 3 Apr 2011 14:48:33 +0000 (16:48 +0200)]
vsrc_buffer: tweak error message in init()

Change:
Expected 7 arguments, but only %d found in '%s'\n
to:
Expected 7 arguments, but %d found in '%s'\n

as the user may provide more than 7 arguments, in that case the error
is not misleading.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agowav: fix various printf warnings related to wrong argument type
Stefano Sabatini [Tue, 24 May 2011 11:29:33 +0000 (13:29 +0200)]
wav: fix various printf warnings related to wrong argument type

13 years agowav: propagate ff_get_wav_header() error code in w64_read_header()
Stefano Sabatini [Tue, 24 May 2011 11:18:31 +0000 (13:18 +0200)]
wav: propagate ff_get_wav_header() error code in w64_read_header()

Alos fix warning:
wav.c: In function ‘w64_read_header’:
wav.c:546: warning: ‘ret’ may be used uninitialized in this function

13 years agomsmpeg4: reindent.
Anton Khirnov [Sat, 21 May 2011 10:23:34 +0000 (12:23 +0200)]
msmpeg4: reindent.

13 years agolavc: remove msmpeg4v1 encoder.
Anton Khirnov [Fri, 13 May 2011 06:03:36 +0000 (08:03 +0200)]
lavc: remove msmpeg4v1 encoder.

The encoder has never produced files that could be decoded
with any software and there should be no reason to create
such files anyway.

13 years agoRemove avconfig.h and INCINSTDIRs on uninstall.
Carl Eugen Hoyos [Tue, 24 May 2011 08:08:55 +0000 (10:08 +0200)]
Remove avconfig.h and INCINSTDIRs on uninstall.

13 years agoac3enc: add channel coupling support
Justin Ruggles [Mon, 23 May 2011 15:45:51 +0000 (17:45 +0200)]
ac3enc: add channel coupling support

Channel coupling is an optional AC-3 feature that increases quality by
combining high frequency information from multiple channels into a
single channel. The per-channel high frequency information is sent with
less accuracy in both the frequency and time domains. This allows more
bits to be used for lower frequencies while preserving enough
information to reconstruct the high frequencies.

13 years agopartial revert of 01d3ebaf219d83c0a70cdf9696ecb6b868e8a165
Michael Niedermayer [Tue, 24 May 2011 03:19:56 +0000 (05:19 +0200)]
partial revert of 01d3ebaf219d83c0a70cdf9696ecb6b868e8a165

Fixes ffplay

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agofate: reenable frext-pph10i4_panasonic_a after the bitstream has been fixed
Michael Niedermayer [Tue, 24 May 2011 02:57:51 +0000 (04:57 +0200)]
fate: reenable frext-pph10i4_panasonic_a after the bitstream has been fixed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 24 May 2011 02:08:36 +0000 (04:08 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: Add -U__STRICT_ANSI__ to CPPFLAGS on Cygwin and DOS.
  aacdec: fix typo in scalefactor clipping check
  fate: fix fate-h264-conformance-frext-pph10i4-panasonic-a crcs.
  fate: update 9/10bit refs.
  h264: Properly set coded_{width, height} when parsing H.264.
  x86 asm: Add SECTION_TEXT to dct32_sse.asm.
  Fix 9/10 bit in swscale.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoavcodec_find_decoder: prefer non experimental decoders.
Michael Niedermayer [Mon, 23 May 2011 23:31:15 +0000 (01:31 +0200)]
avcodec_find_decoder: prefer non experimental decoders.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoj2kdec: mark as CODEC_CAP_EXPERIMENTAL
Michael Niedermayer [Mon, 23 May 2011 22:01:29 +0000 (00:01 +0200)]
j2kdec: mark as CODEC_CAP_EXPERIMENTAL

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoj2k[c/h] j2kdec.c: Implement 2 code block styles
Rukhsana Ruby [Mon, 23 May 2011 21:56:20 +0000 (23:56 +0200)]
j2k[c/h] j2kdec.c: Implement 2 code block styles

13 years agoj2k: Add void as the parameter of function ff_j2k_init_tier1_luts
Rukhsana Ruby [Mon, 23 May 2011 21:55:28 +0000 (23:55 +0200)]
j2k: Add void as the parameter of function ff_j2k_init_tier1_luts

13 years agoAdd Kamil Nowosads j2k code.
Kamil Nowosad [Mon, 23 May 2011 21:13:34 +0000 (23:13 +0200)]
Add Kamil Nowosads j2k code.

This needs work but it should not rot in soc svn.

13 years agomatroska: cleanup handling of video stereo mode
Aurelien Jacobs [Mon, 23 May 2011 23:09:24 +0000 (01:09 +0200)]
matroska: cleanup handling of video stereo mode

13 years agooggdec: use av_dlog()
Stefano Sabatini [Mon, 23 May 2011 21:51:39 +0000 (23:51 +0200)]
oggdec: use av_dlog()

Simplify.

13 years agomem: define the MAX_MALLOC_SIZE constant and use it in place of INT_MAX
Stefano Sabatini [Wed, 18 May 2011 21:59:38 +0000 (23:59 +0200)]
mem: define the MAX_MALLOC_SIZE constant and use it in place of INT_MAX

This makes re-dimensionating the constant simpler, since now it is
defined only in one place.

13 years agoconfigure: Add -U__STRICT_ANSI__ to CPPFLAGS on Cygwin and DOS.
Diego Biurrun [Sun, 15 May 2011 12:32:15 +0000 (14:32 +0200)]
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.

13 years agomuxers.texi changes for mkv/webm options
alahuja [Mon, 23 May 2011 15:33:35 +0000 (08:33 -0700)]
muxers.texi changes for mkv/webm options

13 years agoaacdec: fix typo in scalefactor clipping check
Justin Ruggles [Mon, 23 May 2011 19:56:52 +0000 (15:56 -0400)]
aacdec: fix typo in scalefactor clipping check

13 years agompegaudio: Correct license header
Michael Niedermayer [Mon, 23 May 2011 15:33:03 +0000 (17:33 +0200)]
mpegaudio: Correct license header

To the best of my knowledge the author has not agreed to the change
from ffmpeg->libav thus i revert it.

13 years agoadd 5.1 to stereo downmix to resample.c
jan gerber [Mon, 23 May 2011 15:22:02 +0000 (17:22 +0200)]
add 5.1 to stereo downmix to resample.c
this is based on previous 6to2channel-resample.patch from ffmpeg2theora
but updated to work with trunk and using av_clip_int16.

13 years agofate: fix fate-h264-conformance-frext-pph10i4-panasonic-a crcs.
Ronald S. Bultje [Mon, 23 May 2011 12:44:31 +0000 (08:44 -0400)]
fate: fix fate-h264-conformance-frext-pph10i4-panasonic-a crcs.

The sample on rsync was corrupt, this one is now bitexact w.r.t. JM.

13 years agofate: update 9/10bit refs.
Ronald S. Bultje [Mon, 23 May 2011 12:08:03 +0000 (08:08 -0400)]
fate: update 9/10bit refs.

13 years agoh264: Properly set coded_{width, height} when parsing H.264.
Felipe Contreras [Thu, 19 May 2011 21:39:12 +0000 (00:39 +0300)]
h264: Properly set coded_{width, height} when parsing H.264.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agox86 asm: Add SECTION_TEXT to dct32_sse.asm.
Dave Yeo [Sun, 22 May 2011 17:44:17 +0000 (10:44 -0700)]
x86 asm: Add SECTION_TEXT to dct32_sse.asm.

This fixes the following error on OS/2:
error: segment name `.text align=16' not recognized

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoFix 9/10 bit in swscale.
Kieran Kunhya [Mon, 23 May 2011 02:02:12 +0000 (03:02 +0100)]
Fix 9/10 bit in swscale.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 23 May 2011 02:16:08 +0000 (04:16 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  ffmpeg: Don't trigger url_interrupt_cb on the first signal
  avoptions: Check the return value from av_get_number
  dct32_sse: eliminate some spills
  Fix dct32() compilation with --disable-yasm

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoDo not ask for samples if a specific channel layout was requested.
Carl Eugen Hoyos [Sun, 22 May 2011 23:23:33 +0000 (01:23 +0200)]
Do not ask for samples if a specific channel layout was requested.

13 years agolibx264: specify field for default union values in options
Stefano Sabatini [Sun, 22 May 2011 19:28:28 +0000 (21:28 +0200)]
libx264: specify field for default union values in options

Fix warnings.

13 years agomovdec: dont divide by zero when stts_data[0].duration = 0.
Michael Niedermayer [Sun, 22 May 2011 19:26:13 +0000 (21:26 +0200)]
movdec: dont divide by zero when stts_data[0].duration = 0.

Fixes ticket223
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoFix ticket127
Michael Niedermayer [Sun, 22 May 2011 17:06:10 +0000 (19:06 +0200)]
Fix ticket127

This fixes detectiion of slightly too big dummy frames.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agodct32: Replacing libav by ffmpeg in the license header with the authors permission.
Michael Niedermayer [Sun, 22 May 2011 14:18:36 +0000 (16:18 +0200)]
dct32: Replacing libav by ffmpeg in the license header with the authors permission.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoffmpeg: Don't trigger url_interrupt_cb on the first signal
Martin Storsjö [Sun, 22 May 2011 11:40:33 +0000 (14:40 +0300)]
ffmpeg: Don't trigger url_interrupt_cb on the first signal

Currently, the url_interrupt_cb callback will abort all IO
after the first received signal. This makes the output files
from e.g. the mov muxer to be unreadable if the transcode is
aborted with ctrl+c.

After this patch, the first signal cleanly breaks out of
the transcoding loop, but won't forcibly abort all IO.
After the second signal is received, the url_interrupt_cb
callback will abort all IO.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoavoptions: Check the return value from av_get_number
Martin Storsjö [Sun, 22 May 2011 18:34:49 +0000 (21:34 +0300)]
avoptions: Check the return value from av_get_number

This avoids doing a division by zero if the option wasn't found,
or wasn't an option of an appropriate type.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolavf: fix style for avformat_alloc_output_context2()
Stefano Sabatini [Thu, 19 May 2011 20:12:37 +0000 (22:12 +0200)]
lavf: fix style for avformat_alloc_output_context2()

More consistent/readable.

13 years agolavf: deprecate avformat_alloc_output_context() in favor of avformat_alloc_output_con...
Stefano Sabatini [Thu, 19 May 2011 20:09:34 +0000 (22:09 +0200)]
lavf: deprecate avformat_alloc_output_context() in favor of avformat_alloc_output_context2()

The new function accepts a slightly more intuitive order of paramters,
and returns an error code, thus allowing applications to report a
meaningful error message.

13 years agolavfi: make vsrc_buffer.h header public
Stefano Sabatini [Sun, 22 May 2011 17:30:08 +0000 (19:30 +0200)]
lavfi: make vsrc_buffer.h header public

Address trac issue #33.

13 years agodct32_sse: eliminate some spills
Loren Merritt [Sat, 21 May 2011 21:36:23 +0000 (23:36 +0200)]
dct32_sse: eliminate some spills

125->104 cycles on penryn (x86_64 only)

13 years agoFix compilation with --disable-yasm.
Vitor Sessak [Sun, 22 May 2011 11:41:13 +0000 (13:41 +0200)]
Fix compilation with --disable-yasm.

13 years agoFix dct32() compilation with --disable-yasm
Vitor Sessak [Sun, 22 May 2011 10:04:33 +0000 (12:04 +0200)]
Fix dct32() compilation with --disable-yasm

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 22 May 2011 02:53:19 +0000 (04:53 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  ffmpeg: get rid of the -vglobal option.
  dct32: Add AVX implementation of 32-point DCT
  dct32: Change pass 6 permutation to allow for AVX implementation
  dct32: port SSE 32-point DCT to YASM
  multiple inclusion guard cleanup
  avio: document buffer must created with av_malloc() and friends
  avio: check AVIOContext malloc failure
  swscale: point out an alternative to sws_getContext
  svq3: Do initialization after parsing the extradata
  add changelog entries for 0.7_beta2
  mp3lame: add #include required for AV_RB32 macro.

Conflicts:
Changelog
libavcodec/svq3.c
libavcodec/x86/dct32_sse.c
libavfilter/vsrc_buffer.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agompeg2dec: Fix lowres 3
Michael Niedermayer [Sun, 22 May 2011 01:30:01 +0000 (03:30 +0200)]
mpeg2dec: Fix lowres 3

Fixes ticket212

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agolavfi: bump minor and add changelog entry after the split filter addition
Stefano Sabatini [Sat, 21 May 2011 23:34:15 +0000 (01:34 +0200)]
lavfi: bump minor and add changelog entry after the split filter addition

13 years agovf_split: add documentation to filters.texi
Stefano Sabatini [Sat, 21 May 2011 23:32:40 +0000 (01:32 +0200)]
vf_split: add documentation to filters.texi

13 years agovf_split: give more meaningful names to the output pads
Stefano Sabatini [Sat, 21 May 2011 23:32:18 +0000 (01:32 +0200)]
vf_split: give more meaningful names to the output pads

Rename "default" -> "output1", "default2" -> output2.

13 years agovf_split: define draw_slice() before end_frame()
Stefano Sabatini [Sat, 21 May 2011 23:20:53 +0000 (01:20 +0200)]
vf_split: define draw_slice() before end_frame()

Improve logical coherence, fix nit.

13 years agovf_split: add description
Stefano Sabatini [Sat, 21 May 2011 23:19:20 +0000 (01:19 +0200)]
vf_split: add description

13 years agovf_split: fix various nits
Stefano Sabatini [Sat, 21 May 2011 23:18:59 +0000 (01:18 +0200)]
vf_split: fix various nits

13 years agowmadec: avoid infinit loop.
Michael Niedermayer [Sun, 22 May 2011 00:33:03 +0000 (02:33 +0200)]
wmadec: avoid infinit loop.

Fixes ticket183

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoDirectShow capture: Fix build
Ramiro Polla [Sat, 21 May 2011 19:53:15 +0000 (21:53 +0200)]
DirectShow capture: Fix build

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoffmpeg: get rid of the -vglobal option.
Anton Khirnov [Sat, 21 May 2011 10:05:49 +0000 (12:05 +0200)]
ffmpeg: get rid of the -vglobal option.

It's badly documented and does the same thing as -flags global_header,
so it's redundant.

13 years agodct32: Add AVX implementation of 32-point DCT
Vitor Sessak [Sat, 14 May 2011 12:17:15 +0000 (14:17 +0200)]
dct32: Add AVX implementation of 32-point DCT

13 years agodct32: Change pass 6 permutation to allow for AVX implementation
Vitor Sessak [Sat, 14 May 2011 12:16:30 +0000 (14:16 +0200)]
dct32: Change pass 6 permutation to allow for AVX implementation

13 years agodct32: port SSE 32-point DCT to YASM
Vitor Sessak [Tue, 17 May 2011 16:26:01 +0000 (18:26 +0200)]
dct32: port SSE 32-point DCT to YASM

13 years agomatroska: switch stereo mode from int to string and add support in the demuxer too
Kirill Gavrilov [Sat, 21 May 2011 15:14:14 +0000 (17:14 +0200)]
matroska: switch stereo mode from int to string and add support in the demuxer too

13 years agomatroska: cosmetics
Kirill Gavrilov [Sat, 21 May 2011 15:08:53 +0000 (17:08 +0200)]
matroska: cosmetics

13 years agoCreate a stereo_mode metadata tag to specify the stereo 3d video layout using the...
Alok Ahuja [Sun, 24 Apr 2011 05:29:13 +0000 (22:29 -0700)]
Create a stereo_mode metadata tag to specify the stereo 3d video layout using the StereoMode tag in a matroska/webm video track.

13 years agolibavfilter: vf_split from soc.
Bobby Bingham [Sat, 21 May 2011 14:46:11 +0000 (16:46 +0200)]
libavfilter: vf_split from soc.

Commited by michael, for detailed authorship see soc repo

13 years agoDirectShow capture support
Ramiro Polla [Sat, 21 May 2011 12:24:50 +0000 (14:24 +0200)]
DirectShow capture support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agomultiple inclusion guard cleanup
Diego Biurrun [Tue, 17 May 2011 14:58:04 +0000 (16:58 +0200)]
multiple inclusion guard cleanup

Add missing multiple inclusion guards; clean up #endif comments;
add missing library prefixes; keep guard names consistent.

13 years agoavio: document buffer must created with av_malloc() and friends
Can Wu [Sat, 14 May 2011 09:34:28 +0000 (17:34 +0800)]
avio: document buffer must created with av_malloc() and friends

Else a later buffer resize in ffio_set_buf_size() will ABORT.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoavio: check AVIOContext malloc failure
Can Wu [Sat, 14 May 2011 09:27:31 +0000 (17:27 +0800)]
avio: check AVIOContext malloc failure

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoswscale: point out an alternative to sws_getContext
Clément Bœsch [Thu, 5 May 2011 19:25:46 +0000 (21:25 +0200)]
swscale: point out an alternative to sws_getContext

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agosvq3: Do initialization after parsing the extradata
Ronald S. Bultje [Fri, 13 May 2011 07:24:31 +0000 (10:24 +0300)]
svq3: Do initialization after parsing the extradata

If done before, some parameters aren't known yet.

With svq3/rtp, initializing before some parameters are known
can lead to calling av_malloc(0), which on OS X currently returns
broken pointers.

13 years agoFix channel_layout documentation.
Carl Eugen Hoyos [Sat, 21 May 2011 09:08:44 +0000 (11:08 +0200)]
Fix channel_layout documentation.

libavformat/riff.c has been writing channel_layout for as long as
the field exists.

13 years agoadd changelog entries for 0.7_beta2
Reinhard Tartler [Thu, 12 May 2011 16:18:54 +0000 (18:18 +0200)]
add changelog entries for 0.7_beta2

13 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 21 May 2011 03:00:01 +0000 (05:00 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: make executable again
  LATM/AAC: Free previously initialized context on reinit.
  configure: Do not unconditionally add -Wall to host CFLAGS.
  configure: Set OS/2 objformat to a.out.
  Add support for a.out object format to assembler macros.
  fate: disable threading for encoding
  fate: add comment field
  fate: allow overriding default build and install dirs
  mpegtsenc: Add an AVClass pointer to the private data
  mpegaudio: clean up #includes
  mpegaudio: move all header parsing to mpegaudiodecheader.[ch]

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoffserver: dont just crash
Mike William [Sat, 21 May 2011 02:50:59 +0000 (04:50 +0200)]
ffserver: dont just crash

With changes from ubitux.

13 years agofix ffserver's SIGSEGV
Maksym Veremeyenko [Sat, 21 May 2011 02:39:20 +0000 (04:39 +0200)]
fix ffserver's SIGSEGV