ffmpeg.git
10 years agoMerge some cases for reading raw data with different bit depths in BMP
Kostya Shishkov [Fri, 27 Mar 2009 16:31:47 +0000 (16:31 +0000)]
Merge some cases for reading raw data with different bit depths in BMP

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

10 years agoFix seek test build, by undefining printf and fprintf.
Benoit Fouet [Fri, 27 Mar 2009 08:24:46 +0000 (08:24 +0000)]
Fix seek test build, by undefining printf and fprintf.

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

10 years agoCheck for INIT_VLC_USE_STATIC
Michael Niedermayer [Fri, 27 Mar 2009 03:03:50 +0000 (03:03 +0000)]
Check for INIT_VLC_USE_STATIC

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

10 years agoMove output_example.c --> libavformat/output-example.c.
Diego Biurrun [Fri, 27 Mar 2009 00:01:06 +0000 (00:01 +0000)]
Move output_example.c --> libavformat/output-example.c.
The libavformat directory is a better place for a libavformat API example.

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

10 years agoMake static the list of registered filters.
Víctor Paesa [Thu, 26 Mar 2009 21:46:45 +0000 (21:46 +0000)]
Make static the list of registered filters.

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

10 years agoRemove unnecessary CFLAGS variable from output_example link command.
Diego Biurrun [Thu, 26 Mar 2009 17:16:11 +0000 (17:16 +0000)]
Remove unnecessary CFLAGS variable from output_example link command.

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

10 years agoRemoving example programs is already handled by the generic clean commands,
Diego Biurrun [Thu, 26 Mar 2009 14:37:14 +0000 (14:37 +0000)]
Removing example programs is already handled by the generic clean commands,
so there is no need to remove output_example individually.

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

10 years agoRename cs_test.c --> colorspace-test.c. This is more consistent with the names
Diego Biurrun [Thu, 26 Mar 2009 14:20:15 +0000 (14:20 +0000)]
Rename cs_test.c --> colorspace-test.c.  This is more consistent with the names
of other test programs and more descriptive of what the program does.

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

10 years agoFix a warning on an uninitialized variable.
Benoit Fouet [Thu, 26 Mar 2009 14:15:42 +0000 (14:15 +0000)]
Fix a warning on an uninitialized variable.

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

10 years agoUse a wildcard match instead of a list to remove test programs.
Diego Biurrun [Thu, 26 Mar 2009 10:12:21 +0000 (10:12 +0000)]
Use a wildcard match instead of a list to remove test programs.
This is robust against renames and also removes test programs not
(yet) hooked up in the main Makefiles.

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

10 years agoUse intptr_t when casting pointers to int.
Ramiro Polla [Thu, 26 Mar 2009 01:34:02 +0000 (01:34 +0000)]
Use intptr_t when casting pointers to int.

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

10 years agoMove yuv2rgb code to subdirs.
Ramiro Polla [Thu, 26 Mar 2009 01:30:10 +0000 (01:30 +0000)]
Move yuv2rgb code to subdirs.

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

10 years agoCreate swscale subdirs for out-of-tree builds.
Ramiro Polla [Thu, 26 Mar 2009 01:29:20 +0000 (01:29 +0000)]
Create swscale subdirs for out-of-tree builds.

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

10 years agofft-test does not depend on fdctref.o.
Diego Biurrun [Wed, 25 Mar 2009 19:00:15 +0000 (19:00 +0000)]
fft-test does not depend on fdctref.o.

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

10 years agoMove adding the '-test$(EXESUF)' suffix to test programs into common.mak.
Diego Biurrun [Wed, 25 Mar 2009 18:19:20 +0000 (18:19 +0000)]
Move adding the '-test$(EXESUF)' suffix to test programs into common.mak.

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

10 years agoprettyprinting cosmetics
Diego Biurrun [Wed, 25 Mar 2009 18:14:28 +0000 (18:14 +0000)]
prettyprinting cosmetics

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

