platform/upstream/libav.git
14 years agoUse ff_url_join for assembling URLs, instead of snprintf
Martin Storsjö [Fri, 5 Mar 2010 22:35:21 +0000 (22:35 +0000)]
Use ff_url_join for assembling URLs, instead of snprintf

This ensures proper escaping of numerical IPv6 addresses.

The RTSP (de)muxer needs its own network initialization, since it isn't
a protocol and url_open hasn't been called yet.

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

14 years agoAdd a function ff_url_join for assembling URLs
Martin Storsjö [Fri, 5 Mar 2010 22:31:45 +0000 (22:31 +0000)]
Add a function ff_url_join for assembling URLs

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

14 years agoAlways call ff_network_init/ff_network_close when opening protocols
Martin Storsjö [Fri, 5 Mar 2010 22:30:21 +0000 (22:30 +0000)]
Always call ff_network_init/ff_network_close when opening protocols

ff_network_init is a no-op on all platforms except windows, and on
windows the performance penalty is minimal (less than 1 ms in my tests).

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

14 years agotry to avoid returning odd slices.
Michael Niedermayer [Fri, 5 Mar 2010 21:39:27 +0000 (21:39 +0000)]
try to avoid returning odd slices.

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

14 years agoRound correctly chroma picture height.
Vitor Sessak [Fri, 5 Mar 2010 20:04:24 +0000 (20:04 +0000)]
Round correctly chroma picture height.

Fix issue 956.

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

14 years agoFix memory leak in NUT muxer
Vitor Sessak [Fri, 5 Mar 2010 17:26:34 +0000 (17:26 +0000)]
Fix memory leak in NUT muxer

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

14 years agoCosmetics: fix vertical alignment.
Benoit Fouet [Fri, 5 Mar 2010 08:41:35 +0000 (08:41 +0000)]
Cosmetics: fix vertical alignment.

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

14 years agoUpdate SW scaler doc after libswscale commit 30841.
Janusz Krzysztofik [Fri, 5 Mar 2010 08:34:31 +0000 (08:34 +0000)]
Update SW scaler doc after libswscale commit 30841.
Patch by Janusz Krzysztofik jkrzyszt, tis icnet pl.

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

14 years agolibswscale: Extend the unaccelerated path of the unscaled yuv2rgb special
Janusz Krzysztofik [Fri, 5 Mar 2010 08:32:54 +0000 (08:32 +0000)]
libswscale: Extend the unaccelerated path of the unscaled yuv2rgb special
            converter with support for rgb444 output format.
Patch by Janusz Krzysztofik jkrzyszt chez tis icnet pl

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

14 years agoAdd initial support for 12-bit color mode.
Janusz Krzysztofik [Fri, 5 Mar 2010 08:26:23 +0000 (08:26 +0000)]
Add initial support for 12-bit color mode.
Patch by Janusz Krzysztofik jkrzyszt tis icnet pl
Original thread:
Subject: [FFmpeg-devel] [PATCH v2] Add initial support for 12-bit color mode.
Date: Mon, 1 Mar 2010 02:05:07 +0100

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

14 years agoReturn from rtp_read when select returns an error
Martin Storsjö [Fri, 5 Mar 2010 08:15:20 +0000 (08:15 +0000)]
Return from rtp_read when select returns an error

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

14 years ago10l fix timestamps (lavfi update broke them)
Michael Niedermayer [Fri, 5 Mar 2010 03:54:39 +0000 (03:54 +0000)]
10l fix timestamps (lavfi update broke them)

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

14 years agoFix 100l pkt->pos typo.
Michael Niedermayer [Fri, 5 Mar 2010 03:34:47 +0000 (03:34 +0000)]
Fix 100l pkt->pos typo.

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

