12 years agoa[b-1] -> (a-1)[b].
Michael Niedermayer [Sun, 24 Jan 2010 18:42:22 +0000 (18:42 +0000)]
a[b-1] -> (a-1)[b].
Helps gcc not to add seperate -1 instructions.

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

12 years agoOptimize suffix_length computation, 1 cpu cycle speedup.
Michael Niedermayer [Sun, 24 Jan 2010 18:23:46 +0000 (18:23 +0000)]
Optimize suffix_length computation, 1 cpu cycle speedup.

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

12 years agoSimplify suffix_length computation, same speed.
Michael Niedermayer [Sun, 24 Jan 2010 18:18:08 +0000 (18:18 +0000)]
Simplify suffix_length computation, same speed.

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

12 years agoFavor the term "URL" over "filename", as the API deals with URLs
Stefano Sabatini [Sun, 24 Jan 2010 18:18:03 +0000 (18:18 +0000)]
Favor the term "URL" over "filename", as the API deals with URLs
rather than with simple filenames.

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

12 years agoOptimize level_code computation, 6cpu cycles speedup.
Michael Niedermayer [Sun, 24 Jan 2010 18:17:01 +0000 (18:17 +0000)]
Optimize level_code computation, 6cpu cycles speedup.

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

12 years agoMake url_read_complete handle EAGAIN more intelligently.
Reimar Döffinger [Sun, 24 Jan 2010 18:09:46 +0000 (18:09 +0000)]
Make url_read_complete handle EAGAIN more intelligently.
Only retry 2 - 5 times in quick succession and afterwards sleep a bit
to avoid creating high CPU load without any progress.

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

12 years agoFix crash in MLP decoder due to integer overflow.
Reimar Döffinger [Sun, 24 Jan 2010 18:07:29 +0000 (18:07 +0000)]
Fix crash in MLP decoder due to integer overflow.
Probably only DoS, init_get_bits sets buffer to NULL, thus causing a
NULL-dereference directly after.

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

12 years ago1 cpu cycle faster suffix_length calculation.
Michael Niedermayer [Sun, 24 Jan 2010 18:05:02 +0000 (18:05 +0000)]
1 cpu cycle faster suffix_length calculation.

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

12 years agoMerge two "if (flags & SWS_PRINT_INFO) { ... }" blocks.
Stefano Sabatini [Sun, 24 Jan 2010 17:44:43 +0000 (17:44 +0000)]
Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks.

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

12 years agoVC-1/WMV3 DXVA2 implementation
Laurent Aimar [Sun, 24 Jan 2010 17:27:00 +0000 (17:27 +0000)]
VC-1/WMV3 DXVA2 implementation

 It allows VLD VC-1/WMV3 decoding using DXVA2 (GPU assisted decoding API under
VISTA and Windows 7).
 It is implemented by using AVHWAccel API.

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

12 years agoRemove is_complex from loop_filter() its useless there in its current form.
Michael Niedermayer [Sun, 24 Jan 2010 17:02:44 +0000 (17:02 +0000)]
Remove is_complex from loop_filter() its useless there in its current form.

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

12 years agoAdded a few missing consts in dxva_h264.
Laurent Aimar [Sun, 24 Jan 2010 16:40:58 +0000 (16:40 +0000)]
Added a few missing consts in dxva_h264.

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

12 years agoAdded a missing const to ff_h264_get_slice_type().
Laurent Aimar [Sun, 24 Jan 2010 16:37:12 +0000 (16:37 +0000)]
Added a missing const to ff_h264_get_slice_type().

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

12 years agoDoxument url_close().
Stefano Sabatini [Sun, 24 Jan 2010 16:33:56 +0000 (16:33 +0000)]
Doxument url_close().

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

12 years agoAdded missing const to get_bits_count().
Laurent Aimar [Sun, 24 Jan 2010 16:22:09 +0000 (16:22 +0000)]
Added missing const to get_bits_count().

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

12 years agoPrefer cbp over cbp_table.
Michael Niedermayer [Sun, 24 Jan 2010 13:43:26 +0000 (13:43 +0000)]
Prefer cbp over cbp_table.

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