10 years agoswscale-example is an API example, not a test program.
Diego Biurrun [Wed, 25 Mar 2009 18:08:52 +0000 (18:08 +0000)]
swscale-example is an API example, not a test program.

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

10 years agocosmetics: Group all path variables together in config.mak.
Diego Biurrun [Wed, 25 Mar 2009 17:46:25 +0000 (17:46 +0000)]
cosmetics: Group all path variables together in config.mak.

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

10 years agotypo: beomes --> becomes
Diego Biurrun [Wed, 25 Mar 2009 14:19:22 +0000 (14:19 +0000)]
typo: beomes --> becomes

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

10 years agoMove licensing information into a separate file called LICENSE and
Diego Biurrun [Wed, 25 Mar 2009 14:05:20 +0000 (14:05 +0000)]
Move licensing information into a separate file called LICENSE and
rewrite it for greater clarity in the process.

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

10 years agoClarify that our LGPL/GPL licenses come with an explicit "or later" clause.
Diego Biurrun [Wed, 25 Mar 2009 10:28:01 +0000 (10:28 +0000)]
Clarify that our LGPL/GPL licenses come with an explicit "or later" clause.

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

10 years agoThe Mersenne Twister PRNG was removed, mention replacement.
Diego Biurrun [Wed, 25 Mar 2009 10:18:47 +0000 (10:18 +0000)]
The Mersenne Twister PRNG was removed, mention replacement.

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

10 years agocosmetics: Reformat paragraphs and other cosmetic changes.
Diego Biurrun [Wed, 25 Mar 2009 10:12:31 +0000 (10:12 +0000)]
cosmetics: Reformat paragraphs and other cosmetic changes.

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

10 years agoset wrong_dts for iMovie created files which has huge ctts delay, fix ffmpeg_sample.m4v
Baptiste Coudurier [Wed, 25 Mar 2009 06:07:13 +0000 (06:07 +0000)]
set wrong_dts for iMovie created files which has huge ctts delay, fix ffmpeg_sample.m4v

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

10 years agoClear some more variables that are used on subdir Makefiles.
Ramiro Polla [Wed, 25 Mar 2009 00:50:56 +0000 (00:50 +0000)]
Clear some more variables that are used on subdir Makefiles.

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

10 years agocosmetics: add an @return to documentation for decode_frame_header()
Justin Ruggles [Tue, 24 Mar 2009 22:44:12 +0000 (22:44 +0000)]
cosmetics: add an @return to documentation for decode_frame_header()

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

10 years agoAdd _XOPEN_SOURCE #define. This is necessary for (s)random(), which are XSI
Diego Biurrun [Tue, 24 Mar 2009 16:28:48 +0000 (16:28 +0000)]
Add _XOPEN_SOURCE #define. This is necessary for (s)random(), which are XSI
extensions of POSIX. Avoids implicit declaration warnings on some systems.

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

10 years agoAdds "YUYV422 to YUVA420P" and "UYVY422 to YUVA420P" unscaled convertion
Cédric Schieli [Tue, 24 Mar 2009 07:11:35 +0000 (07:11 +0000)]
Adds "YUYV422 to YUVA420P" and "UYVY422 to YUVA420P" unscaled convertion

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

10 years agoFix some places where "non-alpha to YUVA420P" do not fill the alpha plane
Cédric Schieli [Tue, 24 Mar 2009 07:10:19 +0000 (07:10 +0000)]
Fix some places where "non-alpha to YUVA420P" do not fill the alpha plane

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

10 years agoSimpler and more elegant fix to the x86_32/OSX+PIC build failure
Cédric Schieli [Tue, 24 Mar 2009 07:09:19 +0000 (07:09 +0000)]
Simpler and more elegant fix to the x86_32/OSX+PIC build failure

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

