platform/upstream/libav.git
14 years agoMake sure we dont write more bytes into filename than the array is long.
Michael Niedermayer [Sat, 20 Feb 2010 22:57:23 +0000 (22:57 +0000)]
Make sure we dont write more bytes into filename than the array is long.
just a precaution in case the size of the source array is increased or
made dynamically allocateable.

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

14 years agoDo not attempt to open references through absolute pathes.
Michael Niedermayer [Sat, 20 Feb 2010 22:48:09 +0000 (22:48 +0000)]
Do not attempt to open references through absolute pathes.
This would allow an attacker to test remotely if a local file exists.

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

14 years agoReplace log2f(10) with a constant
Måns Rullgård [Sat, 20 Feb 2010 20:13:48 +0000 (20:13 +0000)]
Replace log2f(10) with a constant

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

14 years agoFree encoder extradata in avcodec_close(). Should fix several small memory
Vitor Sessak [Sat, 20 Feb 2010 18:28:11 +0000 (18:28 +0000)]
Free encoder extradata in avcodec_close(). Should fix several small memory
leaks when encoding (at least for asv, wma and aac).

Fix also issue 1577.

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

14 years agoAdd casts to correct return type in macros for missing libm funcs
Måns Rullgård [Sat, 20 Feb 2010 16:02:48 +0000 (16:02 +0000)]
Add casts to correct return type in macros for missing libm funcs

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

14 years agox86_fft.o depends on MMX and FFT.
Ramiro Polla [Sat, 20 Feb 2010 15:39:27 +0000 (15:39 +0000)]
x86_fft.o depends on MMX and FFT.

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

14 years agoDelete avconfig.h on distclean
Måns Rullgård [Sat, 20 Feb 2010 13:19:34 +0000 (13:19 +0000)]
Delete avconfig.h on distclean

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

14 years agoDelete all test related files in testclean rule
Måns Rullgård [Sat, 20 Feb 2010 13:19:29 +0000 (13:19 +0000)]
Delete all test related files in testclean rule

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

14 years agoremove tables of codebook vector values which are contained in
Stefan Gehrer [Sat, 20 Feb 2010 12:32:30 +0000 (12:32 +0000)]
remove tables of codebook vector values which are contained in
another table

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

14 years agoGcc attribute may_alias is not supported (or silently ignored) by all supported compi...
Carl Eugen Hoyos [Sat, 20 Feb 2010 12:22:24 +0000 (12:22 +0000)]
Gcc attribute may_alias is not supported (or silently ignored) by all supported compilers.

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

14 years agoDo not leave uninitialized data in the packet in MPC demuxer. Should allow for
Vitor Sessak [Sat, 20 Feb 2010 11:22:47 +0000 (11:22 +0000)]
Do not leave uninitialized data in the packet in MPC demuxer. Should allow for
adding a demuxer test to FATE.

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

14 years agoSplit rtsp_read_header() into two functions, so that the main part (now also
Martin Storsjö [Fri, 19 Feb 2010 23:23:40 +0000 (23:23 +0000)]
Split rtsp_read_header() into two functions, so that the main part (now also
known as rtsp_connect()) can be used in the RTSP muxer.

Patch by Martin Storsjö <$firstname $firstname st>.

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

14 years agoSplit out input-specific parts of rtsp_read_header() into its own, new,
Martin Storsjö [Fri, 19 Feb 2010 23:21:44 +0000 (23:21 +0000)]
Split out input-specific parts of rtsp_read_header() into its own, new,
function (rtsp_setup_input_streams()), as preparation for the upcoming
RTSP muxer.

Patch by Martin Storsjö <$firstname $firstname st>.

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

14 years agoOnly send out NAT-punching RTP/RTCP packets when we're in demuxer mode, i.e.
Martin Storsjö [Fri, 19 Feb 2010 23:13:21 +0000 (23:13 +0000)]
Only send out NAT-punching RTP/RTCP packets when we're in demuxer mode, i.e.
don't send them when acting as a RTSP muxer.

Patch by Martin Storsjö <$firstname $firstname st>.

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

14 years agoUse mode=receive instead of mode=play if in RTSP muxer (instead of demuxer)
Martin Storsjö [Fri, 19 Feb 2010 23:11:59 +0000 (23:11 +0000)]
Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer)
mode.

