ffmpeg.git
10 years agoRevert r31153. It failed to build on:
Ramiro Polla [Wed, 12 May 2010 20:47:32 +0000 (20:47 +0000)]
Revert r31153. It failed to build on:
x86_64 / Mac OS X gcc 4.0.1
x86_64 / Linux icc (all)
x86_64 / Linux gcc 4.0.4
x86_64 / OpenBSD gcc 3.3.5
x86_64 / Linux suncc 5.10
and there are some reports of crashes.

Originally committed as revision 31170 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agoSet coded_frame to NULL when closing a codec, since it might
Reimar Döffinger [Wed, 12 May 2010 17:05:56 +0000 (17:05 +0000)]
Set coded_frame to NULL when closing a codec, since it might
be invalid after the codec is "gone".

Originally committed as revision 23101 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agorename -vfilters cli option to -vf
Baptiste Coudurier [Wed, 12 May 2010 01:47:14 +0000 (01:47 +0000)]
rename -vfilters cli option to -vf

Originally committed as revision 23100 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoDo the same sign flip optimization to the low freq decoder.
Michael Niedermayer [Tue, 11 May 2010 21:31:54 +0000 (21:31 +0000)]
Do the same sign flip optimization to the low freq decoder.
as with the high freq 10-20 cycles faster

Originally committed as revision 23099 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFactorize READ_FLIP_SIGN() optimization out
Michael Niedermayer [Tue, 11 May 2010 21:20:33 +0000 (21:20 +0000)]
Factorize READ_FLIP_SIGN() optimization out

Originally committed as revision 23098 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoOptimize decoding high freqs.
Michael Niedermayer [Tue, 11 May 2010 21:10:55 +0000 (21:10 +0000)]
Optimize decoding high freqs.
this is 10-20cpu cycles faster on duron (whole is about 50-60 cpu cylses)
I wonder why gcc isnt doing this on its own ...

Originally committed as revision 23097 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake lsf_sf_expand() 4 times faster.
Michael Niedermayer [Tue, 11 May 2010 20:33:48 +0000 (20:33 +0000)]
Make lsf_sf_expand() 4 times faster.

Originally committed as revision 23096 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agofloat based mp1/mp2/mp3 decoders.
Michael Niedermayer [Tue, 11 May 2010 19:52:42 +0000 (19:52 +0000)]
float based mp1/mp2/mp3 decoders.

Originally committed as revision 23095 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoSet cur_channel in the AAC encoder context where needed.
Alex Converse [Tue, 11 May 2010 18:53:49 +0000 (18:53 +0000)]
Set cur_channel in the AAC encoder context where needed.

Most coder functions read it. Carting this around in the context may be
suboptimal; a refactor should be considered.

Originally committed as revision 23094 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agosilence gcc warning about potential uninitialized usage
Baptiste Coudurier [Tue, 11 May 2010 17:39:52 +0000 (17:39 +0000)]
silence gcc warning about potential uninitialized usage

Originally committed as revision 23093 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agocosmetics, rename loop to frame_available
Baptiste Coudurier [Tue, 11 May 2010 17:25:18 +0000 (17:25 +0000)]
cosmetics, rename loop to frame_available

Originally committed as revision 23092 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agorename curr_filter to last_filter, factorize filter declaration
Baptiste Coudurier [Tue, 11 May 2010 17:23:06 +0000 (17:23 +0000)]
rename curr_filter to last_filter, factorize filter declaration

Originally committed as revision 23091 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agocosmetics: indentation, whitespaces
Baptiste Coudurier [Tue, 11 May 2010 17:18:13 +0000 (17:18 +0000)]
cosmetics: indentation, whitespaces

Originally committed as revision 23090 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agosimplify, reuse existing args variable
Baptiste Coudurier [Tue, 11 May 2010 17:16:52 +0000 (17:16 +0000)]
simplify, reuse existing args variable

Originally committed as revision 23089 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agocosmetics: filt_graph_all -> graph, like in ffplay.c
Baptiste Coudurier [Tue, 11 May 2010 17:14:36 +0000 (17:14 +0000)]
cosmetics: filt_graph_all -> graph, like in ffplay.c

