OSDN Git Service

coroid/ffmpeg_saccubus.git
13 years agoid3v2: Check malloc result. ID3v2 tags can be very large.
Alex Converse [Thu, 26 May 2011 00:57:33 +0000 (17:57 -0700)]
id3v2: Check malloc result. ID3v2 tags can be very large.

13 years agoid3v2: Initialize tflags for version 2.2.
Alex Converse [Thu, 26 May 2011 00:03:12 +0000 (17:03 -0700)]
id3v2: Initialize tflags for version 2.2.

13 years agoARM: add ARMv6 optimised av_clip_uintp2
Mans Rullgard [Tue, 24 May 2011 14:46:28 +0000 (15:46 +0100)]
ARM: add ARMv6 optimised av_clip_uintp2

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoARM: remove volatile from asm statements in libavutil/intmath
Mans Rullgard [Tue, 24 May 2011 14:45:50 +0000 (15:45 +0100)]
ARM: remove volatile from asm statements in libavutil/intmath

The volatile qualifiers are not needed on these statements as
their effects are fully specified by constraints.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoARM: fix av_clipl_int32_arm()
Mans Rullgard [Wed, 25 May 2011 17:43:28 +0000 (18:43 +0100)]
ARM: fix av_clipl_int32_arm()

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agov4l: include avdevice.h
Anton Khirnov [Thu, 26 May 2011 18:32:05 +0000 (20:32 +0200)]
v4l: include avdevice.h

Fixes build.

13 years agoffserver: move close_connection() call to avoid a temporary string and copy.
Mike Williams [Wed, 18 May 2011 13:14:22 +0000 (09:14 -0400)]
ffserver: move close_connection() call to avoid a temporary string and copy.

Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavf: initialize demuxer private options.
Anton Khirnov [Thu, 26 May 2011 04:59:08 +0000 (06:59 +0200)]
lavf: initialize demuxer private options.

13 years agoAVOptions: set string default values.
Anton Khirnov [Thu, 26 May 2011 06:48:31 +0000 (08:48 +0200)]
AVOptions: set string default values.

13 years agolavdevice: mark v4l for removal on next major bump.
Anton Khirnov [Thu, 26 May 2011 15:48:52 +0000 (17:48 +0200)]
lavdevice: mark v4l for removal on next major bump.

13 years agoswscale: fix compile on ppc.
Ronald S. Bultje [Thu, 26 May 2011 15:32:32 +0000 (11:32 -0400)]
swscale: fix compile on ppc.

13 years agoswscale: fix compile on x86-32.
Ronald S. Bultje [Thu, 26 May 2011 14:36:47 +0000 (10:36 -0400)]
swscale: fix compile on x86-32.

13 years agobuild: Remove generated .version file on distclean.
Diego Biurrun [Thu, 26 May 2011 13:48:31 +0000 (15:48 +0200)]
build: Remove generated .version file on distclean.

13 years agoconfigure: Add -D_GNU_SOURCE to CPPFLAGS on OS/2.
Diego Biurrun [Thu, 26 May 2011 12:21:04 +0000 (14:21 +0200)]
configure: Add -D_GNU_SOURCE to CPPFLAGS on OS/2.

The flag is required for some C99 math functions to be declared.

13 years agodoc: Drop hint at --enable-memalign-hack for MinGW, it is now autodetected.
Diego Biurrun [Thu, 26 May 2011 12:40:29 +0000 (14:40 +0200)]
doc: Drop hint at --enable-memalign-hack for MinGW, it is now autodetected.

13 years agoffplay: Remove disabled code.
Diego Biurrun [Tue, 26 Apr 2011 12:29:14 +0000 (14:29 +0200)]
ffplay: Remove disabled code.

13 years agoMark parameterless function declarations as 'void'.
Diego Biurrun [Thu, 26 May 2011 11:37:13 +0000 (13:37 +0200)]
Mark parameterless function declarations as 'void'.

13 years agoswscale: use av_clip_uint8() in yuv2yuv1_c().
Ronald S. Bultje [Wed, 25 May 2011 19:28:12 +0000 (15:28 -0400)]
swscale: use av_clip_uint8() in yuv2yuv1_c().