10 years agostrchr(string, '\0') returns non-NULL, and is thus not suited for use in
Ronald S. Bultje [Tue, 24 Mar 2009 03:24:59 +0000 (03:24 +0000)]
strchr(string, '\0') returns non-NULL, and is thus not suited for use in
redir_isspace(char) to check if '\0' is a space or not. Therefore, we now
use memchr(), since then we can give the length of the string (i.e. the
length excluding the terminating '\0'). Fixes issue 919, see also the
follow-ups in the "[PATCH] rtsp.c small cleanups" mailinglist thread.

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

10 years agoUpdate apiexample.c to use the newer avcodec_decode_audio2() API. This also
Robert Swain [Tue, 24 Mar 2009 02:26:10 +0000 (02:26 +0000)]
Update apiexample.c to use the newer avcodec_decode_audio2() API. This also
fixes compilation.

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

10 years agoflacdec: split frame header decoding and validation into a separate
Justin Ruggles [Tue, 24 Mar 2009 01:17:55 +0000 (01:17 +0000)]
flacdec: split frame header decoding and validation into a separate
function

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

10 years agoUse PIX_FMT_NE() for defining the PIX_FMT_RGB32 variants macros.
Stefano Sabatini [Mon, 23 Mar 2009 23:01:11 +0000 (23:01 +0000)]
Use PIX_FMT_NE() for defining the PIX_FMT_RGB32 variants macros.

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

10 years agoMake the PIX_FMT_NE() macro more generic.
Stefano Sabatini [Mon, 23 Mar 2009 22:57:55 +0000 (22:57 +0000)]
Make the PIX_FMT_NE() macro more generic.

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

10 years agoAdd MPEG-2 bitstream decoding through VA API.
Gwenole Beauchesne [Mon, 23 Mar 2009 22:09:13 +0000 (22:09 +0000)]
Add MPEG-2 bitstream decoding through VA API.

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

10 years agoMove declaration of 'pict' closer to where it is used and initialize it.
avcoder [Mon, 23 Mar 2009 16:43:06 +0000 (16:43 +0000)]
Move declaration of 'pict' closer to where it is used and initialize it.
Patch by avcoder: gmail(ffmpeg)

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

10 years agoMove av_class to AVResampleContext instead of ReSampleContext.
Benoit Fouet [Mon, 23 Mar 2009 10:58:05 +0000 (10:58 +0000)]
Move av_class to AVResampleContext instead of ReSampleContext.
Fixes issue 852.

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

10 years agoAAC: Ignore cc_domain for independent (time domain) coupling.
Alex Converse [Mon, 23 Mar 2009 05:13:26 +0000 (05:13 +0000)]
AAC: Ignore cc_domain for independent (time domain) coupling.

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

10 years agoAdd pcxenc.o to the $OBJS list, it was erroneously removed from it in
Stefano Sabatini [Sun, 22 Mar 2009 23:42:06 +0000 (23:42 +0000)]
Add pcxenc.o to the $OBJS list, it was erroneously removed from it in
r18164.
Fix compilation.

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

10 years agoflacdec: cosmetics: white space
Justin Ruggles [Sun, 22 Mar 2009 23:22:44 +0000 (23:22 +0000)]
flacdec: cosmetics: white space

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

10 years agoflacdec: cosmetics: separate the pure frame header parsing code from
Justin Ruggles [Sun, 22 Mar 2009 23:19:49 +0000 (23:19 +0000)]
flacdec: cosmetics: separate the pure frame header parsing code from
other frame header decoding code

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

10 years agoRename 'tests' target to 'testprogs'. It is too easily confused with the
Diego Biurrun [Sun, 22 Mar 2009 23:15:54 +0000 (23:15 +0000)]
Rename 'tests' target to 'testprogs'. It is too easily confused with the
'test' target and a directory named tests exists.

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

10 years agoRename 'tests' target to 'testprogs'. It is too easily confused with the
Diego Biurrun [Sun, 22 Mar 2009 23:13:21 +0000 (23:13 +0000)]
Rename 'tests' target to 'testprogs'. It is too easily confused with the
'test' target and a directory named tests exists.

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