14 years agoLibavfilter for ffplay support.
Michael Niedermayer [Fri, 5 Mar 2010 02:20:10 +0000 (02:20 +0000)]
Libavfilter for ffplay support.
This still needs some minor work here and there but should be already functional.
Note that the code pathes that are under "not avfilter" ifdefs as well as the
ifdefs will be droped as soon as all major issues have been det with, aka could
be real soon or not.

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

14 years agoFix BGR cases missing from depth test in avcodec_get_pix_fmt_loss().
Janusz Krzysztofik [Fri, 5 Mar 2010 00:50:13 +0000 (00:50 +0000)]
Fix BGR cases missing from depth test in avcodec_get_pix_fmt_loss().

Patch by Janusz Krzysztofik:
<${name initial}${surname less the final "ofik"}@tis.icnet.pl>.

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

14 years agooggdec: Parse theora headers since ogg might not mark keyframes
David Conrad [Fri, 5 Mar 2010 00:22:40 +0000 (00:22 +0000)]
oggdec: Parse theora headers since ogg might not mark keyframes

Fixes issue746

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

14 years agoJust ignore streams with unknown codec_type instead of exiting
David Conrad [Fri, 5 Mar 2010 00:22:37 +0000 (00:22 +0000)]
Just ignore streams with unknown codec_type instead of exiting

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

14 years agoCosmetics: use consistent spacing in the ffprobe.c options table.
Stefano Sabatini [Thu, 4 Mar 2010 23:35:30 +0000 (23:35 +0000)]
Cosmetics: use consistent spacing in the ffprobe.c options table.

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

14 years agoFixed DXVA2 H264 hwaccel after luma/chroma_weight changes.
Laurent Aimar [Thu, 4 Mar 2010 19:12:20 +0000 (19:12 +0000)]
Fixed DXVA2 H264 hwaccel after luma/chroma_weight changes.

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

14 years agoFixed buffer overread in flashsv decoder.
Laurent Aimar [Thu, 4 Mar 2010 19:10:44 +0000 (19:10 +0000)]
Fixed buffer overread in flashsv decoder.

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

14 years agoSupport BGR555, BGR565, RGB555 and RGB565 foreign endian output in
Alexis Ballier [Thu, 4 Mar 2010 16:57:04 +0000 (16:57 +0000)]
Support BGR555, BGR565, RGB555 and RGB565 foreign endian output in
libswscale.

Patch by Alexis Ballier, alexis D ballier A gmail

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

14 years agoCheck url_interrupt_cb in rtp_read, wait in select for max 100 ms before rechecking...
Martin Storsjö [Thu, 4 Mar 2010 15:08:54 +0000 (15:08 +0000)]
Check url_interrupt_cb in rtp_read, wait in select for max 100 ms before rechecking url_interrupt_cb

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

14 years agohandle errors reported by av_get_packet() in Bink demuxer
Peter Ross [Thu, 4 Mar 2010 13:27:53 +0000 (13:27 +0000)]
handle errors reported by av_get_packet() in Bink demuxer

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

14 years agoGuard against invalid memory read
Peter Ross [Thu, 4 Mar 2010 13:26:01 +0000 (13:26 +0000)]
Guard against invalid memory read

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

14 years agoAAC: Return the number of bytes consumed in decoding a frame.
Alex Converse [Thu, 4 Mar 2010 12:34:15 +0000 (12:34 +0000)]
AAC: Return the number of bytes consumed in decoding a frame.

The libfaad wrapper does this.

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

14 years agoffmpeg.c: Don't use NULL for integer metadata flags.
Alex Converse [Thu, 4 Mar 2010 11:27:39 +0000 (11:27 +0000)]
ffmpeg.c: Don't use NULL for integer metadata flags.

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

14 years agoReally fix 2.95
David Conrad [Thu, 4 Mar 2010 10:01:03 +0000 (10:01 +0000)]
Really fix 2.95

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

14 years agoMaybe fix gcc 2.95
David Conrad [Thu, 4 Mar 2010 09:25:42 +0000 (09:25 +0000)]
Maybe fix gcc 2.95

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