Patch by Martin Storsjö <$firstname $firstname st>.

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

14 years agoMake rtsp_close_streams() take a AVFormatContext instead of a RTSPState
Martin Storsjö [Fri, 19 Feb 2010 23:10:19 +0000 (23:10 +0000)]
Make rtsp_close_streams() take a AVFormatContext instead of a RTSPState
argument, so we can use AVFormatContext->* here in the future.

Patch by Martin Storsjö <$firstname $firstname st>.

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

14 years ago16l trocadero: don't forget to free frame data buffer in APE decoder
Kostya Shishkov [Fri, 19 Feb 2010 22:23:55 +0000 (22:23 +0000)]
16l trocadero: don't forget to free frame data buffer in APE decoder

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

14 years agoWavPack demuxer also depends on APE tag parser
Kostya Shishkov [Fri, 19 Feb 2010 22:13:19 +0000 (22:13 +0000)]
WavPack demuxer also depends on APE tag parser

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

14 years agoMake Bink demuxer skip all zero audio tracks, not only the first one
Kostya Shishkov [Fri, 19 Feb 2010 22:10:04 +0000 (22:10 +0000)]
Make Bink demuxer skip all zero audio tracks, not only the first one

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

14 years agomsmpeg4v* encoders depend on h263dec
Daniel Verkamp [Fri, 19 Feb 2010 21:34:50 +0000 (21:34 +0000)]
msmpeg4v* encoders depend on h263dec

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

14 years agoDeclare WMV1 decoder dependencies
Daniel Verkamp [Fri, 19 Feb 2010 21:21:04 +0000 (21:21 +0000)]
Declare WMV1 decoder dependencies

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

14 years agoAEA demuxer requires raw.o for pcm_read_seek
Daniel Verkamp [Fri, 19 Feb 2010 21:12:46 +0000 (21:12 +0000)]
AEA demuxer requires raw.o for pcm_read_seek

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

14 years agoDeclare CAF demuxer dependency on mpegaudio
Daniel Verkamp [Fri, 19 Feb 2010 21:07:46 +0000 (21:07 +0000)]
Declare CAF demuxer dependency on mpegaudio

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

14 years agoFix compilation of binkaudio_rdft when dct is disabled
Daniel Verkamp [Fri, 19 Feb 2010 20:51:12 +0000 (20:51 +0000)]
Fix compilation of binkaudio_rdft when dct is disabled

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

14 years agoremove a Huffman table from WMA which also exists in AAC
Stefan Gehrer [Fri, 19 Feb 2010 20:42:55 +0000 (20:42 +0000)]
remove a Huffman table from WMA which also exists in AAC

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

14 years agoFix memory leak for truncated frames
Vitor Sessak [Fri, 19 Feb 2010 20:20:17 +0000 (20:20 +0000)]
Fix memory leak for truncated frames

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

14 years agoFix memory leak for truncated frames
Vitor Sessak [Fri, 19 Feb 2010 20:19:41 +0000 (20:19 +0000)]
Fix memory leak for truncated frames

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

14 years agoRemove stale function declaration.
Martin Storsjö [Fri, 19 Feb 2010 17:26:33 +0000 (17:26 +0000)]
Remove stale function declaration.

Patch by Martin Storsjö <$firstname $firstname st>.

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

14 years agoAdd missing dependency of TwinVQ
Vitor Sessak [Fri, 19 Feb 2010 17:23:00 +0000 (17:23 +0000)]
Add missing dependency of TwinVQ

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

14 years agoremove ivi5_scans8x8[0], it duplicates ff_zigzag_direct
Stefan Gehrer [Fri, 19 Feb 2010 17:17:20 +0000 (17:17 +0000)]
remove ivi5_scans8x8[0], it duplicates ff_zigzag_direct

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

