image number handling
authorFabrice Bellard <fabrice@bellard.org>
Sun, 16 Sep 2001 21:48:59 +0000 (21:48 +0000)
committerFabrice Bellard <fabrice@bellard.org>
Sun, 16 Sep 2001 21:48:59 +0000 (21:48 +0000)
Originally committed as revision 126 to svn://svn.ffmpeg.org/ffmpeg/trunk

libav/avformat.h

index d1b4ce5618d688c690afa2b920c2555d35bb9988..298a5b513a54bb3263e239c480a84bf426e8008f 100644 (file)
@@ -62,7 +62,8 @@ typedef struct AVFormat {
        origin is defined by the stream */
     int (*read_seek)(struct AVFormatContext *, INT64 pts);
     int flags;
-#define AVFMT_NOFILE 0x0001 /* no file should be opened */
+#define AVFMT_NOFILE        0x0001 /* no file should be opened */
+#define AVFMT_NEEDNUMBER    0x0002 /* needs '%d' in filename */ 
     struct AVFormat *next;
 } AVFormat;
 
@@ -194,3 +195,5 @@ void ffm_set_write_index(AVFormatContext *s, offset_t pos, offset_t file_size);
 
 int find_info_tag(char *arg, int arg_size, const char *tag1, const char *info);
 
+int get_frame_filename(char *buf, int buf_size,
+                       const char *path, int number);