14 years agoCope with rev 22183:
Gwenole Beauchesne [Thu, 4 Mar 2010 09:14:19 +0000 (09:14 +0000)]
Cope with rev 22183:
Reorder indexes in weight tables.

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

14 years agoEnsure that we write clusters and blocks with known size when streaming
David Conrad [Thu, 4 Mar 2010 08:53:14 +0000 (08:53 +0000)]
Ensure that we write clusters and blocks with known size when streaming

Too many demuxers can't cope with clusters of unknown size.

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

14 years agoFix indentation
David Conrad [Thu, 4 Mar 2010 08:53:11 +0000 (08:53 +0000)]
Fix indentation

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

14 years agoSimplify starting and ending clusters
David Conrad [Thu, 4 Mar 2010 08:53:08 +0000 (08:53 +0000)]
Simplify starting and ending clusters

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

14 years agoWrite the first seekhead if writing to a stream, we won't be able to seek
David Conrad [Thu, 4 Mar 2010 08:53:04 +0000 (08:53 +0000)]
Write the first seekhead if writing to a stream, we won't be able to seek
back and write it at the end

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

14 years agoAttempt seeking to write EBML master sizes even if streamed
David Conrad [Thu, 4 Mar 2010 08:53:00 +0000 (08:53 +0000)]
Attempt seeking to write EBML master sizes even if streamed

Most EBML masters are much smaller than IO_BUFFER_SIZE and thus the size
can be updated. This makes parsing the resulting files easier.

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

14 years agoAAC: Mark predictor functions av_always_inline.
Alex Converse [Thu, 4 Mar 2010 04:58:43 +0000 (04:58 +0000)]
AAC: Mark predictor functions av_always_inline.

This results in a 50% speedup on main profile with no increase in binary size.

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

14 years agoCosmetics: Re-indent after last commit.
Alex Converse [Thu, 4 Mar 2010 02:32:48 +0000 (02:32 +0000)]
Cosmetics: Re-indent after last commit.

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

14 years agoAAC parser: Don't write channels, sample rate, and frame size each frame.
Alex Converse [Thu, 4 Mar 2010 02:30:51 +0000 (02:30 +0000)]
AAC parser: Don't write channels, sample rate, and frame size each frame.

Thanks to backwards compatible HE-AAC signalling these values are unreliable.

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

14 years agoPort Optimizations about *_type init from decode to filter code.
Michael Niedermayer [Thu, 4 Mar 2010 02:00:05 +0000 (02:00 +0000)]
Port Optimizations about *_type init from decode to filter code.
1 cpu cycle faster

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

14 years agoOptimize *_type init, 1.5 cpu cycles faster.
Michael Niedermayer [Thu, 4 Mar 2010 01:03:15 +0000 (01:03 +0000)]
Optimize *_type init, 1.5 cpu cycles faster.

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

14 years agoRevert r30825, it was not supposed to be committed.
Stefano Sabatini [Thu, 4 Mar 2010 01:02:24 +0000 (01:02 +0000)]
Revert r30825, it was not supposed to be committed.

127.32L to me, beware when using git svn dcommit for committing stuff
to svn...

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

14 years agoFill the r, g, b values used for computing the c->pal_yuv table in the
Stefano Sabatini [Thu, 4 Mar 2010 00:31:13 +0000 (00:31 +0000)]
Fill the r, g, b values used for computing the c->pal_yuv table in the
case where the source format is PIX_FMT_GRAY8.

This is required as PIX_FMT_GRAY8 has been declared as a paletted
format in FFmpeg r22191, fix GRAY8 -> RGB conversion.

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

14 years agoMake swscale-test take in input the name of the input and the output
Stefano Sabatini [Thu, 4 Mar 2010 00:31:10 +0000 (00:31 +0000)]
Make swscale-test take in input the name of the input and the output
format.

