Commit Graph

279 Commits

Author SHA1 Message Date
David Conrad 42c71907cb Add av_get_bits_per_sample_format()
Originally committed as revision 10099 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 05:23:38 +00:00
Michael Niedermayer 0701006e34 ensure that default_get_buffer() doesnt reuse images if the dimension or
pix_fmt changed
fixes heap overflow, possibly exploitable

Originally committed as revision 10064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-10 19:28:28 +00:00
Panagiotis Issaris 7868349a91 Return AVERROR(EINVAL) when invalid width and/or height are specified to
avcodec_open.

Originally committed as revision 9770 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-20 15:09:10 +00:00
Panagiotis Issaris 90f06ceaa0 Return AVERROR(ENOMEM) on memory allocation failure of avcodec_open.
Originally committed as revision 9769 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-20 15:08:10 +00:00
Alex Beregszaszi 0509d453b5 set codec_type on init
Originally committed as revision 9721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-17 13:35:16 +00:00
Ramiro Polla 76353b42fa Remove underscores before fcntl flags
Originally committed as revision 9599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-11 15:21:24 +00:00
Ramiro Polla 6ffa87d325 Proper check for mkstemp().
Originally committed as revision 9596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-11 13:57:22 +00:00
Janne Grunau ab2cfc59a6 free thread context
patch by Janne Grunau: [janne-ffmpeg grunau be]

Originally committed as revision 9508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-06 15:24:08 +00:00
Stefano Sabatini c0de00dac5 me option implemented as an AVOption
patch by Stefano Sabatini: [stefano sabatini-lala poste it]
original thread:
[FFmpeg-devel] [PATCH] ffmpeg.c -me option implemented as an AVOption
date: 07/05/2007 03:12 PM

Originally committed as revision 9501 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-06 11:47:02 +00:00
Stefano Sabatini c0ad72a787 split frame rate and frame size abbreviation into two structures
patch by Stefano Sabatini: [stefano sabatini-lala poste it]

Originally committed as revision 9379 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-21 07:46:48 +00:00
Diego Biurrun 755bfeabcc misc spelling fixes
Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-12 09:29:25 +00:00
Stefano Sabatini 26ef3220cf Move the video size and rate abbreviations system from libavformat to libavcodec
patch by Stefano Sabatini: [stefano dot sabatini minus lala poste dot it]
original thread:
[FFmpeg-devel] [PATCH] Redesign the video size and rateabbreviations system
date: 06/02/2007 05:30 PM

Originally committed as revision 9288 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-12 08:06:54 +00:00
Loren Merritt 5b67307a68 fix a crash with svq1 + sse2.
EMU_EDGE broke memory alignment when the desired alignment is >32 bytes.

Originally committed as revision 8999 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-12 00:31:48 +00:00
Nicolas George 4f2c36ac4f add the possibility to choose aac profile
patch by Nicolas George nicolas george chez normalesup org
original thread: [Ffmpeg-devel] [PATCH] FAAC profile selection
date: 04/27/2007 08:11 PM

Originally committed as revision 8872 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-02 13:49:08 +00:00
Diego Biurrun fe0372296a typos
Originally committed as revision 8642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-07 14:10:02 +00:00
Michael Niedermayer 5d79e24a98 typo
Originally committed as revision 8611 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-03 13:53:25 +00:00
Kamil Nowosad f87459e419 FF_CODER_TYPE_RAW / RLE / DEFLATE extracted from a patch by Kamil Nowosad
Originally committed as revision 8609 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-03 13:52:00 +00:00
Michael Niedermayer 2de4f9eb47 indention
Originally committed as revision 8590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-01 16:14:19 +00:00
Michael Niedermayer 6e546aaa24 make AVCodec.init() optional
Originally committed as revision 8589 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-01 16:13:24 +00:00
Limin Wang e2f3d94786 Fix H.264 8x8 transform selection
It seems that it's opt parse bug, it can't process the flags which start by
digit. After change 8x8dct to dct8x8, I can set it without problem. I guess
nobody will use it since it can't work as expected, so the quick fix is change
the option name.

Patch by Limin Wang lance dot lmwang at gmail com

Originally committed as revision 8492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-24 12:07:07 +00:00
Michael Niedermayer 08cb195020 kill 3 more av_mallocz_static()
Originally committed as revision 8397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-14 01:59:53 +00:00
Michael Niedermayer 6289025d8c add a -ab with default of 64k
change -b to only apply to video
this returns -ab/-b to the old defautls and old behavior regarding ordering of them

Originally committed as revision 8286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-07 09:51:45 +00:00
Michael Niedermayer 29301573af add avcodec_get_context_defaults2() / avcodec_alloc_context2() which take CodecType as an additional parameter
also mark them as NOT part of the public API yet, so we can change their argument to CodecID if we decide to do so