12 years agoDoxument url_open_protocol().
Stefano Sabatini [Sun, 24 Jan 2010 13:31:25 +0000 (13:31 +0000)]
Doxument url_open_protocol().

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

12 years agoRemove all uses of slice_type* from the loop filter, also remove its
Michael Niedermayer [Sun, 24 Jan 2010 13:20:17 +0000 (13:20 +0000)]
Remove all uses of slice_type* from the loop filter, also remove its
initialization befre the loop filter.

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

12 years agoDoxument url_read().
Stefano Sabatini [Sun, 24 Jan 2010 13:07:54 +0000 (13:07 +0000)]
Doxument url_read().

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

12 years agoUse av_get_bits_per_pixel() for computing the bits per pixel of the
Stefano Sabatini [Sun, 24 Jan 2010 12:55:05 +0000 (12:55 +0000)]
Use av_get_bits_per_pixel() for computing the bits per pixel of the
source and destination format, cache those values in the newly added
SwsContext:srcFormatBpp and SwsContext:dstFormatBpp fields, and remove
the fmt_depth() function.

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

12 years agoIndent.
Ramiro Polla [Sun, 24 Jan 2010 03:02:40 +0000 (03:02 +0000)]

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

12 years agoDon't redefine M_PI. It is already defined from libavutil/mathematics.h.
Ramiro Polla [Sun, 24 Jan 2010 02:16:26 +0000 (02:16 +0000)]
Don't redefine M_PI. It is already defined from libavutil/mathematics.h.

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

12 years agoSplit swscale.c into scaler code (swscale.c) and utility code (utils.c).
Ramiro Polla [Sun, 24 Jan 2010 02:08:22 +0000 (02:08 +0000)]
Split swscale.c into scaler code (swscale.c) and utility code (utils.c).

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

12 years agoRemove unneeded reset of non_zero_count_cache for deblock.
Michael Niedermayer [Sat, 23 Jan 2010 22:11:46 +0000 (22:11 +0000)]
Remove unneeded reset of non_zero_count_cache for deblock.

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

12 years agoRemove useless things from the deblock side of fill_caches().
Michael Niedermayer [Sat, 23 Jan 2010 21:57:36 +0000 (21:57 +0000)]
Remove useless things from the deblock side of fill_caches().

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

12 years agomake mv_cache init 64bit where possible.
Michael Niedermayer [Sat, 23 Jan 2010 21:45:12 +0000 (21:45 +0000)]
make mv_cache init 64bit where possible.

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

12 years agovfwcap: Include windows.h before vfw.h since the latter requires defines
kemuri [Sat, 23 Jan 2010 20:58:29 +0000 (20:58 +0000)]
vfwcap: Include windows.h before vfw.h since the latter requires defines
from the former.
Patch by kemuri <kemuri9 at gmail dot com>

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

12 years agoReplace every usage of -lvfw32 with what is particularly necessary for
kemuri [Sat, 23 Jan 2010 20:42:00 +0000 (20:42 +0000)]
Replace every usage of -lvfw32 with what is particularly necessary for
that case:
Avisynth -> -lavifil32
VFW Cap -> -lavicap32
Patch by kemuri <kemuri9 at gmail dot com>

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

12 years agoUse $vfwcap_indev_extralibs variable instead of duplicating "-lvfw32" in
Ramiro Polla [Sat, 23 Jan 2010 20:38:17 +0000 (20:38 +0000)]
Use $vfwcap_indev_extralibs variable instead of duplicating "-lvfw32" in
capCreateCaptureWindow() check.
Based on patch by kemuri <kemuri9 at gmail dot com>

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

12 years agoIndent.
Ramiro Polla [Sat, 23 Jan 2010 20:18:38 +0000 (20:18 +0000)]

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

12 years agoMoved reusable functions from dxva2_h264.c to dxva2.c
Laurent Aimar [Sat, 23 Jan 2010 18:17:57 +0000 (18:17 +0000)]
Moved reusable functions from dxva2_h264.c to dxva2.c

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