10 years agoRemove unnecessary CLEANFILES declaration. Test programs do not require it.
Diego Biurrun [Sun, 22 Mar 2009 23:09:20 +0000 (23:09 +0000)]
Remove unnecessary CLEANFILES declaration. Test programs do not require it.

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

10 years agoSplit AVCodec declarations for PAM/PBM/PGM/PGMYUV/PPM decoders and encoders
Diego Biurrun [Sun, 22 Mar 2009 22:50:22 +0000 (22:50 +0000)]
Split AVCodec declarations for PAM/PBM/PGM/PGMYUV/PPM decoders and encoders
so that they can be enabled and disabled individually.

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

10 years agoMake the pixel formats which were defined as macros:
Stefano Sabatini [Sun, 22 Mar 2009 22:50:19 +0000 (22:50 +0000)]
Make the pixel formats which were defined as macros:
PIX_FMT_ARGB
PIX_FMT_RGBA
PIX_FMT_ABGR
PIX_FMT_BGRA

defined as enum PixelFormat values, and viceversa make:
PIX_FMT_RGB32
PIX_FMT_RGB32_1
PIX_FMT_BGR32
PIX_FMT_BGR32_1

defined as macros, also resort accordingly the enum PixelFormat
list.
Also make avcodec_get_pix_fmt() recognize the "rgb32" and "bgr32"
aliases, in order to make ffmpeg pass regressions test.

This change breaks ABI backward compatibility.

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

10 years agoflacdec: allow sample rate to change mid-stream, but log a warning
Justin Ruggles [Sun, 22 Mar 2009 22:38:06 +0000 (22:38 +0000)]
flacdec: allow sample rate to change mid-stream, but log a warning
message when it does

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

10 years agoAdd rule for building API example programs.
Diego Biurrun [Sun, 22 Mar 2009 22:33:41 +0000 (22:33 +0000)]
Add rule for building API example programs.

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

10 years agoFactorize: use the X_NE() macro in avcodec_get_pix_fmt().
Stefano Sabatini [Sun, 22 Mar 2009 22:13:10 +0000 (22:13 +0000)]
Factorize: use the X_NE() macro in avcodec_get_pix_fmt().

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

10 years agoflacdec: cosmetics: indentation
Justin Ruggles [Sun, 22 Mar 2009 22:12:03 +0000 (22:12 +0000)]
flacdec: cosmetics: indentation

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

10 years agoImplement X_NE() macro.
Stefano Sabatini [Sun, 22 Mar 2009 22:10:36 +0000 (22:10 +0000)]
Implement X_NE() macro.

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

10 years agoflacdec: change frame bps validation to return an error value if bps
Justin Ruggles [Sun, 22 Mar 2009 22:10:33 +0000 (22:10 +0000)]
flacdec: change frame bps validation to return an error value if bps
changes since this is not currently supported by the decoder.

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

10 years agoflacdec: cosmetics: add some braces to if/else statements
Justin Ruggles [Sun, 22 Mar 2009 21:53:28 +0000 (21:53 +0000)]
flacdec: cosmetics: add some braces to if/else statements

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

10 years agoflacdec: skip frame when allocated data size is too small
Justin Ruggles [Sun, 22 Mar 2009 21:31:23 +0000 (21:31 +0000)]
flacdec: skip frame when allocated data size is too small

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

10 years ago10l: don't check against current layout until after validating ch_mode.
Justin Ruggles [Sun, 22 Mar 2009 21:13:10 +0000 (21:13 +0000)]
10l: don't check against current layout until after validating ch_mode.
should have been in last commit.

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

10 years agoflacdec: give a more accurate error message when validating channel
Justin Ruggles [Sun, 22 Mar 2009 21:07:43 +0000 (21:07 +0000)]
flacdec: give a more accurate error message when validating channel
layout. differentiates between invalid values and unsupported values.

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

10 years agoExport to pixdesc.h the av_pix_fmt_descriptors array.
Stefano Sabatini [Sun, 22 Mar 2009 21:01:08 +0000 (21:01 +0000)]
Export to pixdesc.h the av_pix_fmt_descriptors array.

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