Originally committed as revision 8283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-07 09:29:44 +00:00
Benoit Fouet 066a81a80f change management of "ab" option in ffmpeg.c, so that it works as "b" option.
patch by Benoit Fouet % benoit P fouet A purplelabs P com %
Original thread:
Subj: [Ffmpeg-devel] [PATCH] use new way to handle "ab" option
Date: 03/03/2007 10:51 PM

Originally committed as revision 8244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-05 10:04:53 +00:00
Panagiotis Issaris 636d6a4a47 Add the prefix "av_" to img_crop(), img_copy() and img_pad(), and rename "img"
to "picture" as suggested by Baptiste Coudurier.

Originally committed as revision 8220 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 11:53:11 +00:00
Baptiste Coudurier 5a6b9443ed dummy support for mpeg2 non linear quant
Originally committed as revision 8215 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 02:26:20 +00:00
Baptiste Coudurier ea0fe83b0f remove ps option and rename rtp_payload_size AVOption to ps
Originally committed as revision 8172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-01 16:36:38 +00:00
Baptiste Coudurier ccec0f4f94 get rid of rtp_mode field after next major bump
Originally committed as revision 8164 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-28 17:56:45 +00:00
Baptiste Coudurier 39c39d5f25 enable rtp payload size AVOption for video encoding
Originally committed as revision 8163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-28 17:40:31 +00:00
Michael Niedermayer 9c856d62be dont check buffer size if the decode function wont be called at all
Originally committed as revision 8090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-23 00:47:21 +00:00
Panagiotis Issaris 5dad0282b5 av_realloc_static() is an internal function and therefore should use the ff_ prefix instead of av_.
Originally committed as revision 8089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-23 00:20:39 +00:00
Panagiotis Issaris 8ab4861cc2 Move the Doxygen function documentation unaltered from libavcodec/utils.c to
libavcodec/avcodec.h.

Originally committed as revision 8079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-22 19:05:44 +00:00
Panagiotis Issaris f9ec0aa1a9 Add more Doxygen documentation.
Originally committed as revision 8078 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-22 18:59:05 +00:00
Panagiotis Issaris 5604801191 Fix typo.
Originally committed as revision 8065 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-22 00:46:36 +00:00
Aurelien Jacobs 6829ac8de4 simplify release_buffer using FFSWAP
Originally committed as revision 8057 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-21 23:46:25 +00:00
Panagiotis Issaris 7ad731e99f Add some more Doxygen documentation to libavcodec/utils.c.
Originally committed as revision 8041 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-20 12:45:16 +00:00
Michel Bardiaux 5286d11fcd Spelling fix
Originally committed as revision 7989 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-15 12:57:51 +00:00
Michael Niedermayer e13d80238c doxy for avcodec_encode_video()
Originally committed as revision 7977 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-14 10:50:01 +00:00
Luca Abeni ab1c6dc95c Directly access av_log_level instead of calling av_log_{set, get}_level()
(which will be removed at the next avutil version increment)

Originally committed as revision 7882 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-08 18:55:36 +00:00
Diego Biurrun 71e445fca3 Replace deprecated PIX_FMT names by the newer variants.
Originally committed as revision 7867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-07 01:48:09 +00:00
Michel Bardiaux 65d999d6cf Activate guards in avcodec_default_get_buffer. Patch by Michel Bardiaux,
mbardiaux mediaxim dot be.

Originally committed as revision 7794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-01 09:45:05 +00:00
Michael Niedermayer ac66834c75 avcodec_decode_audio2()
difference to avcodec_decode_audio() is that the user can pass the allocated size of the output buffer to the decoder and the decoder can check if theres enough space

Originally committed as revision 7518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 23:50:06 +00:00
Michael Niedermayer 4785c01668 er and strict also apply to audio theoretically
Originally committed as revision 7510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 23:19:22 +00:00
Michael Niedermayer 2606f38a67 skiprd doxygen comment from avcodec.h -> AVOption comment
Originally committed as revision 7376 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-26 17:08:03 +00:00
Michael Niedermayer c52f5d66a2 skiprd
Originally committed as revision 7365 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-23 03:05:36 +00:00
Baptiste Coudurier a45bc5922f bt 0 is invalid, setting min to 1
Originally committed as revision 7357 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-22 10:10:13 +00:00
Diego Biurrun f70d367b63 vqmin/vqmax --> qmin/qmax in the option description
Originally committed as revision 7316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-13 11:10:41 +00:00
Diego Biurrun 895bf49961 Improve option description.
Originally committed as revision 7276 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-11 10:51:42 +00:00
Panagiotis Issaris d3075ed502 Add "mixed_refs" description suggested by Loren Merritt and update accompanying
comment in the code.

Originally committed as revision 7235 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 17:04:23 +00:00
Panagiotis Issaris 119aae1dd5 Add more descriptions to the AVOption array taken from the avcodec.h AVCodec structure member comments.
Originally committed as revision 7233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 08:24:29 +00:00