12 years agoMove +52 from the loop filter to the alpha/beta offsets in the context.
Michael Niedermayer [Sat, 23 Jan 2010 18:05:30 +0000 (18:05 +0000)]
Move +52 from the loop filter to the alpha/beta offsets in the context.
This should fix a segfault, also it might be faster on systems where the
+52 wasnt free.

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

12 years agoRelease buffer when the codec is closed.
Reimar Döffinger [Sat, 23 Jan 2010 18:04:09 +0000 (18:04 +0000)]
Release buffer when the codec is closed.

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

12 years agoUse qstride = 0 and allocate only a single line for qscale_table since
Reimar Döffinger [Sat, 23 Jan 2010 18:01:38 +0000 (18:01 +0000)]
Use qstride = 0 and allocate only a single line for qscale_table since
for this codecs all quants are the same for a single frame.

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

12 years agoAdded ff_dxva2_ prefix to get_surface(_index) and commit_buffer functions.
Laurent Aimar [Sat, 23 Jan 2010 18:01:28 +0000 (18:01 +0000)]
Added ff_dxva2_ prefix to get_surface(_index) and commit_buffer functions.

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

12 years agoReindent the content of one if(){} in ff_dxva2_common_end_frame.
Laurent Aimar [Sat, 23 Jan 2010 18:00:51 +0000 (18:00 +0000)]
Reindent the content of one if(){} in ff_dxva2_common_end_frame.

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

12 years agoMoved reusable code from dxva2_h264.c:end_frame to ff_dxva2_common_end_frame.
Laurent Aimar [Sat, 23 Jan 2010 17:59:08 +0000 (17:59 +0000)]
Moved reusable code from dxva2_h264.c:end_frame to ff_dxva2_common_end_frame.

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

12 years agoSet edges based on cbp and mv partitioning, not just skiped MBs.
Michael Niedermayer [Sat, 23 Jan 2010 15:28:34 +0000 (15:28 +0000)]
Set edges based on cbp and mv partitioning, not just skiped MBs.
This is faster for videos that have lots of MBs that fall in this category.

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

12 years agoUse AVPALETTE_COUNT instead of hard-coding 256.
Reimar Döffinger [Sat, 23 Jan 2010 15:22:48 +0000 (15:22 +0000)]
Use AVPALETTE_COUNT instead of hard-coding 256.
This is consistent with other codecs and will also avoid a crash on the
memcpy to data[1] if AVPALETTE_SIZE ever increases.

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

12 years agoRemove redundant initialization of the palette, it is part of the context
Reimar Döffinger [Sat, 23 Jan 2010 15:19:34 +0000 (15:19 +0000)]
Remove redundant initialization of the palette, it is part of the context
and that one is always 0-initialized already.

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

12 years agoOptimize filter_mb_mbaff_edge*()
Michael Niedermayer [Sat, 23 Jan 2010 14:50:56 +0000 (14:50 +0000)]
Optimize filter_mb_mbaff_edge*()

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

12 years agoOptmize 8x8dct check used to skip some borders in the loop filter.
Michael Niedermayer [Sat, 23 Jan 2010 13:54:02 +0000 (13:54 +0000)]
Optmize 8x8dct check used to skip some borders in the loop filter.
4 cpu cycles faster.

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

12 years agoUse av_freep intead of av_free to free pointers in vp56 context.
Reimar Döffinger [Sat, 23 Jan 2010 13:49:09 +0000 (13:49 +0000)]
Use av_freep intead of av_free to free pointers in vp56 context.

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

12 years agoZero the frame data on allocation for VB codec, e.g. the FATE sample seems to
Reimar Döffinger [Sat, 23 Jan 2010 10:25:22 +0000 (10:25 +0000)]
Zero the frame data on allocation for VB codec, e.g. the FATE sample seems to
rely on this.

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

12 years agoMake url_read_complete retry on EAGAIN and return how much data it read
Reimar Döffinger [Sat, 23 Jan 2010 10:23:47 +0000 (10:23 +0000)]
Make url_read_complete retry on EAGAIN and return how much data it read
if it reached EOF, making it useful in more cases.

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