Originally committed as revision 23088 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd -ldl to libfaadbin_extralibs instead of libfaadbin_decoder_extralibs.
Janne Grunau [Tue, 11 May 2010 15:58:50 +0000 (15:58 +0000)]
Add -ldl to libfaadbin_extralibs instead of libfaadbin_decoder_extralibs.
The latter does not exist and thus compilation fails.
patch by Janne Grunau, janne-ffmpeg jannau.net

Originally committed as revision 23087 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoRemove unused FRAC_RND() macro from mpegaudiodec.c.
Michael Niedermayer [Tue, 11 May 2010 14:49:48 +0000 (14:49 +0000)]
Remove unused FRAC_RND() macro from mpegaudiodec.c.

Originally committed as revision 23086 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agomlpdec: Comment channel_params field in struct SubStream.
Nick Brereton [Tue, 11 May 2010 01:46:13 +0000 (01:46 +0000)]
mlpdec: Comment channel_params field in struct SubStream.
Patch by Nick Brereton <nick at nbrereton dot net>

Originally committed as revision 23085 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agomlpdec: Allocate channel decoding parameters for each substream. Some file
Nick Brereton [Tue, 11 May 2010 01:44:52 +0000 (01:44 +0000)]
mlpdec: Allocate channel decoding parameters for each substream. Some file
was encountered with a channel range that overlapped the previous substreams,
and the code assumed no such overlap was possible.
Patch by Nick Brereton <nick at nbrereton dot net>

Originally committed as revision 23084 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoUse int instead of long to pass width parameters in non-public functions.
Ramiro Polla [Tue, 11 May 2010 00:36:34 +0000 (00:36 +0000)]
Use int instead of long to pass width parameters in non-public functions.
long was being incorrectly used as an x86-sized register, both for 32 and 64
bits, but this is not the case in win64.

Originally committed as revision 31153 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agoAdding missing () to mathops.h.
Michael Niedermayer [Tue, 11 May 2010 00:22:50 +0000 (00:22 +0000)]
Adding missing () to mathops.h.

Originally committed as revision 23083 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoReplace more "m" constraints with MANGLE to fix compilation issues
Reimar Döffinger [Mon, 10 May 2010 21:16:08 +0000 (21:16 +0000)]
Replace more "m" constraints with MANGLE to fix compilation issues
with x86_32 gcc 4.4.4 and -fPIC.

Originally committed as revision 23082 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoOptimize decodeplane32().
Sebastian Vater [Mon, 10 May 2010 17:18:09 +0000 (17:18 +0000)]
Optimize decodeplane32().

Patch by Sebastian Vater <cdgs basty googlemail com>.

Originally committed as revision 23081 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoEnsure that width and height are > 0. avcodec_open() itself only checks that
Sebastian Vater [Mon, 10 May 2010 17:00:56 +0000 (17:00 +0000)]
Ensure that width and height are > 0. avcodec_open() itself only checks that
they are >= 0.

Patch by Sebastian Vater <cdgs basty googlemail com>.

Originally committed as revision 23080 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFATE: print friendly error for individual tests when SAMPLES unset
Måns Rullgård [Mon, 10 May 2010 09:32:59 +0000 (09:32 +0000)]
FATE: print friendly error for individual tests when SAMPLES unset

Originally committed as revision 23079 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoCheck NAL unit size to avoid reading past the buffer.
Thomas Devanneaux [Mon, 10 May 2010 07:08:57 +0000 (07:08 +0000)]
Check NAL unit size to avoid reading past the buffer.
This fixes issue1907

Patch by Thomas Devanneaux gmail(thomdev)

Originally committed as revision 23078 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAlloc 16 extra bytes in libavfilter frames. Needed for MMX-optimized swscale.
Vitor Sessak [Mon, 10 May 2010 00:28:18 +0000 (00:28 +0000)]
Alloc 16 extra bytes in libavfilter frames. Needed for MMX-optimized swscale.

Fix issue 1924.

Originally committed as revision 23077 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd FourCC MJPG for CODEC_ID_JPEGLS.
Francesco Lavra [Sun, 9 May 2010 23:19:19 +0000 (23:19 +0000)]
Add FourCC MJPG for CODEC_ID_JPEGLS.

Patch by Francesco Lavra, francescolavra interfree it

