Mercurial > libavcodec.hg
comparison avcodec.h @ 2422:18b8b2dcc037 libavcodec
various security fixes and precautionary checks
| author | michael |
|---|---|
| date | Wed, 12 Jan 2005 00:16:25 +0000 |
| parents | d0b4f62a63ae |
| children | d9cf90e66883 |
comparison
equal
deleted
inserted
replaced
| 2421:e326490f58c4 | 2422:18b8b2dcc037 |
|---|---|
| 15 #include "rational.h" | 15 #include "rational.h" |
| 16 #include <sys/types.h> /* size_t */ | 16 #include <sys/types.h> /* size_t */ |
| 17 | 17 |
| 18 #define FFMPEG_VERSION_INT 0x000409 | 18 #define FFMPEG_VERSION_INT 0x000409 |
| 19 #define FFMPEG_VERSION "0.4.9-pre1" | 19 #define FFMPEG_VERSION "0.4.9-pre1" |
| 20 #define LIBAVCODEC_BUILD 4736 | 20 #define LIBAVCODEC_BUILD 4737 |
| 21 | 21 |
| 22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT | 22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT |
| 23 #define LIBAVCODEC_VERSION FFMPEG_VERSION | 23 #define LIBAVCODEC_VERSION FFMPEG_VERSION |
| 24 | 24 |
| 25 #define AV_STRINGIFY(s) AV_TOSTRING(s) | 25 #define AV_STRINGIFY(s) AV_TOSTRING(s) |
| 232 * 32 or 64 bit at once and could read over the end<br> | 232 * 32 or 64 bit at once and could read over the end<br> |
| 233 * Note, if the first 23 bits of the additional bytes are not 0 then damaged | 233 * Note, if the first 23 bits of the additional bytes are not 0 then damaged |
| 234 * MPEG bitstreams could cause overread and segfault | 234 * MPEG bitstreams could cause overread and segfault |
| 235 */ | 235 */ |
| 236 #define FF_INPUT_BUFFER_PADDING_SIZE 8 | 236 #define FF_INPUT_BUFFER_PADDING_SIZE 8 |
| 237 | |
| 238 /** | |
| 239 * minimum encoding buffer size. | |
| 240 * used to avoid some checks during header writing | |
| 241 */ | |
| 242 #define FF_MIN_BUFFER_SIZE 16384 | |
| 237 | 243 |
| 238 /* motion estimation type, EPZS by default */ | 244 /* motion estimation type, EPZS by default */ |
| 239 enum Motion_Est_ID { | 245 enum Motion_Est_ID { |
| 240 ME_ZERO = 1, | 246 ME_ZERO = 1, |
| 241 ME_FULL, | 247 ME_FULL, |
| 2110 | 2116 |
| 2111 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic); | 2117 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic); |
| 2112 void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic); | 2118 void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic); |
| 2113 int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic); | 2119 int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic); |
| 2114 void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height); | 2120 void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height); |
| 2121 int avcodec_check_dimensions(void *av_log_ctx, unsigned int w, unsigned int h); | |
| 2115 enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat * fmt); | 2122 enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat * fmt); |
| 2116 | 2123 |
| 2117 int avcodec_thread_init(AVCodecContext *s, int thread_count); | 2124 int avcodec_thread_init(AVCodecContext *s, int thread_count); |
| 2118 void avcodec_thread_free(AVCodecContext *s); | 2125 void avcodec_thread_free(AVCodecContext *s); |
| 2119 int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void **arg, int *ret, int count); | 2126 int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void **arg, int *ret, int count); |