12 years agoPrint a warning when DATA chunk is encountered in the middle of chunk.
Ronald S. Bultje [Sat, 23 Jan 2010 09:42:52 +0000 (09:42 +0000)]
Print a warning when DATA chunk is encountered in the middle of chunk.
From multirate RM patch by Ronald S. Bultje

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

12 years agoExport wma_critical_freqs as ff_wma_critical_freqs
Daniel Verkamp [Sat, 23 Jan 2010 08:39:50 +0000 (08:39 +0000)]
Export wma_critical_freqs as ff_wma_critical_freqs

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

12 years agoFix heap overflow with -async.
Michael Niedermayer [Sat, 23 Jan 2010 01:25:19 +0000 (01:25 +0000)]
Fix heap overflow with -async.
Fixes issue1666

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

12 years agoThe SSSE3 version of dct_quantize in mpegvideo_mmx_template.c needs
Reimar Döffinger [Fri, 22 Jan 2010 23:40:18 +0000 (23:40 +0000)]
The SSSE3 version of dct_quantize in mpegvideo_mmx_template.c needs
inv_zigzag_direct16 16-byte aligned, so mark it appropriately.
Fixes encoder crashes e.g. with MPlayer's -vf lavc.

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

12 years agoRemove conditional M_PI definition, it is already defined in
Stefano Sabatini [Fri, 22 Jan 2010 23:16:23 +0000 (23:16 +0000)]
Remove conditional M_PI definition, it is already defined in
libavutil/mathematics.h indirectly included by libavformat/avformat.h.

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

12 years agoReplace deprecated guess_format() with av_guess_format().
Martin Storsjö [Fri, 22 Jan 2010 23:09:08 +0000 (23:09 +0000)]
Replace deprecated guess_format() with av_guess_format().

Patch by Martin Storsjö reverse(<ts.nitram@nitram>).

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

12 years agoImplement an sse version of scalarproduct_float().
Alex Converse [Fri, 22 Jan 2010 23:07:58 +0000 (23:07 +0000)]
Implement an sse version of scalarproduct_float().

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

12 years agoCheck for chunk boundaries when decoding VB codec data
Kostya Shishkov [Fri, 22 Jan 2010 19:07:44 +0000 (19:07 +0000)]
Check for chunk boundaries when decoding VB codec data

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

12 years agoZero palette in case not all entries are initialized later
Kostya Shishkov [Fri, 22 Jan 2010 18:28:41 +0000 (18:28 +0000)]
Zero palette in case not all entries are initialized later

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

12 years agoMake style a little bit more K&R'ish.
Ronald S. Bultje [Fri, 22 Jan 2010 16:12:55 +0000 (16:12 +0000)]
Make style a little bit more K&R'ish.

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

12 years agoRename a function which is no longer ipv6-specific. Patch by Martin Storsjö
Martin Storsjö [Fri, 22 Jan 2010 16:10:08 +0000 (16:10 +0000)]
Rename a function which is no longer ipv6-specific. Patch by Martin Storsjö
<$firstname () $firstname st>.

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

12 years agoUse the control URI from the SDP (if present) rather than the input filename,
Alan Steremberg [Fri, 22 Jan 2010 16:04:15 +0000 (16:04 +0000)]
Use the control URI from the SDP (if present) rather than the input filename,
if present. This fixes playback of a number of MS-RTSP streams, mostly these
for which playback contains a session key in the URI. Fixes issue 1697.
Patch by Alan Steremberg <$firstname dot $lastname () gmail com>.

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

12 years agoMove array specifiers outside DECLARE_ALIGNED() invocations
Måns Rullgård [Fri, 22 Jan 2010 03:26:30 +0000 (03:26 +0000)]
Move array specifiers outside DECLARE_ALIGNED() invocations

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

12 years agoSuppress TMS470 warnings about alignment directives
Måns Rullgård [Fri, 22 Jan 2010 03:25:27 +0000 (03:25 +0000)]
Suppress TMS470 warnings about alignment directives

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