Originally committed as revision 23076 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoReorder nut specific codec tags and add a comment for marking them as
Stefano Sabatini [Sun, 9 May 2010 23:04:06 +0000 (23:04 +0000)]
Reorder nut specific codec tags and add a comment for marking them as
such.

Also put the [3][0][0][0] codec tag, mapped to rgb565le, in a special
section. It needs to be specified *after* the nut RGB[16] codec tag,
otherwise it will be used by default when encoding normal non-flipped
rgb565le, and will be decoded like a flipped format (see
rawdec.c:raw_init_decoder()).

Originally committed as revision 23075 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd missing nut-specific codec tags for rawvideo pixel formats.
Stefano Sabatini [Sun, 9 May 2010 23:04:03 +0000 (23:04 +0000)]
Add missing nut-specific codec tags for rawvideo pixel formats.

Add codec tags for the formats:
[15]BGR Packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), big-endian [NOT in AVI]
[15]RGB Packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), big-endian [NOT in AVI]
[16]BGR Packed RGB 5:6:5, 16bpp, (msb)   5R 6G 5B(lsb), big-endian [NOT in AVI]
[16]RGB Packed BGR 5:6:5, 16bpp, (msb)   5B 6G 5R(lsb), big-endian [NOT in AVI]
RGBA    Packed RGBA 8:8:8:8, 32bpp, RGBA [NOT in AVI]
BGRA    Packed RGBA 8:8:8:8, 32bpp, BGRA [NOT in AVI]
ABGR    Packed RGBA 8:8:8:8, 32bpp, ABGR [NOT in AVI]
ARGB    Packed RGBA 8:8:8:8, 32bpp, ARGB [NOT in AVI]
RGB[24] Packed RGB 8:8:8, 24bpp RGB [NOT in AVI]
BGR[24] Packed RGB 8:8:8, 24bpp BGR [NOT in AVI]

which are listed in the nut4cc.txt spec.

Originally committed as revision 23074 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake the codec tags for the yuvjXXX pixel formats the same as the
Stefano Sabatini [Sun, 9 May 2010 23:04:01 +0000 (23:04 +0000)]
Make the codec tags for the yuvjXXX pixel formats the same as the
corresponding ones for the yuvXXX pixel formats.

Originally committed as revision 23073 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd support to the Y411 codec tag, corresponding to the rawvideo pixel
Stefano Sabatini [Sun, 9 May 2010 22:56:04 +0000 (22:56 +0000)]
Add support to the Y411 codec tag, corresponding to the rawvideo pixel
format uyyvyy411.

The codec tag is referenced in fourcc.org.

Originally committed as revision 23072 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake the nut demuxer issue a more meaningful error message if it
Stefano Sabatini [Sun, 9 May 2010 22:56:02 +0000 (22:56 +0000)]
Make the nut demuxer issue a more meaningful error message if it
cannot recognize the provided codec tag.

Originally committed as revision 23071 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agobswap: 10L add missing parens around macro args
Måns Rullgård [Sun, 9 May 2010 20:32:35 +0000 (20:32 +0000)]
bswap: 10L add missing parens around macro args

Originally committed as revision 23070 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoReplace usage of s->streams[0]->* with st->*, which is shorter.
Sebastian Vater [Sun, 9 May 2010 20:10:48 +0000 (20:10 +0000)]
Replace usage of s->streams[0]->* with st->*, which is shorter.

Patch by Sebastian Vater <cdgs basty googlemail com>.

Originally committed as revision 23069 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoRemove "bps" parameter to decodeplane8/32(), it's unused.
Sebastian Vater [Sun, 9 May 2010 20:08:13 +0000 (20:08 +0000)]
Remove "bps" parameter to decodeplane8/32(), it's unused.

Patch by Sebastian Vater <cdgs basty googlemail com>.

Originally committed as revision 23068 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd entry for AVFilterPicRef interlaced and top_field_first fields
Stefano Sabatini [Sun, 9 May 2010 20:07:29 +0000 (20:07 +0000)]
Add entry for AVFilterPicRef interlaced and top_field_first fields
addition.

Originally committed as revision 23067 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoBump lavfi minor after the addition of the fields interlaced and
Stefano Sabatini [Sun, 9 May 2010 20:02:40 +0000 (20:02 +0000)]
Bump lavfi minor after the addition of the fields interlaced and
top_field_first in AVFilterPicRef, done in r23044.