14 years agoRename RTSP_STATE_PLAYING to _STREAMING, since that better covers the
Martin Storsjö [Fri, 19 Feb 2010 16:26:21 +0000 (16:26 +0000)]
Rename RTSP_STATE_PLAYING to _STREAMING, since that better covers the
future use of the rtsp* codebase for RTSP muxing.

Patch by Martin Storsjö <$firstname $firstname st>.

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

14 years agocosmetics: reindent after last commit
Kostya Shishkov [Fri, 19 Feb 2010 14:06:12 +0000 (14:06 +0000)]
cosmetics: reindent after last commit

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

14 years agoSince WavPack chunk can contain more samples than FFmpeg is guaranteed to
Kostya Shishkov [Fri, 19 Feb 2010 14:05:41 +0000 (14:05 +0000)]
Since WavPack chunk can contain more samples than FFmpeg is guaranteed to
hold, decode it in several iterations outputting as many samples as possible.

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

14 years agoAdd the dependency for mpeg4audio.o of the ALS decoder.
Thilo Borgmann [Fri, 19 Feb 2010 08:26:35 +0000 (08:26 +0000)]
Add the dependency for mpeg4audio.o of the ALS decoder.

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

14 years agoDo sequential bit reading outside of []-operators.
Thilo Borgmann [Fri, 19 Feb 2010 08:07:02 +0000 (08:07 +0000)]
Do sequential bit reading outside of []-operators.

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

14 years agoWavPack demuxer supports ID3v1 tags, so don't forget id3v1.o dependency for it
Kostya Shishkov [Fri, 19 Feb 2010 06:59:47 +0000 (06:59 +0000)]
WavPack demuxer supports ID3v1 tags, so don't forget id3v1.o dependency for it
in Makefile

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

14 years agoTOMI: 16- and 32-bit intreadwrite functions
Måns Rullgård [Fri, 19 Feb 2010 03:20:01 +0000 (03:20 +0000)]
TOMI: 16- and 32-bit intreadwrite functions

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

14 years agoget rid of an if() 1 cpu cycle faster.
Michael Niedermayer [Fri, 19 Feb 2010 03:10:26 +0000 (03:10 +0000)]
get rid of an if() 1 cpu cycle faster.

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

14 years agoGet rid of a local variable, 10 cpu cycles faster.
Michael Niedermayer [Fri, 19 Feb 2010 02:37:11 +0000 (02:37 +0000)]
Get rid of a local variable, 10 cpu cycles faster.

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

14 years agoMove abs() from decode_cabac_mb_mvd() to the code that writes mvd_cache.
Michael Niedermayer [Thu, 18 Feb 2010 23:37:48 +0000 (23:37 +0000)]
Move abs() from decode_cabac_mb_mvd() to the code that writes mvd_cache.
4-8 cycles faster

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

14 years agoAdd some AAC buffer overread checks.
Alex Converse [Thu, 18 Feb 2010 23:06:56 +0000 (23:06 +0000)]
Add some AAC buffer overread checks.

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

14 years agoReindent and fix brace placement.
Stefano Sabatini [Thu, 18 Feb 2010 21:20:37 +0000 (21:20 +0000)]
Reindent and fix brace placement.

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

14 years agoVertically align a list of comparisons in sws_getCachedContext().
Stefano Sabatini [Thu, 18 Feb 2010 21:17:07 +0000 (21:17 +0000)]
Vertically align a list of comparisons in sws_getCachedContext().

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

14 years agoMerge two if conditions, allow to decrese the level of indentation of
Stefano Sabatini [Thu, 18 Feb 2010 21:12:05 +0000 (21:12 +0000)]
Merge two if conditions, allow to decrese the level of indentation of
the block.

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

14 years agoFFmpeg is a collective effort so allowing a single name in a banner is
Stefano Sabatini [Thu, 18 Feb 2010 20:47:20 +0000 (20:47 +0000)]
FFmpeg is a collective effort so allowing a single name in a banner is
not nice/fair towards the community of developers.