10 years agoflacdec: move data size check to flac_decode_frame()
Justin Ruggles [Sun, 22 Mar 2009 20:19:20 +0000 (20:19 +0000)]
flacdec: move data size check to flac_decode_frame()

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

10 years agoflacdec: comments and white space.
Justin Ruggles [Sun, 22 Mar 2009 19:12:02 +0000 (19:12 +0000)]
flacdec: comments and white space.
move skipping of frame header to decode_frame()

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

10 years agocosmetics: vertical alignment
Justin Ruggles [Sun, 22 Mar 2009 18:59:45 +0000 (18:59 +0000)]
cosmetics: vertical alignment

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

10 years agoflacdec: remove unneeded local variable
Justin Ruggles [Sun, 22 Mar 2009 18:59:00 +0000 (18:59 +0000)]
flacdec: remove unneeded local variable

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

10 years agoflacdec: cosmetics: rename 3 variables
Justin Ruggles [Sun, 22 Mar 2009 18:56:07 +0000 (18:56 +0000)]
flacdec: cosmetics: rename 3 variables

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

10 years agoflacdec: use a local variable for GetBitContext in decode_frame()
Justin Ruggles [Sun, 22 Mar 2009 18:52:15 +0000 (18:52 +0000)]
flacdec: use a local variable for GetBitContext in decode_frame()

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

10 years agohandle id3v2 'genre' tag formated as '%d'
Aurelien Jacobs [Sun, 22 Mar 2009 16:10:37 +0000 (16:10 +0000)]
handle id3v2 'genre' tag formated as '%d'

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

10 years agoRemove alpha channel from default colorspace tables, since it is unused. See
Ronald S. Bultje [Sun, 22 Mar 2009 13:05:13 +0000 (13:05 +0000)]
Remove alpha channel from default colorspace tables, since it is unused. See
"qtpalette.h" thread on mailinglist.

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

10 years agoUse $< automatic variable to simplify some commands.
Diego Biurrun [Sun, 22 Mar 2009 13:00:15 +0000 (13:00 +0000)]
Use $< automatic variable to simplify some commands.

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

10 years agoAdd a @todo with a comment from Kostya so we don't forget to optimize that at
Ronald S. Bultje [Sun, 22 Mar 2009 12:47:16 +0000 (12:47 +0000)]
Add a @todo with a comment from Kostya so we don't forget to optimize that at
some point in the future.

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

10 years agoAdd AURA 1 and 2 codec IDs and register their FOURCCs
Kostya Shishkov [Sun, 22 Mar 2009 07:40:22 +0000 (07:40 +0000)]
Add AURA 1 and 2 codec IDs and register their FOURCCs

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

10 years agoallocate tracks instead of using MAX_STREAMS
Baptiste Coudurier [Sun, 22 Mar 2009 03:52:55 +0000 (03:52 +0000)]
allocate tracks instead of using MAX_STREAMS

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

10 years agoinit ext sample rate to 0 if not present
Baptiste Coudurier [Sun, 22 Mar 2009 02:53:01 +0000 (02:53 +0000)]
init ext sample rate to 0 if not present

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

10 years agosince code now use get_bits_long, allocate padding buffer
Baptiste Coudurier [Sun, 22 Mar 2009 02:47:35 +0000 (02:47 +0000)]
since code now use get_bits_long, allocate padding buffer

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

10 years agoavoid creating a new stream not referenced in pmt since it cannot be associated to...
Baptiste Coudurier [Sun, 22 Mar 2009 02:04:28 +0000 (02:04 +0000)]
avoid creating a new stream not referenced in pmt since it cannot be associated to a program, fix issue 835

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

10 years agoAdd common VA API data structures and helpers.
Gwenole Beauchesne [Sun, 22 Mar 2009 01:32:27 +0000 (01:32 +0000)]
Add common VA API data structures and helpers.

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