Originally committed as revision 23066 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoqt-faststart: Avoid leaking memory if encountering a file with double ftyp atoms
Martin Storsjö [Sun, 9 May 2010 17:46:42 +0000 (17:46 +0000)]
qt-faststart: Avoid leaking memory if encountering a file with double ftyp atoms

Originally committed as revision 23065 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFATE: update idroq-video-encode command
Måns Rullgård [Sun, 9 May 2010 17:05:35 +0000 (17:05 +0000)]
FATE: update idroq-video-encode command

Originally committed as revision 23064 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoIFF: decode last 8 pixels per line
Måns Rullgård [Sun, 9 May 2010 16:24:20 +0000 (16:24 +0000)]
IFF: decode last 8 pixels per line

The decodeplane8() function processes one byte of input less than
it should.  Also, the for loop has an unusual style with side-effects
in the controlling expression; replaced with a more intuitive while
loop.

10l to Basty.

Originally committed as revision 23063 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix build with swscale disabled
Måns Rullgård [Sun, 9 May 2010 12:04:48 +0000 (12:04 +0000)]
Fix build with swscale disabled

Originally committed as revision 23062 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoOptimize decodeplane8(), patch by Sebastian Vater <cdgs basty googlemail com>.
Sebastian Vater [Sat, 8 May 2010 21:48:44 +0000 (21:48 +0000)]
Optimize decodeplane8(), patch by Sebastian Vater <cdgs basty googlemail com>.

Originally committed as revision 23061 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix auto-scaling.
Stefano Sabatini [Sat, 8 May 2010 21:39:57 +0000 (21:39 +0000)]
Fix auto-scaling.

Use the numeric value assigned to sws_flags for the sws_flags set in
the graph, rather than the string "bilinear", which is not even
parsable by the scale filter.

Originally committed as revision 23060 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd means to adjust the log level per context.
Michael Niedermayer [Sat, 8 May 2010 20:41:20 +0000 (20:41 +0000)]
Add means to adjust the log level per context.

Originally committed as revision 23059 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoRemove hardcoded-tables hack for IA-64: with latest binutils that now actually
Reimar Döffinger [Sat, 8 May 2010 16:32:05 +0000 (16:32 +0000)]
Remove hardcoded-tables hack for IA-64: with latest binutils that now actually
causes linking errors instead of avoiding them.

Originally committed as revision 23058 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAnother try for fixing/improving decode_video documentation.
Reimar Döffinger [Sat, 8 May 2010 16:24:33 +0000 (16:24 +0000)]
Another try for fixing/improving decode_video documentation.

Originally committed as revision 23057 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake config_props() show conversion information before to create the
Stefano Sabatini [Fri, 7 May 2010 22:12:13 +0000 (22:12 +0000)]
Make config_props() show conversion information before to create the
swscale context.

This makes eventual warnings issued in case of swscale context
creation failure to be shown after the conversion information rather
than before, which is slightly less confusing.

Originally committed as revision 23056 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoLog input size, input format and swscale flags used for conversion in
Stefano Sabatini [Fri, 7 May 2010 22:12:10 +0000 (22:12 +0000)]
Log input size, input format and swscale flags used for conversion in
config_props().

Useful for debugging.

Originally committed as revision 23055 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoblackfin: fix yuv422 to yuv420 conversion
Ronaldo Moura [Fri, 7 May 2010 21:59:18 +0000 (21:59 +0000)]
blackfin: fix yuv422 to yuv420 conversion

The old code is correct only when stride = 2*width.

Patch by Ronaldo Moura <ronaldo d moura monity com br>

Originally committed as revision 31142 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agovf_pad: fix mixed code and declarations
Måns Rullgård [Fri, 7 May 2010 17:53:29 +0000 (17:53 +0000)]
vf_pad: fix mixed code and declarations

Originally committed as revision 23054 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoc99 sucks. Replacing scanf("%i") by strtoul()
Michael Niedermayer [Fri, 7 May 2010 13:00:56 +0000 (13:00 +0000)]
c99 sucks. Replacing scanf("%i") by strtoul()

