]> git.sesse.net Git - ffmpeg/blobdiff - avconv.h
rtmp: Factorize the code by adding handle_invoke_status
[ffmpeg] / avconv.h
index fb720d62596c87e8991d40efab09459f24f30cde..756d197ef53f36b2fa33d0e353814de01f14fa37 100644 (file)
--- a/avconv.h
+++ b/avconv.h
@@ -230,8 +230,8 @@ typedef struct InputStream {
 typedef struct InputFile {
     AVFormatContext *ctx;
     int eof_reached;      /* true if eof reached */
+    int eagain;           /* true if last read attempt returned EAGAIN */
     int ist_index;        /* index of first stream in ist_table */
-    int buffer_size;      /* current total buffer size */
     int64_t ts_offset;
     int nb_streams;       /* number of stream that avconv is aware of; may be different
                              from ctx.nb_streams if new streams appear during av_read_frame() */
@@ -288,7 +288,7 @@ typedef struct OutputStream {
 
     int64_t sws_flags;
     AVDictionary *opts;
-    int is_past_recording_time;
+    int finished;        /* no more packets should be written for this stream */
     int stream_copy;
     const char *attachment_filename;
     int copy_initial_nonkeyframes;
@@ -356,5 +356,7 @@ int guess_input_channel_layout(InputStream *ist);
 
 int configure_filtergraph(FilterGraph *fg);
 int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out);
+int ist_in_filtergraph(FilterGraph *fg, InputStream *ist);
+FilterGraph *init_simple_filtergraph(InputStream *ist, OutputStream *ost);
 
 #endif /* AVCONV_H */