Also this looks like the best way for resolving the debate about which
is the one person name to be put in the banner.

See the thread:
Subject: [FFmpeg-devel] [PATCH] Replace "Fabrice Bellard" with "the FFmpeg developers" in  the banner
Date: Thu, 11 Feb 2010 23:59:12 +0100

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

14 years agoSuppress icc warnings about unknown attributes
Måns Rullgård [Thu, 18 Feb 2010 19:14:48 +0000 (19:14 +0000)]
Suppress icc warnings about unknown attributes

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

14 years agofix intra prediction modes with inter-MB neighbors,
Stefan Gehrer [Thu, 18 Feb 2010 18:23:48 +0000 (18:23 +0000)]
fix intra prediction modes with inter-MB neighbors,
the old sample clips are in violation of the 2006 spec

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

14 years agoMake RTMP client send bytes read report
Kostya Shishkov [Thu, 18 Feb 2010 16:27:18 +0000 (16:27 +0000)]
Make RTMP client send bytes read report

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

14 years agoH264: use alias-safe macros
Måns Rullgård [Thu, 18 Feb 2010 16:24:31 +0000 (16:24 +0000)]
H264: use alias-safe macros

This eliminates all aliasing violation warnings in h264 code.
No measurable speed difference with gcc-4.4.3 on i7.

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

14 years agoAdd alias-safe aligned AV_[RW]N macros
Måns Rullgård [Thu, 18 Feb 2010 13:44:38 +0000 (13:44 +0000)]
Add alias-safe aligned AV_[RW]N macros

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

14 years agoUse alias-safe types in AV_COPY/SWAP/ZERO macros
Måns Rullgård [Thu, 18 Feb 2010 13:40:24 +0000 (13:40 +0000)]
Use alias-safe types in AV_COPY/SWAP/ZERO macros

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

14 years agoUse alias-safe types in AV_[RW] macros
Måns Rullgård [Thu, 18 Feb 2010 13:40:21 +0000 (13:40 +0000)]
Use alias-safe types in AV_[RW] macros

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

14 years agoAdd alias-safe union typedefs
Måns Rullgård [Thu, 18 Feb 2010 13:40:19 +0000 (13:40 +0000)]
Add alias-safe union typedefs

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

14 years agoSimplify deblock_left/top condition for deblocking_filter=2
Michael Niedermayer [Thu, 18 Feb 2010 12:37:43 +0000 (12:37 +0000)]
Simplify deblock_left/top condition for deblocking_filter=2

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

14 years agoSpeedup decode_cabac_field_decoding_flag() by 9 cpu cycles.
Michael Niedermayer [Thu, 18 Feb 2010 12:13:21 +0000 (12:13 +0000)]
Speedup decode_cabac_field_decoding_flag() by 9 cpu cycles.

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

14 years agofix issue 1747
Michael Niedermayer [Thu, 18 Feb 2010 00:19:50 +0000 (00:19 +0000)]
fix issue 1747

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

14 years agoMove NEG_[US]SR32 macros to mathops.h
Måns Rullgård [Wed, 17 Feb 2010 23:58:59 +0000 (23:58 +0000)]
Move NEG_[US]SR32 macros to mathops.h

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

14 years agoFix sizeof()-statement to use the actual pointer type.
Thilo Borgmann [Wed, 17 Feb 2010 23:26:48 +0000 (23:26 +0000)]
Fix sizeof()-statement to use the actual pointer type.

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

14 years agoFix wrong buffer allocation for MCC in ALS.
Thilo Borgmann [Wed, 17 Feb 2010 22:53:25 +0000 (22:53 +0000)]
Fix wrong buffer allocation for MCC in ALS.

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

14 years agoUse stripped executable in regression tests
Måns Rullgård [Wed, 17 Feb 2010 21:37:35 +0000 (21:37 +0000)]
Use stripped executable in regression tests

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

14 years agoconfigure: allow setting strip tool with --strip
Måns Rullgård [Wed, 17 Feb 2010 21:37:33 +0000 (21:37 +0000)]
configure: allow setting strip tool with --strip

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