Originally committed as revision 23053 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoDocument the pad filter.
Stefano Sabatini [Fri, 7 May 2010 12:52:46 +0000 (12:52 +0000)]
Document the pad filter.

Originally committed as revision 23052 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoDocument cmdutils.c:print_error().
Stefano Sabatini [Fri, 7 May 2010 12:42:26 +0000 (12:42 +0000)]
Document cmdutils.c:print_error().

Originally committed as revision 23051 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoRemove messy pading hack in ffmpeg.c.
Michael Niedermayer [Fri, 7 May 2010 12:16:23 +0000 (12:16 +0000)]
Remove messy pading hack in ffmpeg.c.
Use avfilters if you want padding!

Originally committed as revision 23050 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake sure get_filtered_video_pic() doesnt loose interlacedframe/tff.
Michael Niedermayer [Fri, 7 May 2010 12:05:24 +0000 (12:05 +0000)]
Make sure get_filtered_video_pic() doesnt loose interlacedframe/tff.

Originally committed as revision 23049 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoEnable libavfilter by default and fix pading for mxf-d10
Michael Niedermayer [Fri, 7 May 2010 11:52:05 +0000 (11:52 +0000)]
Enable libavfilter by default and fix pading for mxf-d10

Originally committed as revision 23048 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoconfigure: update suncc SPARC CPU name mapping
Michael Kostylev [Fri, 7 May 2010 11:50:55 +0000 (11:50 +0000)]
configure: update suncc SPARC CPU name mapping

Patch by Michael Kostylev <michael kostylev gmail>

Originally committed as revision 23047 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd pad filter.
Michael Niedermayer [Fri, 7 May 2010 11:47:13 +0000 (11:47 +0000)]
Add pad filter.

Originally committed as revision 23046 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoSPARC: disable VIS for Niagara CPU
Michael Kostylev [Fri, 7 May 2010 10:17:25 +0000 (10:17 +0000)]
SPARC: disable VIS for Niagara CPU

The Niagara/T1 supports only a subset of VIS, and even this is very slow.

Patch by Michael Kostylev <michael kostylev gmail>

Originally committed as revision 23045 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoTry to keep track of interlaced and top field first.
Michael Niedermayer [Fri, 7 May 2010 10:02:59 +0000 (10:02 +0000)]
Try to keep track of interlaced and top field first.

Originally committed as revision 23044 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoavfilter support for ffmpeg
Michael Niedermayer [Fri, 7 May 2010 09:43:21 +0000 (09:43 +0000)]
avfilter support for ffmpeg

Originally committed as revision 23043 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoEnable vsrc_buffer
Michael Niedermayer [Fri, 7 May 2010 09:22:32 +0000 (09:22 +0000)]
Enable vsrc_buffer

Originally committed as revision 23042 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoSupport setting flags for sws.
Michael Niedermayer [Fri, 7 May 2010 09:20:45 +0000 (09:20 +0000)]
Support setting flags for sws.

Originally committed as revision 23041 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFavor chunk size over hitting the correct position after reading the chunk size in...
Michael Niedermayer [Fri, 7 May 2010 08:08:09 +0000 (08:08 +0000)]
Favor chunk size over hitting the correct position after reading the chunk size in asf.
Fixes issue1923

Originally committed as revision 23040 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd "Memory buffer source filter" from SOC.
Michael Niedermayer [Fri, 7 May 2010 01:25:00 +0000 (01:25 +0000)]
Add "Memory buffer source filter" from SOC.
This is needed by the current SOC-ffmpeg.c code.

Originally committed as revision 23039 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd intra refresh and crf-max support to the libavcodec libx264 wrapper.
Jason Garrett-Glaser [Thu, 6 May 2010 22:38:18 +0000 (22:38 +0000)]
Add intra refresh and crf-max support to the libavcodec libx264 wrapper.
Minor version bump.

Originally committed as revision 23038 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years ago10l: store the result of clipping added in r23035
Alex Converse [Thu, 6 May 2010 20:38:42 +0000 (20:38 +0000)]
10l: store the result of clipping added in r23035

Originally committed as revision 23037 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoError out when too many bits per frame are requested.
Alex Converse [Thu, 6 May 2010 20:35:10 +0000 (20:35 +0000)]
Error out when too many bits per frame are requested.