13 years agoswscale: remove VOF/VOFW.
Ronald S. Bultje [Thu, 26 May 2011 13:17:52 +0000 (09:17 -0400)]
swscale: remove VOF/VOFW.

13 years agoswscale: split chroma buffers into separate U/V planes.
Ronald S. Bultje [Wed, 25 May 2011 18:30:09 +0000 (14:30 -0400)]
swscale: split chroma buffers into separate U/V planes.

Preparatory step to implement support for sizes > VOFW.

13 years agoswscale: replace formatConvBuffer[VOF] by allocated array.
Ronald S. Bultje [Thu, 26 May 2011 13:15:38 +0000 (09:15 -0400)]
swscale: replace formatConvBuffer[VOF] by allocated array.

This allows to convert between formats of arbitrary width,
regardless of the value of VOF/VOFW.

13 years agorgb2rgb: remove duplicate mmx/mmx2/3dnow/sse2 functions.
Ronald S. Bultje [Tue, 24 May 2011 22:28:40 +0000 (18:28 -0400)]
rgb2rgb: remove duplicate mmx/mmx2/3dnow/sse2 functions.

Many functions have such a prefix, but do not actually use any
instructions or features from that set, thus giving the false
impression that swscale is highly optimized for a particular
system, whereas in reality it is not.

13 years agoswscale: reindent h[cy]scale_fast() and updateDitherTables().
Ronald S. Bultje [Tue, 24 May 2011 21:50:03 +0000 (17:50 -0400)]
swscale: reindent h[cy]scale_fast() and updateDitherTables().

13 years agoswscale: reformat x86/swscale_template.c.
Ronald S. Bultje [Thu, 26 May 2011 13:11:29 +0000 (09:11 -0400)]
swscale: reformat x86/swscale_template.c.

Interleave macros and code so that it's easier to find the
actual code that belongs to a function. Also reindent where
appropriate and remove dead code.

13 years agoswscale: remove duplicate mmx/mmx2 functions if they are identical.
Ronald S. Bultje [Tue, 24 May 2011 20:45:41 +0000 (16:45 -0400)]
swscale: remove duplicate mmx/mmx2 functions if they are identical.

13 years agoswscale: remove if (c->dstFormat) branch from yuv2packed[12X]().
Ronald S. Bultje [Tue, 24 May 2011 20:02:47 +0000 (16:02 -0400)]
swscale: remove if (c->dstFormat) branch from yuv2packed[12X]().

This allows cutting up the function in much smaller and easier-
to-maintain chunks.

13 years agoswscale: remove if(full_chr_int) from yuv2packed1().
Ronald S. Bultje [Tue, 24 May 2011 19:18:40 +0000 (15:18 -0400)]
swscale: remove if(full_chr_int) from yuv2packed1().

If that flag is set, swScale() already proxies the call to
yuv2rgbXinC_full(). Therefore, this flag is never set when
yuv2packed1() is called.

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

13 years agoffserver: Fix a null pointer dereference as a result of the FF_API_MAX_STREAMS cleanup.
Mike Williams [Wed, 18 May 2011 15:03:10 +0000 (11:03 -0400)]
ffserver: Fix a null pointer dereference as a result of the FF_API_MAX_STREAMS cleanup.

Fixed another dereference in the RTSP code.

Removed a useless variable.

Changed an unnecessary looping assignment to a simple assignment suggested by
Maksym.

Added fixes and tweaks suggested by Maksym Veremeyenko [verem@m1stereo.tv] and
Clément B.

13 years agolibdc1394: fix compilation.
Anton Khirnov [Thu, 26 May 2011 05:25:41 +0000 (07:25 +0200)]
libdc1394: fix compilation.

Add a forgotten comma and move options/class definition outside of
HAVE_LIBDC1394_1.

13 years agoswscale: revive SWS_CPU_CAPS until next major bump.
Anton Khirnov [Wed, 25 May 2011 19:47:31 +0000 (21:47 +0200)]
swscale: revive SWS_CPU_CAPS until next major bump.