Make swscale-test only perform the test from the input to the output
format rather than perform all.

Also implement swscale-test-all.sh, for performing all the tests.

Improve flexibility of the swscale-test tool, this way is simpler to
perform only a subset of tests.

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

14 years agoDeclare the PIX_FMT_GRAY8 pixel format as a paletted format. This is
Stefano Sabatini [Thu, 4 Mar 2010 00:27:46 +0000 (00:27 +0000)]
Declare the PIX_FMT_GRAY8 pixel format as a paletted format.  This is
consistent with the allocation currently done for PIX_FMT_GRAY8
pictures.

No significant slow-downs have been measured.

See the thread:
Subject: [FFmpeg-devel] [PATCH] Is gray8 a paletted format?
Date: Sun, 15 Nov 2009 23:36:03 +0100

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

14 years agoDelay translating DCT tokens into coefficients until immediately before IDCT
David Conrad [Wed, 3 Mar 2010 23:27:43 +0000 (23:27 +0000)]
Delay translating DCT tokens into coefficients until immediately before IDCT

This is generally around 12% faster than the prior method of creating a
linked list for each block as tokens are read, but can be anywhere from
8% to 28% faster depending on file and CPU.

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

14 years agoDo MC and IDCT in coding (hilbert) order
David Conrad [Wed, 3 Mar 2010 23:27:40 +0000 (23:27 +0000)]
Do MC and IDCT in coding (hilbert) order

This increases the slice size to 64 pixels, due to having to decode an
entire chroma superblock row per slice.

This can be up to 6% slower depending on clip and CPU, but is necessary
for future optimizations that gain significantly more than was lost.

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

14 years agoExplictly separate decoding whether fragments are coded by plane
David Conrad [Wed, 3 Mar 2010 23:27:37 +0000 (23:27 +0000)]
Explictly separate decoding whether fragments are coded by plane

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

14 years agomatroskaenc: use "title" tag instead of "description" in track title.
Anton Khirnov [Wed, 3 Mar 2010 23:27:34 +0000 (23:27 +0000)]
matroskaenc: use "title" tag instead of "description" in track title.

Patch by Anton Khirnov < whyskas at gmail >

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

14 years agomove vp6 huffman table freeing code, out of common vp56 code
Aurelien Jacobs [Wed, 3 Mar 2010 22:29:06 +0000 (22:29 +0000)]
move vp6 huffman table freeing code, out of common vp56 code

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

14 years agomatroskadec: cosmetic indentation
Aurelien Jacobs [Wed, 3 Mar 2010 21:49:24 +0000 (21:49 +0000)]
matroskadec: cosmetic indentation

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

14 years agomatroskadec: timestamps are dts and not pts in ms vfw compatibility mode
Joakim Plate [Wed, 3 Mar 2010 21:46:43 +0000 (21:46 +0000)]
matroskadec: timestamps are dts and not pts in ms vfw compatibility mode
original patch by elupus _at_ ecce _dot_ se

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

14 years agoReorder indexes in weight tables.
Michael Niedermayer [Wed, 3 Mar 2010 21:10:08 +0000 (21:10 +0000)]
Reorder indexes in weight tables.
5 cpu cycles faster.

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

14 years agoProperly pad H.264 extradata when taken from fmtp SDP attributes
Martin Storsjö [Wed, 3 Mar 2010 21:00:50 +0000 (21:00 +0000)]
Properly pad H.264 extradata when taken from fmtp SDP attributes

This fixes some valgrind warnings.

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

14 years agoMove all context fields that are not used in the mb and block layers
Michael Niedermayer [Wed, 3 Mar 2010 20:36:56 +0000 (20:36 +0000)]
Move all context fields that are not used in the mb and block layers
to the end of the structure.
4 cpu cycles faster in 3k cpu cycles

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