Originally committed as revision 23036 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake the faac inspired quantizer search make sense for a slightly narrower definition...
Alex Converse [Thu, 6 May 2010 20:18:36 +0000 (20:18 +0000)]
Make the faac inspired quantizer search make sense for a slightly narrower definition of "make sense."

Originally committed as revision 23035 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoReindent after the last commit.
Stefano Sabatini [Wed, 5 May 2010 21:45:00 +0000 (21:45 +0000)]
Reindent after the last commit.

Originally committed as revision 23034 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoSimplify print_error(), directly use av_strerror()/strerror() for
Stefano Sabatini [Wed, 5 May 2010 21:44:57 +0000 (21:44 +0000)]
Simplify print_error(), directly use av_strerror()/strerror() for
printing the error code associated to FF_NETERROR(EPROTONOSUPPORT).

Originally committed as revision 23033 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake print_error() use strerror() in case av_strerror() fails.
Stefano Sabatini [Wed, 5 May 2010 21:44:54 +0000 (21:44 +0000)]
Make print_error() use strerror() in case av_strerror() fails.

Should provide a meaningful error message for systems which do not
support strerror_r().

Fix roundup issue #1894.

Originally committed as revision 23032 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake av_strerror() return -1 even in the case when av_strerror_r() is
Stefano Sabatini [Wed, 5 May 2010 21:44:47 +0000 (21:44 +0000)]
Make av_strerror() return -1 even in the case when av_strerror_r() is
not defined.

This allows applications to check if av_strerror() cannot provide a
meaningful representation for the provided error code, without having
to actually check the filled string.

Originally committed as revision 23031 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoschroenc: Set colorspace info
David Conrad [Wed, 5 May 2010 21:38:02 +0000 (21:38 +0000)]
schroenc: Set colorspace info

Originally committed as revision 23030 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoschroenc: Use AV_RB32
David Conrad [Wed, 5 May 2010 21:37:58 +0000 (21:37 +0000)]
schroenc: Use AV_RB32

Originally committed as revision 23029 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoschroenc: Set open-gop
David Conrad [Wed, 5 May 2010 21:02:49 +0000 (21:02 +0000)]
schroenc: Set open-gop

Originally committed as revision 23028 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoschroenc: Set keyframe interval
David Conrad [Wed, 5 May 2010 21:02:45 +0000 (21:02 +0000)]
schroenc: Set keyframe interval

Originally committed as revision 23027 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoschroenc: Use constant quality for constant quality, not noise threshold
David Conrad [Wed, 5 May 2010 21:02:41 +0000 (21:02 +0000)]
schroenc: Use constant quality for constant quality, not noise threshold

Originally committed as revision 23026 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoschroenc: Don't touch gop_structure by default, it should be left adaptive
David Conrad [Wed, 5 May 2010 21:02:37 +0000 (21:02 +0000)]
schroenc: Don't touch gop_structure by default, it should be left adaptive

Originally committed as revision 23025 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoParse IFF metadata.
Sebastian Vater [Wed, 5 May 2010 17:26:59 +0000 (17:26 +0000)]
Parse IFF metadata.

Patch by Sebastian Vater, cdgs D basty A googlemail

Originally committed as revision 23024 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAlign plane size to word-boundary.
Sebastian Vater [Wed, 5 May 2010 17:02:55 +0000 (17:02 +0000)]
Align plane size to word-boundary.

Patch by Sebastian Vater, cdgs D basty A googlemail

Originally committed as revision 23023 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agomovenc: Write QuickTime chapters
David Conrad [Wed, 5 May 2010 08:41:10 +0000 (08:41 +0000)]
movenc: Write QuickTime chapters

Originally committed as revision 23022 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agomovenc: Swap positions of mov_write_header and mov_write_packet
David Conrad [Wed, 5 May 2010 08:41:06 +0000 (08:41 +0000)]
movenc: Swap positions of mov_write_header and mov_write_packet

Originally committed as revision 23021 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agomov: Read nero chapters
David Conrad [Wed, 5 May 2010 08:41:01 +0000 (08:41 +0000)]
mov: Read nero chapters

Originally committed as revision 23020 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoDo not use pkt->size when it is potentially uninitialized.
Thierry Foucu [Tue, 4 May 2010 17:17:16 +0000 (17:17 +0000)]
Do not use pkt->size when it is potentially uninitialized.