14 years agoget_bits: Fix spelling and grammar in GET_VLC() comment.
Alex Converse [Wed, 17 Feb 2010 21:20:43 +0000 (21:20 +0000)]
get_bits: Fix spelling and grammar in GET_VLC() comment.

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

14 years ago10l: remove stray '(' I don't know where it came from
Måns Rullgård [Wed, 17 Feb 2010 21:04:56 +0000 (21:04 +0000)]
10l: remove stray '(' I don't know where it came from

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

14 years agoUse LOCAL_ALIGNED macro for local arrays
Måns Rullgård [Wed, 17 Feb 2010 20:36:20 +0000 (20:36 +0000)]
Use LOCAL_ALIGNED macro for local arrays

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

14 years agoPPC and x86 support aligning variables on stack
Måns Rullgård [Wed, 17 Feb 2010 20:36:15 +0000 (20:36 +0000)]
PPC and x86 support aligning variables on stack

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

14 years agoAdd LOCAL_ALIGNED() macro for declaring aligned local arrays
Måns Rullgård [Wed, 17 Feb 2010 20:36:12 +0000 (20:36 +0000)]
Add LOCAL_ALIGNED() macro for declaring aligned local arrays

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

14 years agoSimplify some declarations of aligned arrays
Måns Rullgård [Wed, 17 Feb 2010 20:36:10 +0000 (20:36 +0000)]
Simplify some declarations of aligned arrays

If DECLARE_ALIGNED_16 works on uint64_t it will work smaller types too.

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

14 years agoAdd functions to send RTSP commands with content attached to them. This will
Martin Storsjö [Wed, 17 Feb 2010 19:24:02 +0000 (19:24 +0000)]
Add functions to send RTSP commands with content attached to them. This will
be used eventually in the RTSP muxer (see thread "[PATCH] RTSP muxer, round
3" on mailinglist).

Patch by Martin Storsjö <$firstname $firstname st>.

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

14 years agoMove predict_field_decoding_flag() from h264.h to .c as its only used there and belongs
Michael Niedermayer [Wed, 17 Feb 2010 02:25:05 +0000 (02:25 +0000)]
Move predict_field_decoding_flag() from h264.h to .c as its only used there and belongs
there as well.

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

14 years agoMove check for and call of predict_field_decoding_flag() from the mb code to
Michael Niedermayer [Wed, 17 Feb 2010 02:14:02 +0000 (02:14 +0000)]
Move check for and call of predict_field_decoding_flag() from the mb code to
the row code. This function would only be needed on a MB basis for MBAFF+FMO

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

14 years ago2x faster ff_h264_init_cabac_states(), 4k cpu cycles less.
Michael Niedermayer [Tue, 16 Feb 2010 23:43:08 +0000 (23:43 +0000)]
2x faster ff_h264_init_cabac_states(), 4k cpu cycles less.
Sadly this is just per slice so the speedup with normal files should be negligible.

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

14 years agoRemove first_rtcp_ntp_time. This is used to prevent overflow of the timestamp,
Ronald S. Bultje [Tue, 16 Feb 2010 23:00:03 +0000 (23:00 +0000)]
Remove first_rtcp_ntp_time. This is used to prevent overflow of the timestamp,
but doesn't actually do that. What's worse, it creates timestamp adjustments
that are different per stream within a session, leading to a/v sync issues.

See discussion in thread "[FFmpeg-devel] rtp streaming x264+audio issues (and
some ideas to fix them)". Patch suggested by Luca Abeni <lucabe72 email it>.

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

14 years agoWhen using RTP-over-UDP, send dummy packets during stream setup, similar to
Martin Storsjö [Tue, 16 Feb 2010 22:50:50 +0000 (22:50 +0000)]
When using RTP-over-UDP, send dummy packets during stream setup, similar to
what e.g. RealPlayer does. This allows proper port forwarding setup in NAT-
based environments.

Patch by Martin Storsjö <$firstname at $firstname dot st>.

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