13 years agoswscale: Remove commented-out printf cruft.
Diego Biurrun [Wed, 25 May 2011 23:40:56 +0000 (01:40 +0200)]
swscale: Remove commented-out printf cruft.

13 years agoac3enc: initialize all coefficients to zero.
Justin Ruggles [Thu, 26 May 2011 00:12:57 +0000 (20:12 -0400)]
ac3enc: initialize all coefficients to zero.

Uninitialized coefficients were being used to generate exponents, some
of which actually ended up in the final stream.  Even though, they were
just extra exponents that are not used by any decoder, it is still
better to have consistent output for testing. This also fixes valgrind
errors.

13 years agodoc: create separate section for audio encoders
Stefano Sabatini [Thu, 19 May 2011 17:41:19 +0000 (19:41 +0200)]
doc: create separate section for audio encoders

Having a separate section for audio encoders simplifies navigation
and is slightly more consistent with the rest of the manual.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoswscale: Remove orphaned, commented-out function declaration.
Diego Biurrun [Wed, 25 May 2011 20:07:55 +0000 (22:07 +0200)]
swscale: Remove orphaned, commented-out function declaration.

13 years agoswscale: Eliminate rgb24toyv12_c() duplication.
Michael Niedermayer [Wed, 25 May 2011 18:49:52 +0000 (20:49 +0200)]
swscale: Eliminate rgb24toyv12_c() duplication.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoRemove h263_msmpeg4 from MpegEncContext.
Alex Converse [Tue, 24 May 2011 23:28:45 +0000 (16:28 -0700)]
Remove h263_msmpeg4 from MpegEncContext.

It was long ago superseded by msmpeg4_version.

13 years agoAPIchanges: Fill in git hash for fps_probe_size (30315a8)
Alex Converse [Wed, 25 May 2011 19:36:41 +0000 (12:36 -0700)]
APIchanges: Fill in git hash for fps_probe_size (30315a8)

13 years agoavformat: Add fpsprobesize as an AVOption.
Alex Converse [Mon, 9 May 2011 21:34:23 +0000 (14:34 -0700)]
avformat: Add fpsprobesize as an AVOption.

13 years agoavoptions: Return explicitly NAN or {0,0} if the option isn't found
Martin Storsjö [Wed, 25 May 2011 13:47:09 +0000 (16:47 +0300)]
avoptions: Return explicitly NAN or {0,0} if the option isn't found

This actually matches what av_get_double did earlier, the
0.0/0.0 division was intentional, for producing NAN.

Still keeping the check for the return value from
av_get_number, for clarity.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortmp: Reindent
Martin Storsjö [Wed, 25 May 2011 19:01:15 +0000 (22:01 +0300)]
rtmp: Reindent

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agortmp: Don't try to do av_malloc(0)
Martin Storsjö [Wed, 25 May 2011 16:08:29 +0000 (19:08 +0300)]
rtmp: Don't try to do av_malloc(0)

Some received packets can have size 0. The return value from
av_malloc(0) may be NULL, which is ok if the size was 0. On
OS X, however, the returned pointer is non-null but leads to
crashes when trying to free it.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agotty: replace AVFormatParameters.sample_rate abuse with a private option.
Anton Khirnov [Mon, 23 May 2011 17:23:55 +0000 (19:23 +0200)]
tty: replace AVFormatParameters.sample_rate abuse with a private option.

13 years agoFix end time of last chapter in compute_chapters_end
John Stebbins [Mon, 23 May 2011 21:26:54 +0000 (14:26 -0700)]
Fix end time of last chapter in compute_chapters_end

Parenthesis are misplaced in calculation of max_time.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoffmpeg: get rid of useless AVInputStream.nb_streams.
Anton Khirnov [Mon, 23 May 2011 15:19:54 +0000 (17:19 +0200)]
ffmpeg: get rid of useless AVInputStream.nb_streams.

It's a duplicate of AVFormatContext.nb_streams.

13 years agoffmpeg: simplify managing input files and streams
Anton Khirnov [Sun, 22 May 2011 20:12:35 +0000 (22:12 +0200)]
ffmpeg: simplify managing input files and streams