10 years agoEnable unscaled packed422 -> planar 420 converters by default as the
Michael Niedermayer [Sat, 21 Mar 2009 23:59:02 +0000 (23:59 +0000)]
Enable unscaled packed422 -> planar 420 converters by default as the
imgconvert inherited quality issues should be fixed.

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

10 years ago10l (C code was buggy and untested)
Michael Niedermayer [Sat, 21 Mar 2009 23:52:34 +0000 (23:52 +0000)]
10l (C code was buggy and untested)

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

10 years agoAverage chroma of 2 lines in packed 422 -> planar 420.
Michael Niedermayer [Sat, 21 Mar 2009 23:45:20 +0000 (23:45 +0000)]
Average chroma of 2 lines in packed 422 -> planar 420.

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

10 years agoAdd support for HW accelerated VC-1 decoding through the new
Gwenole Beauchesne [Sat, 21 Mar 2009 23:44:21 +0000 (23:44 +0000)]
Add support for HW accelerated VC-1 decoding through the new
AVHWAccel infrastructure.

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

10 years agoreset codec width/height for h264 forcing decoder to parse extradata
Baptiste Coudurier [Sat, 21 Mar 2009 23:29:34 +0000 (23:29 +0000)]
reset codec width/height for h264 forcing decoder to parse extradata

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

10 years agoChange the RGB5X5/BGR5X5 pixel format defines so that we have little
Stefano Sabatini [Sat, 21 Mar 2009 23:08:20 +0000 (23:08 +0000)]
Change the RGB5X5/BGR5X5 pixel format defines so that we have little
endian and big endian variants instead of native-endian ones.

This patch breaks API/ABI backward-compatibility.

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

10 years agoUse PIX_FMT_NE() macro.
Stefano Sabatini [Sat, 21 Mar 2009 22:50:29 +0000 (22:50 +0000)]
Use PIX_FMT_NE() macro.

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

10 years agoImplement PIX_FMT_NE() macro.
Stefano Sabatini [Sat, 21 Mar 2009 22:48:48 +0000 (22:48 +0000)]
Implement PIX_FMT_NE() macro.

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

10 years agoExtend the behavior of avcodec_get_pix_fmt(), if it cannot find a
Stefano Sabatini [Sat, 21 Mar 2009 22:43:46 +0000 (22:43 +0000)]
Extend the behavior of avcodec_get_pix_fmt(), if it cannot find a
pixel format for the provided name, make it look for the native endian
variant of the name.

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

10 years agoGlobally prefer enum PixelFormat over int when it makes sense.
Stefano Sabatini [Sat, 21 Mar 2009 22:24:44 +0000 (22:24 +0000)]
Globally prefer enum PixelFormat over int when it makes sense.

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

10 years agoRemove slash-skipping code because the function called right after that
Ronald S. Bultje [Sat, 21 Mar 2009 21:02:08 +0000 (21:02 +0000)]
Remove slash-skipping code because the function called right after that
statement (get_word_sep()) already does that all by itself. See summary in
"[PATCH] rtsp.c small cleanups" thread on mailinglist.

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