14 years agoRename the "enc" variable, which refers to the AVCodecContext of a
Stefano Sabatini [Tue, 16 Feb 2010 22:38:43 +0000 (22:38 +0000)]
Rename the "enc" variable, which refers to the AVCodecContext of a
decoder, to "avctx".

See the thread:
Subject: [FFmpeg-devel] [PATCH] enc is not a good name for a decoder context
Date: Mon, 28 Dec 2009 22:56:25 +0100

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

14 years agoMove read_line() and write_line() definition from pixdesc.h to
Stefano Sabatini [Tue, 16 Feb 2010 20:17:50 +0000 (20:17 +0000)]
Move read_line() and write_line() definition from pixdesc.h to
pixdesc.c, which are now not anymore marked as static inline.

Fix the inclusion of the private header intreadwrite.h in the public
header pixdesc.h.

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

14 years agoFix two problems (no idea how this ever worked):
Ronald S. Bultje [Tue, 16 Feb 2010 19:26:49 +0000 (19:26 +0000)]
Fix two problems (no idea how this ever worked):
- the return value of url_open_dyn_*buf() is 0 on success, so using
   if (!(res = url_open_dyn_*buf())) return res; is not going to work
- url_open_dyn_packet_buf actually writes the max_packet_size before
   each piece of data. Feeding this to the ASF demuxer will never work.
   Therefore, use url_open_dyn_buf() instead.

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

14 years agoRevert r21851.
Ronald S. Bultje [Tue, 16 Feb 2010 18:25:05 +0000 (18:25 +0000)]
Revert r21851.

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

14 years agoDon't return 0 if buffer setup failed. That signals the RTSP demuxer that
Ronald S. Bultje [Tue, 16 Feb 2010 18:19:28 +0000 (18:19 +0000)]
Don't return 0 if buffer setup failed. That signals the RTSP demuxer that
the packet was filled in, leading to virtually random behaviour in the
decoder later on. Instead, return a negative value.

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

14 years agoSet lavf identification string globally in av_write_header(), rather
Anton Khirnov [Tue, 16 Feb 2010 16:32:25 +0000 (16:32 +0000)]
Set lavf identification string globally in av_write_header(), rather
than inside the muxers. Remove special handling of "encoder" tags from
AVI and MP3 muxers.

Patch by Anton Khirnov <wyskas gmail com>.

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

14 years agoLimit the Rice parameter used for progressive decoding in ALS.
Thilo Borgmann [Tue, 16 Feb 2010 14:48:01 +0000 (14:48 +0000)]
Limit the Rice parameter used for progressive decoding in ALS.

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

14 years agoAdd lsp.o as a dependency for wmavoice. This fixes a compilation error when
James Darnley [Tue, 16 Feb 2010 14:33:13 +0000 (14:33 +0000)]
Add lsp.o as a dependency for wmavoice. This fixes a compilation error when
you disable lots of stuff (in particular other voice codecs) but leave
wmavoice enabled.

Patch by James Darnley <$firstname dot $lastname at gmail dot com>.

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

14 years agoSupport IFF ANNO (annotation) chunk type
Peter Ross [Tue, 16 Feb 2010 09:55:56 +0000 (09:55 +0000)]
Support IFF ANNO (annotation) chunk type

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

14 years agoSupport <8-bit ILBM uncompressed bitmaps
Peter Ross [Tue, 16 Feb 2010 09:33:59 +0000 (09:33 +0000)]
Support <8-bit ILBM uncompressed bitmaps

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

14 years ago2 cpu cycles faster context calculation for decode_cabac_intra_mb_type()
Michael Niedermayer [Tue, 16 Feb 2010 02:51:37 +0000 (02:51 +0000)]
2 cpu cycles faster context calculation for decode_cabac_intra_mb_type()

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

14 years agoDrop a few redundant slice_num checks.
Michael Niedermayer [Tue, 16 Feb 2010 00:09:30 +0000 (00:09 +0000)]
Drop a few redundant slice_num checks.

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