Grow the file and stream list in opt_input_file() instead of creating it
all at once in transcode().  This is simpler and will be useful for
following commits.

13 years agoffmpeg: purge redundant AVInputStream.index.
Anton Khirnov [Sun, 22 May 2011 19:54:06 +0000 (21:54 +0200)]
ffmpeg: purge redundant AVInputStream.index.

AVStream.index stores the same thing.

13 years agolavf: deprecate AVFormatParameters.channel.
Anton Khirnov [Mon, 23 May 2011 20:06:09 +0000 (22:06 +0200)]
lavf: deprecate AVFormatParameters.channel.

13 years agolibdc1394: add a private option for channel.
Anton Khirnov [Mon, 23 May 2011 20:01:36 +0000 (22:01 +0200)]
libdc1394: add a private option for channel.

13 years agodv1394: add a private option for channel.
Anton Khirnov [Mon, 23 May 2011 19:55:44 +0000 (21:55 +0200)]
dv1394: add a private option for channel.

13 years agov4l2: reindent.
Anton Khirnov [Tue, 24 May 2011 05:23:29 +0000 (07:23 +0200)]
v4l2: reindent.

13 years agov4l2: add a private option for channel.
Anton Khirnov [Mon, 23 May 2011 19:53:44 +0000 (21:53 +0200)]
v4l2: add a private option for channel.

13 years agolavf: deprecate AVFormatParameters.standard.
Anton Khirnov [Mon, 23 May 2011 19:40:44 +0000 (21:40 +0200)]
lavf: deprecate AVFormatParameters.standard.

13 years agov4l2: add a private option for video standard.
Anton Khirnov [Mon, 23 May 2011 19:21:59 +0000 (21:21 +0200)]
v4l2: add a private option for video standard.

13 years agov4l: add a private option for video standard.
Anton Khirnov [Mon, 23 May 2011 19:21:59 +0000 (21:21 +0200)]
v4l: add a private option for video standard.

13 years agodv1394: add a private option for video standard.
Anton Khirnov [Mon, 23 May 2011 18:58:07 +0000 (20:58 +0200)]
dv1394: add a private option for video standard.

13 years agobktr: add a private option for video standard.
Anton Khirnov [Mon, 23 May 2011 18:45:36 +0000 (20:45 +0200)]
bktr: add a private option for video standard.

13 years agolavf: deprecate AVFormatParameters.{channels,sample_rate}.
Anton Khirnov [Mon, 23 May 2011 18:13:28 +0000 (20:13 +0200)]
lavf: deprecate AVFormatParameters.{channels,sample_rate}.

13 years agorawdec: add sample_rate/channels private options.
Anton Khirnov [Mon, 23 May 2011 18:05:55 +0000 (20:05 +0200)]
rawdec: add sample_rate/channels private options.

13 years agoALSA: add channels and sample_rate private options.
Anton Khirnov [Mon, 23 May 2011 17:03:10 +0000 (19:03 +0200)]
ALSA: add channels and sample_rate private options.

13 years agooss: add channels and sample_rate private options.
Anton Khirnov [Mon, 23 May 2011 17:02:40 +0000 (19:02 +0200)]
oss: add channels and sample_rate private options.

13 years agosndio: add channels and sample_rate private options.
Anton Khirnov [Mon, 23 May 2011 17:02:08 +0000 (19:02 +0200)]
sndio: add channels and sample_rate private options.

13 years agolavf: deprecate AVFormatParameters.mpeg2ts_raw.
Anton Khirnov [Mon, 23 May 2011 19:06:14 +0000 (21:06 +0200)]
lavf: deprecate AVFormatParameters.mpeg2ts_raw.

It doesn't do anything except produce an error message when set.

13 years agompegts: add compute_pcr option.
Anton Khirnov [Sat, 30 Apr 2011 11:42:55 +0000 (13:42 +0200)]
mpegts: add compute_pcr option.

Deprecate the corresponding AVFormatParameters field.

13 years agolavf: add priv_class field to AVInputFormat.
Anton Khirnov [Tue, 24 May 2011 05:27:19 +0000 (07:27 +0200)]
lavf: add priv_class field to AVInputFormat.

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