]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/log
frescor/ffmpeg.git
15 years agoprettyprinting cosmetics
diego [Wed, 25 Mar 2009 18:14:28 +0000 (18:14 +0000)]
prettyprinting cosmetics

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18188 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18187 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18186 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMove licensing information into a separate file called LICENSE and
diego [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18185 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18184 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18183 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18182 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoset wrong dts for iMovie created files which has huge ctts delay, fix ffmpeg_sample.m4v
bcoudurier [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18181 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18180 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18179 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd _XOPEN_SOURCE #define. This is necessary for (s)random(), which are XSI
diego [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18178 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agostrchr(string, '\0') returns non-NULL, and is thus not suited for use in
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18177 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUpdate apiexample.c to use the newer avcodec_decode_audio2() API. This also
superdump [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18176 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18175 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18174 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18173 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18172 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMove declaration of 'pict' closer to where it is used and initialize it.
benoit [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)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18171 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18170 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18169 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd pcxenc.o to the $OBJS list, it was erroneously removed from it in
stefano [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18168 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18167 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: cosmetics: separate the pure frame header parsing code from
jbr [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18166 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRename 'tests' target to 'testprogs'. It is too easily confused with the
diego [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18165 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSplit AVCodec declarations for PAM/PBM/PGM/PGMYUV/PPM decoders and encoders
diego [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18164 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake the pixel formats which were defined as macros:
stefano [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18163 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: allow sample rate to change mid-stream, but log a warning
jbr [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18162 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18161 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18160 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: cosmetics: indentation
jbr [Sun, 22 Mar 2009 22:12:03 +0000 (22:12 +0000)]
flacdec: cosmetics: indentation

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18159 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18158 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: change frame bps validation to return an error value if bps
jbr [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18157 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18156 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: skip frame when allocated data size is too large
jbr [Sun, 22 Mar 2009 21:31:23 +0000 (21:31 +0000)]
flacdec: skip frame when allocated data size is too large

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18155 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years ago10l: don't check against current layout until after validating ch_mode.
jbr [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18154 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: give a more accurate error message when validating channel
jbr [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18153 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18152 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18151 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: cosmetics: comments and white space
jbr [Sun, 22 Mar 2009 19:12:02 +0000 (19:12 +0000)]
flacdec: cosmetics: comments and white space

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18150 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18149 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18148 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18147 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18146 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18145 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove alpha channel from default colorspace tables, since it is unused. See
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18144 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18143 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd a @todo with a comment from Kostya so we don't forget to optimize that at
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18142 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18141 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18140 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18139 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18138 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoavoid creating a new stream not referenced in pmt since it cannot be associated to...
bcoudurier [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18137 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18136 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18135 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18134 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoChange the RGB5X5/BGR5X5 pixel format defines so that we have little
stefano [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18133 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18132 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18131 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoExtend the behavior of avcodec_get_pix_fmt(), if it cannot find a
stefano [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18130 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18129 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove slash-skipping code because the function called right after that
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18128 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReindent something where a if () --> { <-- is on a newline rather than on the
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18127 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFree metadata if already allocated; fixes a memleak if the header occurs twice
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18126 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix silly bug in hex_to_data() where it compares a string pointer for whether
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18125 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove useless comment about something that is deprecated. See summary in
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18124 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18123 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMerge functional code from get_word() and get_word_sep() into a single
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18122 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAllow (and parse) incoming server messages (notices) interleaved with TCP
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18121 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd a @todo item to use ByteIOContext instead of URLContext at some point in
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18120 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove index writing in RM muxer, since it is broken (multiple streams per
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18119 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDon't allow to sync on packets of zero-size length, since these are never
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18118 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMove "- 12" statement up a bit. See "[PATCH] rmdec.c: prevent zero-length
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18117 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18116 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18115 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoWhen warning about forbidden pseudo random number generation functions,
diego [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18114 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18113 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix reference to av_random where av_lfg_get was meant.
diego [Sat, 21 Mar 2009 16:14:21 +0000 (16:14 +0000)]
Fix reference to av_random where av_lfg_get was meant.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18112 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake Smacker audio decoder output audio in original bit depth
kostya [Sat, 21 Mar 2009 15:52:14 +0000 (15:52 +0000)]
Make Smacker audio decoder output audio in original bit depth

Patch by Daniel Verkamp
($firstname) at (three-letter file extension for drivers in Win 3.1) dot (nu)

Thread: [PATCH] Smacker: Output audio in original bit depth

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18111 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove deprecated functions and structures on next version bump.
diego [Sat, 21 Mar 2009 13:51:29 +0000 (13:51 +0000)]
Remove deprecated functions and structures on next version bump.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18110 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocheck if feed max file size is too small
bcoudurier [Sat, 21 Mar 2009 10:32:43 +0000 (10:32 +0000)]
check if feed max file size is too small

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18109 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocosmetics, reindent and remove empty line
bcoudurier [Sat, 21 Mar 2009 10:29:37 +0000 (10:29 +0000)]
cosmetics, reindent and remove empty line

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18108 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agonew Truncate option which will make feeder truncate feed file
bcoudurier [Sat, 21 Mar 2009 10:28:49 +0000 (10:28 +0000)]
new Truncate option which will make feeder truncate feed file

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18107 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix avpicture_get_size for non-paletted formats with a helper palette
reimar [Sat, 21 Mar 2009 10:25:20 +0000 (10:25 +0000)]
Fix avpicture_get_size for non-paletted formats with a helper palette
to not include the size of that palette.
Also clarify its documentation.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18106 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoupdate ffserver regression ref
bcoudurier [Sat, 21 Mar 2009 10:03:37 +0000 (10:03 +0000)]
update ffserver regression ref

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18105 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agodo not call av_find_stream_info if stream is ffm, should fix stalling
bcoudurier [Sat, 21 Mar 2009 09:58:07 +0000 (09:58 +0000)]
do not call av_find_stream_info if stream is ffm, should fix stalling

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18104 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agosend busy reply if max connections number is exceeded
bcoudurier [Sat, 21 Mar 2009 09:56:25 +0000 (09:56 +0000)]
send busy reply if max connections number is exceeded

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18103 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReindent
conrad [Sat, 21 Mar 2009 08:22:36 +0000 (08:22 +0000)]
Reindent

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18102 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix Speex header parsing in ogg demuxer
conrad [Sat, 21 Mar 2009 08:22:09 +0000 (08:22 +0000)]
Fix Speex header parsing in ogg demuxer

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18101 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDocument ogg_codec's header function
conrad [Sat, 21 Mar 2009 08:03:30 +0000 (08:03 +0000)]
Document ogg_codec's header function

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18100 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agofix compilation when DEBUG_SEEK is defined
bcoudurier [Sat, 21 Mar 2009 07:36:25 +0000 (07:36 +0000)]
fix compilation when DEBUG_SEEK is defined

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18099 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agofix valid seeking range
bcoudurier [Sat, 21 Mar 2009 07:35:52 +0000 (07:35 +0000)]
fix valid seeking range

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18098 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoadjust write index if not set
bcoudurier [Sat, 21 Mar 2009 06:52:55 +0000 (06:52 +0000)]
adjust write index if not set

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18097 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoupdate seek regression ref due to 18063
bcoudurier [Sat, 21 Mar 2009 05:03:11 +0000 (05:03 +0000)]
update seek regression ref due to 18063

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18096 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoTake over sole maintainership for all FLAC-related stuff
jbr [Sat, 21 Mar 2009 03:14:56 +0000 (03:14 +0000)]
Take over sole maintainership for all FLAC-related stuff

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18095 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix the ogg regression test, which was broken by r18092. This is an
jbr [Sat, 21 Mar 2009 02:06:31 +0000 (02:06 +0000)]
Fix the ogg regression test, which was broken by r18092. This is an
expected change because the ogg muxer with FLAC encoder uses the maximum
frame size estimate since it cannot rewrite the real maximum frame size
at end of encoding.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18094 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoadd myself as maintainer for new FLAC files
jbr [Sat, 21 Mar 2009 01:55:36 +0000 (01:55 +0000)]
add myself as maintainer for new FLAC files

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18093 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoadd a function to calculate a more accurate estimate for maximum FLAC
jbr [Sat, 21 Mar 2009 01:54:31 +0000 (01:54 +0000)]
add a function to calculate a more accurate estimate for maximum FLAC
frame size and use the function in the FLAC decoder and FLAC encoder

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18092 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: account for frame and subframe header overhead when calculating
jbr [Sat, 21 Mar 2009 01:27:28 +0000 (01:27 +0000)]
flacdec: account for frame and subframe header overhead when calculating
estimate for maximum frame size

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18091 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agorevert accidental unrelated change in last commit
jbr [Sat, 21 Mar 2009 01:20:28 +0000 (01:20 +0000)]
revert accidental unrelated change in last commit

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18090 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoshare sample rate and blocksize tables between the FLAC encoder and FLAC
jbr [Sat, 21 Mar 2009 01:16:38 +0000 (01:16 +0000)]
share sample rate and blocksize tables between the FLAC encoder and FLAC
decoder

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18089 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b