14 years agoFixed DXVA2 H264 hwaccel compilation.
Laurent Aimar [Wed, 3 Mar 2010 19:54:12 +0000 (19:54 +0000)]
Fixed DXVA2 H264 hwaccel compilation.

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

14 years agoremove unused left_border field from context.
Michael Niedermayer [Wed, 3 Mar 2010 19:44:27 +0000 (19:44 +0000)]
remove unused left_border field from context.

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

14 years agocosmetic addition of {}
Michael Niedermayer [Wed, 3 Mar 2010 19:32:50 +0000 (19:32 +0000)]
cosmetic addition of {}

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

14 years agoNote about luma/chroma_weight tables and their datatype.
Michael Niedermayer [Wed, 3 Mar 2010 19:31:58 +0000 (19:31 +0000)]
Note about luma/chroma_weight tables and their datatype.

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

14 years agoFixed overreads in TTA decoder with corrupted bistreams.
Laurent Aimar [Wed, 3 Mar 2010 19:31:46 +0000 (19:31 +0000)]
Fixed overreads in TTA decoder with corrupted bistreams.

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

14 years agoUpdate to work with chunked encoding HTTP streams (as served by FFmpeg since
Ronald S. Bultje [Wed, 3 Mar 2010 18:41:50 +0000 (18:41 +0000)]
Update to work with chunked encoding HTTP streams (as served by FFmpeg since
a few months now). Fixes issue 1738.

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

14 years agoPlug memory leak in NUT muxer and demuxer
Vitor Sessak [Wed, 3 Mar 2010 17:31:24 +0000 (17:31 +0000)]
Plug memory leak in NUT muxer and demuxer

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

14 years agoPlug memory leak in NSV demuxer.
Jai Menon [Wed, 3 Mar 2010 17:26:00 +0000 (17:26 +0000)]
Plug memory leak in NSV demuxer.

Patch by Jai Menon.

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

14 years agoPlug some memory leaks in the VP6 decoder
Vitor Sessak [Wed, 3 Mar 2010 17:24:32 +0000 (17:24 +0000)]
Plug some memory leaks in the VP6 decoder

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

14 years agomove svq3 specific fields to the end of the context
Michael Niedermayer [Wed, 3 Mar 2010 16:47:40 +0000 (16:47 +0000)]
move svq3 specific fields to the end of the context

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

14 years agoCope with rev 22169 change:
Gwenole Beauchesne [Wed, 3 Mar 2010 15:23:22 +0000 (15:23 +0000)]
Cope with rev 22169 change:
Merge weight & offset tables.

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

14 years agoMerge weight & offset tables, 15 cpu cycles faster.
Michael Niedermayer [Wed, 3 Mar 2010 14:41:43 +0000 (14:41 +0000)]
Merge weight & offset tables, 15 cpu cycles faster.

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

14 years agoSimplify implicit_weight table init.
Michael Niedermayer [Wed, 3 Mar 2010 10:57:38 +0000 (10:57 +0000)]
Simplify implicit_weight table init.

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

14 years agoPerform coefficient transformations in Bink Audio DCT decoder (issue1770)
Peter Ross [Wed, 3 Mar 2010 09:51:56 +0000 (09:51 +0000)]
Perform coefficient transformations in Bink Audio DCT decoder (issue1770)

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

14 years agoSupport demuxing of streamed Bink files
Peter Ross [Wed, 3 Mar 2010 09:44:30 +0000 (09:44 +0000)]
Support demuxing of streamed Bink files

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

14 years agouse intended const syntax
Peter Ross [Wed, 3 Mar 2010 09:38:09 +0000 (09:38 +0000)]
use intended const syntax

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

14 years agoAdd _NETBSD_SOURCE definition to fix compilation on NetBSD.
Jorge Acereda [Wed, 3 Mar 2010 09:16:45 +0000 (09:16 +0000)]
Add _NETBSD_SOURCE definition to fix compilation on NetBSD.
NetBSD is unlikely to fix their headers and the FATE box passes it
as -D_NETBSD_SOURCE on the command line anyway. In this case, it's
better to keep the hack well-contained within this file.
Closes issue 886.
patch by Jorge Acereda, jacereda brainstorm es

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

14 years agoAnother 3 useless zeroing instructions.
Michael Niedermayer [Wed, 3 Mar 2010 02:20:48 +0000 (02:20 +0000)]
Another 3 useless zeroing instructions.

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

14 years agoLoad the whole left side of mv&ref only when needed.
Michael Niedermayer [Wed, 3 Mar 2010 01:38:27 +0000 (01:38 +0000)]
Load the whole left side of mv&ref only when needed.
30 cpu cycles faster

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

14 years agoSupport B-frames when decoding MPEG-4 with VDPAU hardware acceleration.
Carl Eugen Hoyos [Wed, 3 Mar 2010 00:09:57 +0000 (00:09 +0000)]
Support B-frames when decoding MPEG-4 with VDPAU hardware acceleration.

Based on a patch by NVIDIA.

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

14 years agoMake seektest messages similar to other tests
Måns Rullgård [Tue, 2 Mar 2010 21:59:27 +0000 (21:59 +0000)]
Make seektest messages similar to other tests

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

14 years agoRun seektest on all generated files
Måns Rullgård [Tue, 2 Mar 2010 21:59:16 +0000 (21:59 +0000)]
Run seektest on all generated files

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

14 years agoPlace regtest-pixfmt output files in separate dir
Måns Rullgård [Tue, 2 Mar 2010 21:59:02 +0000 (21:59 +0000)]
Place regtest-pixfmt output files in separate dir

This test generates many output files, and keeping them separate
is convenient.

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

14 years agoRemove unused argument to test scripts
Måns Rullgård [Tue, 2 Mar 2010 21:42:03 +0000 (21:42 +0000)]
Remove unused argument to test scripts

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

14 years agoPlace regression test output files in subdirs per family
Måns Rullgård [Tue, 2 Mar 2010 21:41:52 +0000 (21:41 +0000)]
Place regression test output files in subdirs per family

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

14 years agoPlug memory leak for truncated files
Vitor Sessak [Tue, 2 Mar 2010 21:32:56 +0000 (21:32 +0000)]
Plug memory leak for truncated files

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

14 years agoPlug some memory leaks for truncated files
Vitor Sessak [Tue, 2 Mar 2010 21:32:29 +0000 (21:32 +0000)]
Plug some memory leaks for truncated files

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

14 years agoRevert "Remove the self reference in the seektest that prevented it from"
Måns Rullgård [Tue, 2 Mar 2010 17:50:24 +0000 (17:50 +0000)]
Revert "Remove the self reference in the seektest that prevented it from"

This reverts r22151.  It prevents the seektest from running at all and
is thus of no use whatsoever.

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

14 years agoRemove the self reference in the seektest that prevented it from
Michael Niedermayer [Tue, 2 Mar 2010 17:29:04 +0000 (17:29 +0000)]
Remove the self reference in the seektest that prevented it from
testing new formats since 2 years namely r11831.
This likely will uncover bugs that gone unnoticed in the last 2 years
due to lack of testing.

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

14 years agoMake sure we dont double test files and sort the list.
Michael Niedermayer [Tue, 2 Mar 2010 17:16:25 +0000 (17:16 +0000)]
Make sure we dont double test files and sort the list.

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

14 years agoPass correct buffer-pointer and buffer-size to hardware accelerated
Carl Eugen Hoyos [Tue, 2 Mar 2010 17:12:41 +0000 (17:12 +0000)]
Pass correct buffer-pointer and buffer-size to hardware accelerated
decoders when decoding packed B-frames.

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

14 years agoCodec copy test.
Michael Niedermayer [Tue, 2 Mar 2010 16:57:20 +0000 (16:57 +0000)]
Codec copy test.

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

14 years agoAdd presets for all of the x264 presets, including fastfirstpass versions.
Lou Logan [Tue, 2 Mar 2010 03:19:12 +0000 (03:19 +0000)]
Add presets for all of the x264 presets, including fastfirstpass versions.
Not 100% accurate, since not all x264 options have ffmpeg equivalents yet.

Patch by Lou Logan.

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

14 years agoMake lsp a separate configurable and select it from codecs needing it
Måns Rullgård [Tue, 2 Mar 2010 03:16:27 +0000 (03:16 +0000)]
Make lsp a separate configurable and select it from codecs needing it

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

14 years agoFix build failure with fast_unaligned and non-gcc-compatible compilers
Måns Rullgård [Tue, 2 Mar 2010 03:16:24 +0000 (03:16 +0000)]
Fix build failure with fast_unaligned and non-gcc-compatible compilers

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

14 years agoFix a bunch of bugs ive introduced recently that broke threaded decoding.
Michael Niedermayer [Tue, 2 Mar 2010 02:24:37 +0000 (02:24 +0000)]
Fix a bunch of bugs ive introduced recently that broke threaded decoding.
might also fix issue1788

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

14 years agoMake ffmpeg print a message and abort if the name of the format
Stefano Sabatini [Tue, 2 Mar 2010 00:01:16 +0000 (00:01 +0000)]
Make ffmpeg print a message and abort if the name of the format
provided with -f was unknown.

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

14 years agoAdd a check for checking if more than one input file is provided to
Stefano Sabatini [Mon, 1 Mar 2010 23:10:27 +0000 (23:10 +0000)]
Add a check for checking if more than one input file is provided to
ffplay, make it complain and abort in that case as just one input file
is currently supported.

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

14 years agoClarify the error message issued by ffprobe in case of more than one
Stefano Sabatini [Mon, 1 Mar 2010 23:02:56 +0000 (23:02 +0000)]
Clarify the error message issued by ffprobe in case of more than one
file provided as input.

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

14 years agoFix spelling in comment
Vitor Sessak [Mon, 1 Mar 2010 20:42:13 +0000 (20:42 +0000)]
Fix spelling in comment

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

14 years agoAdd commented-out unoptimized code to improve readability
Vitor Sessak [Mon, 1 Mar 2010 19:56:51 +0000 (19:56 +0000)]
Add commented-out unoptimized code to improve readability

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

14 years agoRevert r22119 and partially revert 22120.
Vitor Sessak [Mon, 1 Mar 2010 18:16:10 +0000 (18:16 +0000)]
Revert r22119 and partially revert 22120.

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

14 years agoAdd Reinhard and myself as release managers.
Diego Biurrun [Mon, 1 Mar 2010 17:50:34 +0000 (17:50 +0000)]
Add Reinhard and myself as release managers.

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

14 years agoProcess packed bitstream also for VDPAU.
Carl Eugen Hoyos [Mon, 1 Mar 2010 16:52:35 +0000 (16:52 +0000)]
Process packed bitstream also for VDPAU.

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

14 years agoDon't let output pixel format influence input pixel format.
Chris Stones [Mon, 1 Mar 2010 16:47:44 +0000 (16:47 +0000)]
Don't let output pixel format influence input pixel format.

Patch by Chris Stones,  chris D stones A gmail

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

14 years agoFix AMR-NB entry in the supported audio codecs list.
Diego Biurrun [Mon, 1 Mar 2010 14:30:28 +0000 (14:30 +0000)]
Fix AMR-NB entry in the supported audio codecs list.
The decoding and encoding rows were switched around.

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

14 years agonutdec: make chapter start and length uint64_t to prevent overflows.
Anton Khirnov [Mon, 1 Mar 2010 07:26:41 +0000 (07:26 +0000)]
nutdec: make chapter start and length uint64_t to prevent overflows.
Patch by Anton Khirnov wyskas chez gmail punto com

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