Patch by Thierry Foucu, tfoucu gmail

Originally committed as revision 23017 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoalternative LGPL-licensed, MMX-optimized YUV to RGB conversion routines
Diego Biurrun [Tue, 4 May 2010 09:11:01 +0000 (09:11 +0000)]
alternative LGPL-licensed, MMX-optimized YUV to RGB conversion routines
written by Kostya Shishkov

Originally committed as revision 31135 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agoRevert r22974 int->unsigned parts that don't have any meaningful effect.
Ronald S. Bultje [Mon, 3 May 2010 22:08:31 +0000 (22:08 +0000)]
Revert r22974 int->unsigned parts that don't have any meaningful effect.

Originally committed as revision 23016 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake av_strerror() print an error message mentioning the error code
Stefano Sabatini [Mon, 3 May 2010 21:56:21 +0000 (21:56 +0000)]
Make av_strerror() print an error message mentioning the error code
number if strerror_r() did not succeed for whatever reason.

This avoids the need for the application to fill the string in case
strerror_r() fails, for example because the error code is not known.

Originally committed as revision 23015 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years ago10l: The SBR refactor requires the use of 2 independent output X buffers.
Alex Converse [Mon, 3 May 2010 19:21:35 +0000 (19:21 +0000)]
10l: The SBR refactor requires the use of 2 independent output X buffers.

Originally committed as revision 23014 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoconfigure: allow compiler-specific flags for --disable-optimizations
Måns Rullgård [Mon, 3 May 2010 15:14:55 +0000 (15:14 +0000)]
configure: allow compiler-specific flags for --disable-optimizations

ICC needs at least -O1 to link so add this when optimisations are
otherwise disabled.

Originally committed as revision 23013 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoamrnbdec: Apply AMR_SAMPLE_SCALE when finishing the decoder output
Martin Storsjö [Mon, 3 May 2010 05:57:48 +0000 (05:57 +0000)]
amrnbdec: Apply AMR_SAMPLE_SCALE when finishing the decoder output

The output scaling was accidentally removed in rev 22937.

Originally committed as revision 23012 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAnother buffer overflow, fixes issue1758.
Ronald S. Bultje [Sun, 2 May 2010 21:52:25 +0000 (21:52 +0000)]
Another buffer overflow, fixes issue1758.

Originally committed as revision 23011 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAllow to set archiver tool ar.
Carl Eugen Hoyos [Sun, 2 May 2010 18:59:15 +0000 (18:59 +0000)]
Allow to set archiver tool ar.

Originally committed as revision 23010 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoClarify how allocation works for the picture argument for
Reimar Döffinger [Sun, 2 May 2010 16:07:29 +0000 (16:07 +0000)]
Clarify how allocation works for the picture argument for
avcodec_decode_video3.

Originally committed as revision 23009 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoqt-faststart: Free ftyp_atom at all exit points
Martin Storsjö [Sat, 1 May 2010 21:05:28 +0000 (21:05 +0000)]
qt-faststart: Free ftyp_atom at all exit points

Originally committed as revision 23008 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoReindent after the previous commit
Martin Storsjö [Sat, 1 May 2010 21:03:52 +0000 (21:03 +0000)]
Reindent after the previous commit

Originally committed as revision 23007 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoRemove unnecessary checks before calling free
Martin Storsjö [Sat, 1 May 2010 21:02:23 +0000 (21:02 +0000)]
Remove unnecessary checks before calling free

Feel free to revert if you can specify a concrete case where this actually
is necessary.

Originally committed as revision 23006 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix buffer overrun (or, well, actually a typo, 80 should be 0x80...).
Ronald S. Bultje [Sat, 1 May 2010 18:45:02 +0000 (18:45 +0000)]
Fix buffer overrun (or, well, actually a typo, 80 should be 0x80...).
Partially fixes issue 1758.

Originally committed as revision 23005 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix off-by-one errors in description of score_max argument for
Reimar Döffinger [Sat, 1 May 2010 15:36:51 +0000 (15:36 +0000)]
Fix off-by-one errors in description of score_max argument for
av_probe_input_format2

Originally committed as revision 23004 to svn://svn.ffmpeg.org/ffmpeg/trunk