comparison avformat.h @ 370:845f9de2c883 libavformat

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author michael
date Wed, 03 Mar 2004 15:41:21 +0000
parents b2a0f47067ed
children b0e50e10472c
comparison
equal deleted inserted replaced
369:b2a0f47067ed 370:845f9de2c883
239 239
240 #define MAX_STREAMS 20 240 #define MAX_STREAMS 20
241 241
242 /* format I/O context */ 242 /* format I/O context */
243 typedef struct AVFormatContext { 243 typedef struct AVFormatContext {
244 AVClass class; /* set by av_alloc_format_context */
244 /* can only be iformat or oformat, not both at the same time */ 245 /* can only be iformat or oformat, not both at the same time */
245 struct AVInputFormat *iformat; 246 struct AVInputFormat *iformat;
246 struct AVOutputFormat *oformat; 247 struct AVOutputFormat *oformat;
247 void *priv_data; 248 void *priv_data;
248 ByteIOContext pb; 249 ByteIOContext pb;
521 AVInputFormat *fmt, AVFormatParameters *ap); 522 AVInputFormat *fmt, AVFormatParameters *ap);
522 int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, 523 int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
523 AVInputFormat *fmt, 524 AVInputFormat *fmt,
524 int buf_size, 525 int buf_size,
525 AVFormatParameters *ap); 526 AVFormatParameters *ap);
527 /* no av_open for output, so applications will need this: */
528 AVFormatContext *av_alloc_format_context(void);
526 529
527 #define AVERROR_UNKNOWN (-1) /* unknown error */ 530 #define AVERROR_UNKNOWN (-1) /* unknown error */
528 #define AVERROR_IO (-2) /* i/o error */ 531 #define AVERROR_IO (-2) /* i/o error */
529 #define AVERROR_NUMEXPECTED (-3) /* number syntax expected in filename */ 532 #define AVERROR_NUMEXPECTED (-3) /* number syntax expected in filename */
530 #define AVERROR_INVALIDDATA (-4) /* invalid data found */ 533 #define AVERROR_INVALIDDATA (-4) /* invalid data found */