12 years agoDECLARE_ALIGNED macro for TMS470 compiler
Måns Rullgård [Fri, 22 Jan 2010 03:25:25 +0000 (03:25 +0000)]
DECLARE_ALIGNED macro for TMS470 compiler

This compiler supports gcc-style alignment attributes for struct,
but not for global variables.  For the latter, alignment can be
specified with a pragma, which does not work for struct members or
local variables.  By using both pragma and attribute, one or the
other will always take effect.

Unfortunately, no means exists for aligning stack variables.

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

12 years agoAdd an AV_PRAGMA() macro for constructing _Pragma() directives
Måns Rullgård [Fri, 22 Jan 2010 03:25:21 +0000 (03:25 +0000)]
Add an AV_PRAGMA() macro for constructing _Pragma() directives

The seemingly equivalent _Pragma(AV_STRINGIFY(x)) is not accepted
by some compilers.

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

12 years agoMove array specifiers outside DECLARE_ALIGNED() invocations
Måns Rullgård [Fri, 22 Jan 2010 03:25:11 +0000 (03:25 +0000)]
Move array specifiers outside DECLARE_ALIGNED() invocations

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

12 years agoconfigure: fix --cpu=host
Måns Rullgård [Fri, 22 Jan 2010 03:14:19 +0000 (03:14 +0000)]
configure: fix --cpu=host

The awk command used inadvertently relied on non-standard features.

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

12 years agoGcc idiocy fixes related to filter_mb_edge*.
Michael Niedermayer [Fri, 22 Jan 2010 01:59:17 +0000 (01:59 +0000)]
Gcc idiocy fixes related to filter_mb_edge*.
Change order of operands as gcc uses a hardcoded register per operand it seems
even for static functions
thus reducing unneeded moved (now functions try to pass the same argument in
the same spot).
Change signed int to unsigned int for array indexes as signed requires signed
extension while unsigned is free.
move the +52 up and merge it where it will end as a lea instruction, gcc always
splits the 52 out there turning the free +52 into an expensive one otherwise.
The changed code becomes a little faster.

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

12 years agoUpdate regression tests after r21372
David Conrad [Thu, 21 Jan 2010 23:35:26 +0000 (23:35 +0000)]
Update regression tests after r21372

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

12 years agoMove dquant check into qscale overflow check.
Michael Niedermayer [Thu, 21 Jan 2010 21:01:26 +0000 (21:01 +0000)]
Move dquant check into qscale overflow check.
This should be faster (couldnt meassue a difference), and its less picky
on slightly out of spec dquant.

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

12 years agomkvenc: Write TrackTimecodeScale
Rafaël Carré [Thu, 21 Jan 2010 20:49:27 +0000 (20:49 +0000)]
mkvenc: Write TrackTimecodeScale
patch by Rafael (dot) Carre (a) gmail (d) com

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

12 years agoRemove reply and content_ptr arguments from rtsp_send_cmd_async(), since
Ronald S. Bultje [Thu, 21 Jan 2010 20:04:17 +0000 (20:04 +0000)]
Remove reply and content_ptr arguments from rtsp_send_cmd_async(), since
they are unused.

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

12 years agoChange on rtsp_send_cmd() to the _async() version since we don't use the
Ronald S. Bultje [Thu, 21 Jan 2010 20:01:11 +0000 (20:01 +0000)]
Change on rtsp_send_cmd() to the _async() version since we don't use the
response anyway.

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

12 years agoReindent after r21368.
Ronald S. Bultje [Thu, 21 Jan 2010 19:50:40 +0000 (19:50 +0000)]
Reindent after r21368.

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

12 years agoPretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized
Ronald S. Bultje [Thu, 21 Jan 2010 19:48:30 +0000 (19:48 +0000)]
Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized
buffer, that is doomed to not work at some point.

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

12 years agoMake output-example.c handle AAC audio.
Martin Storsjö [Thu, 21 Jan 2010 17:10:13 +0000 (17:10 +0000)]
Make output-example.c handle AAC audio.
Patch by Martin Storsjö martin martin st

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