14 years agoDrop compute_mb_neighbors() and move fill_decode_neighbors() up to take its
Michael Niedermayer [Mon, 15 Feb 2010 23:04:07 +0000 (23:04 +0000)]
Drop compute_mb_neighbors() and move fill_decode_neighbors() up to take its
role.
Should be faster as this is a strict code removial.

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

14 years agoSplit setting neighboring MBs from fill_decode_caches()
Michael Niedermayer [Mon, 15 Feb 2010 22:07:02 +0000 (22:07 +0000)]
Split setting neighboring MBs from fill_decode_caches()
no speed change.

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

14 years agoStrings in extended content header are UTF16,
Anton Khirnov [Mon, 15 Feb 2010 21:19:40 +0000 (21:19 +0000)]
Strings in extended content header are UTF16,
so terminating NULLs are 2 bytes long, not 1.

Patch by Anton Khirnov, wyskas gmail

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

14 years agoworkaround for broken files created by previous versions of asfenc.
Anton Khirnov [Mon, 15 Feb 2010 21:14:47 +0000 (21:14 +0000)]
workaround for broken files created by previous versions of asfenc.

Patch by Anton Khirnov, wyskas gmail

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

14 years agoSimplify decode_cabac_mb_intra4x4_pred_mode().
Michael Niedermayer [Mon, 15 Feb 2010 19:22:09 +0000 (19:22 +0000)]
Simplify decode_cabac_mb_intra4x4_pred_mode().
same speed

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

14 years agoMerge decode_cabac_mb_type_b() into calling code.
Michael Niedermayer [Mon, 15 Feb 2010 19:20:49 +0000 (19:20 +0000)]
Merge decode_cabac_mb_type_b() into calling code.
This avoids a conditional branch and is about 3 cpu cyclues faster.

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

14 years agoRemove outdated comment.
Maxim Poliakovski [Mon, 15 Feb 2010 17:37:38 +0000 (17:37 +0000)]
Remove outdated comment.

Patch by Maxim, max_pole gmx de

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

14 years agoadd heuristic to discern the old sample clips from streams encoded
Stefan Gehrer [Mon, 15 Feb 2010 16:43:45 +0000 (16:43 +0000)]
add heuristic to discern the old sample clips from streams encoded
with rm52j encoder, a marker_bit has been added in the I-Frame syntax

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

14 years agoavoid using DECLARE_ALIGNED on stack variable as suggested by Reimar
Stefan Gehrer [Mon, 15 Feb 2010 16:37:13 +0000 (16:37 +0000)]
avoid using DECLARE_ALIGNED on stack variable as suggested by Reimar

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

14 years agoAAC: Mark che_configure() as av_cold.
Alex Converse [Mon, 15 Feb 2010 16:29:46 +0000 (16:29 +0000)]
AAC: Mark che_configure() as av_cold.

It is also only called when the output configuration is not locked.

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

14 years agoAAC: Mark functions that are only called when the output configuration is not locked...
Alex Converse [Mon, 15 Feb 2010 16:19:46 +0000 (16:19 +0000)]
AAC: Mark functions that are only called when the output configuration is not locked as av_cold.

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

14 years agoIFF bitmap n-bit color support
Peter Ross [Mon, 15 Feb 2010 11:26:35 +0000 (11:26 +0000)]
IFF bitmap n-bit color support

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

14 years ago10l ;; gcc 2.95 compilation fix by mike
Michael Niedermayer [Mon, 15 Feb 2010 09:11:00 +0000 (09:11 +0000)]
10l ;; gcc 2.95 compilation fix by mike

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

14 years ago10l use pack16to32(), should fix big endian h264 failures.
Michael Niedermayer [Mon, 15 Feb 2010 01:24:50 +0000 (01:24 +0000)]
10l use pack16to32(), should fix big endian h264 failures.

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

14 years agoMerge the single line function decode_cabac_mb_transform_size()
Michael Niedermayer [Mon, 15 Feb 2010 01:04:07 +0000 (01:04 +0000)]
Merge the single line function decode_cabac_mb_transform_size()
into the calling code.
8 cpu cycles faster

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