10 years agoReindent something where a if () --> { <-- is on a newline rather than on the
Ronald S. Bultje [Sat, 21 Mar 2009 21:00:51 +0000 (21:00 +0000)]
Reindent something where a if () --> { <-- is on a newline rather than on the
same line as the if. See summary in "[PATCH] rtsp.c small cleanups" thread on
mailinglist.

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

10 years agoFree metadata if already allocated; fixes a memleak if the header occurs twice
Ronald S. Bultje [Sat, 21 Mar 2009 20:59:59 +0000 (20:59 +0000)]
Free metadata if already allocated; fixes a memleak if the header occurs twice
in a stream (e.g. malicious input, broken file, etc.). See summary in "[PATCH]
rtsp.c small cleanups" thread on mailinglist.

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

10 years agoFix silly bug in hex_to_data() where it compares a string pointer for whether
Ronald S. Bultje [Sat, 21 Mar 2009 20:58:41 +0000 (20:58 +0000)]
Fix silly bug in hex_to_data() where it compares a string pointer for whether
it is '\0' rather than its content (char *p; if (p == '\0') instead of if
(*p == '\0')). See summary in "[PATCH] rtsp.c small cleanups" thread on
mailinglist.

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

10 years agoRemove useless comment about something that is deprecated. See summary in
Ronald S. Bultje [Sat, 21 Mar 2009 20:56:57 +0000 (20:56 +0000)]
Remove useless comment about something that is deprecated. See summary in
"[PATCH] rtsp.c small cleanups" thread on mailinglist.

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

10 years agoUse skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".
Ronald S. Bultje [Sat, 21 Mar 2009 20:55:52 +0000 (20:55 +0000)]
Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".
See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.

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

10 years agoMerge functional code from get_word() and get_word_sep() into a single
Ronald S. Bultje [Sat, 21 Mar 2009 20:54:47 +0000 (20:54 +0000)]
Merge functional code from get_word() and get_word_sep() into a single
function, since they both do approximately the same thing. At the same time,
remove redir_isspace() altogether since code elsewhere (including
get_word_sep()) uses strchr() for the same purpose. See summary in "[PATCH]
rtsp.c small cleanups" thread.

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

10 years agoAllow (and parse) incoming server messages (notices) interleaved with TCP
Ronald S. Bultje [Sat, 21 Mar 2009 20:46:36 +0000 (20:46 +0000)]
Allow (and parse) incoming server messages (notices) interleaved with TCP
data packets or in addition to UDP data packets, over the RTSP/TCP connection.
See discussion in [PATCH] rtsp.c: read TCP server notifications/messages"
thread on mailinglist.

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

10 years agoAdd a @todo item to use ByteIOContext instead of URLContext at some point in
Ronald S. Bultje [Sat, 21 Mar 2009 20:44:46 +0000 (20:44 +0000)]
Add a @todo item to use ByteIOContext instead of URLContext at some point in
the future, requested by Luca in "[PATCH] rtsp.c: read TCP server
notifications/messages" thread.

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

10 years agoRemove index writing in RM muxer, since it is broken (multiple streams per
Ronald S. Bultje [Sat, 21 Mar 2009 20:34:24 +0000 (20:34 +0000)]
Remove index writing in RM muxer, since it is broken (multiple streams per
single index chunk) and is always empty anyway. See "[PATCH] rmenc.c: remove
index writing" thread.

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

10 years agoDon't allow to sync on packets of zero-size length, since these are never
Ronald S. Bultje [Sat, 21 Mar 2009 19:19:09 +0000 (19:19 +0000)]
Don't allow to sync on packets of zero-size length, since these are never
valid. See "[PATCH] rmdec.c: prevent zero-length packets" thread.

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

10 years agoMove "- 12" statement up a bit. See "[PATCH] rmdec.c: prevent zero-length
Ronald S. Bultje [Sat, 21 Mar 2009 19:18:07 +0000 (19:18 +0000)]
Move "- 12" statement up a bit. See "[PATCH] rmdec.c: prevent zero-length
packets" thread.

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

10 years agoRemove deprecated and now unused Mersenne Twister PRNG.
Diego Biurrun [Sat, 21 Mar 2009 17:28:38 +0000 (17:28 +0000)]
Remove deprecated and now unused Mersenne Twister PRNG.

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

10 years agoRegister myself as Smacker maintainer
Kostya Shishkov [Sat, 21 Mar 2009 17:01:56 +0000 (17:01 +0000)]
Register myself as Smacker maintainer

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

10 years agoWhen warning about forbidden pseudo random number generation functions,
Diego Biurrun [Sat, 21 Mar 2009 16:16:04 +0000 (16:16 +0000)]
When warning about forbidden pseudo random number generation functions,
suggest the correct replacement functions.

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

10 years agoFix reference to av_random_init where av_lfg_init was meant.
Diego Biurrun [Sat, 21 Mar 2009 16:14:55 +0000 (16:14 +0000)]
Fix reference to av_random_init where av_lfg_init was meant.

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