12 years agoMake calculation of mask_edge free of branches, faster of course but probably
Michael Niedermayer [Thu, 21 Jan 2010 16:50:31 +0000 (16:50 +0000)]
Make calculation of mask_edge free of branches, faster of course but probably
little effect overall as this is not that often executed.

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

12 years agoRemove IPv4-only codepath. Patch by Martin Storsjö <$first $first st>.
Martin Storsjö [Thu, 21 Jan 2010 15:42:05 +0000 (15:42 +0000)]
Remove IPv4-only codepath. Patch by Martin Storsjö <$first $first st>.

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

12 years agoClarify CODEC_CAP_SUBFRAMES.
Michael Niedermayer [Thu, 21 Jan 2010 13:49:47 +0000 (13:49 +0000)]

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

12 years agoMake DECLARE_ALIGNED macros work with external array specifiers
Måns Rullgård [Thu, 21 Jan 2010 12:59:22 +0000 (12:59 +0000)]
Make DECLARE_ALIGNED macros work with external array specifiers

The macro implementation might need the name of the variable being
declared for compiler-specific syntax.  Moving array specifiers outside
the macro invocation allows this to work.

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

12 years agoSet CODEC_CAP_SUBFRAMES for adpcm decoders
Måns Rullgård [Thu, 21 Jan 2010 12:57:24 +0000 (12:57 +0000)]
Set CODEC_CAP_SUBFRAMES for adpcm decoders

This makes ffmpeg stop printing millions of
  Multiple frames in a packet from stream 0
when decoding adpcm.

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

12 years agoMore const-correctness for sws_scale
David Conrad [Thu, 21 Jan 2010 09:52:11 +0000 (09:52 +0000)]
More const-correctness for sws_scale

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

12 years agoSet start_time and duration in AVStream instead of AVFormatContext for
David Conrad [Thu, 21 Jan 2010 09:47:02 +0000 (09:47 +0000)]
Set start_time and duration in AVStream instead of AVFormatContext for
formats with only one stream; the AVFormatContext values will be derived from
the AVStream and this helps in calculating stream bitrate.

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

12 years agoUse two separate memory arguments since 8+() is invalid gas syntax
David Conrad [Thu, 21 Jan 2010 09:46:57 +0000 (09:46 +0000)]
Use two separate memory arguments since 8+() is invalid gas syntax

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

12 years agoIndent
Måns Rullgård [Wed, 20 Jan 2010 22:55:55 +0000 (22:55 +0000)]

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

12 years agoAlways call avcodec_thread_init()
Måns Rullgård [Wed, 20 Jan 2010 22:55:50 +0000 (22:55 +0000)]
Always call avcodec_thread_init()

The various avcodec_thread_init() functions are updated to return
immediately after setting avctx->thread_count.  This allows -threads 0
to pass through to codecs.  It also simplifies the usage for apps
using libavcodec.

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

12 years agoTranslate -mfpu=vfpv3 for TMS470
Måns Rullgård [Wed, 20 Jan 2010 20:58:04 +0000 (20:58 +0000)]
Translate -mfpu=vfpv3 for TMS470

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

12 years agoIgnore annoying armcc warnings
Måns Rullgård [Wed, 20 Jan 2010 20:06:11 +0000 (20:06 +0000)]
Ignore annoying armcc warnings

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

12 years agoAttempt to fix asm compilation failure.
Michael Niedermayer [Wed, 20 Jan 2010 19:23:19 +0000 (19:23 +0000)]
Attempt to fix asm compilation failure.
Only tested on gcc 4 & x86_64.

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

12 years agoAdded myself as dxva2 maintainer.
Laurent Aimar [Wed, 20 Jan 2010 18:55:38 +0000 (18:55 +0000)]
Added myself as dxva2 maintainer.

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

12 years agoH264 DXVA2 implementation
Laurent Aimar [Wed, 20 Jan 2010 18:54:51 +0000 (18:54 +0000)]
H264 DXVA2 implementation

 It allows VLD H264 decoding using DXVA2 (GPU assisted decoding API under
VISTA and Windows 7).
 It is implemented by using AVHWAccel API. It has been tested successfully
for some time in VLC using an nvidia card on Windows 7.

 To compile it, you need to have the system header dxva2api.h (either from
microsoft or using http://downloads.videolan.org/pub/videolan/testing/contrib/dxva2api.h)
 The generated libavcodec.dll does not depend directly on any new lib as
the necessary objects are given by the application using FFmpeg.

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

12 years agoUse the configure check from r21351 and use it to properly define struct
Martin Storsjö [Wed, 20 Jan 2010 17:26:14 +0000 (17:26 +0000)]
Use the configure check from r21351 and use it to properly define struct
sockaddr (in case it's not missing) so it always works on the system that
we are defining it for, in a RFC-2553/3493-compliant way (i.e. containing
a ss_family field). which is used in udp.c. Patch by Martin Storsjö
<$firstname $firstname st>.

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

12 years agoAdd a check for struct sockaddr->sa_len, which is an indication of whether
Ronald S. Bultje [Wed, 20 Jan 2010 17:24:23 +0000 (17:24 +0000)]
Add a check for struct sockaddr->sa_len, which is an indication of whether
the system wants a length entry in all socket structures or not. Patch by
Martin Storsjö <$firstname $firstname st>.

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

12 years agoUse $(CC_O) in %-test.o rules
Måns Rullgård [Wed, 20 Jan 2010 14:14:42 +0000 (14:14 +0000)]
Use $(CC_O) in %-test.o rules

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

12 years agoconfigure: display --list-* output in three columns
Måns Rullgård [Wed, 20 Jan 2010 14:02:58 +0000 (14:02 +0000)]
configure: display --list-* output in three columns

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

12 years agoconfigure: use nm -P on Solaris
Måns Rullgård [Wed, 20 Jan 2010 13:22:36 +0000 (13:22 +0000)]
configure: use nm -P on Solaris

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

12 years agoAdd -timelimit option
Måns Rullgård [Wed, 20 Jan 2010 06:42:39 +0000 (06:42 +0000)]
Add -timelimit option

This option limits the CPU time used by ffmpeg to the number of seconds
specified.  After this time, the OS sends a SIGXCPU signal, which we
handle and attempt to exit cleanly.  If the process is stuck, the OS
will deliver a SIGKILL one second later, forcibly terminating the

This functionality is useful in automated setups where a runaway ffmpeg
process would otherwise go undetected.

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

12 years agoMove COPY3_IF_LT to lavc/mathops.h
Måns Rullgård [Wed, 20 Jan 2010 06:01:54 +0000 (06:01 +0000)]
Move COPY3_IF_LT to lavc/mathops.h

This obscure macro is only used in motion_est.c so having it in lavc
makes more sense.  See discussion here:

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

12 years agoH.264: Declare bS with DECLARE_ALIGNED_8 for uint64_t casts.
Alexander Strange [Wed, 20 Jan 2010 03:28:57 +0000 (03:28 +0000)]
H.264: Declare bS with DECLARE_ALIGNED_8 for uint64_t casts.

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

12 years agoDocument some more of SwsContext.
Ramiro Polla [Wed, 20 Jan 2010 03:26:12 +0000 (03:26 +0000)]
Document some more of SwsContext.

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

12 years agoSimplify/Optimize another of the mbaff loop filter cases.
Michael Niedermayer [Wed, 20 Jan 2010 03:00:08 +0000 (03:00 +0000)]
Simplify/Optimize another of the mbaff loop filter cases.
Its faster but too rarely used to make a differnce.

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

12 years agoUpdate documentation for make test.
Ramiro Polla [Wed, 20 Jan 2010 02:26:32 +0000 (02:26 +0000)]
Update documentation for make test.

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

12 years agoOnly calculate the second chroma qp if it differs from the firstin the main
Michael Niedermayer [Wed, 20 Jan 2010 01:49:24 +0000 (01:49 +0000)]
Only calculate the second chroma qp if it differs from the firstin the main
loop filter. (a little faster for the common case where they are equal)

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

12 years agoSet bS with 64bits at a time.
Michael Niedermayer [Wed, 20 Jan 2010 01:38:32 +0000 (01:38 +0000)]
Set bS with 64bits at a time.

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