[FFmpeg-cvslog] ffmpeg: cosmetics, move OutputStream.
Anton Khirnov
git at videolan.org
Tue Aug 30 18:15:05 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Aug 30 15:44:47 2011 +0200| [3a7b4ccd1c816bc9e9caa78687ebd3b67ce84dc5] | committer: Michael Niedermayer
ffmpeg: cosmetics, move OutputStream.
Allows us to get rid of forward InputStream declaration.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a7b4ccd1c816bc9e9caa78687ebd3b67ce84dc5
---
ffmpeg.c | 51 +++++++++++++++++++++++++--------------------------
1 files changed, 25 insertions(+), 26 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index f9fa2fb..2d39c9c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -236,7 +236,31 @@ static AVBitStreamFilterContext *subtitle_bitstream_filters=NULL;
#define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass"
-struct InputStream;
+typedef struct InputStream {
+ int file_index;
+ AVStream *st;
+ int discard; /* true if stream data should be discarded */
+ int decoding_needed; /* true if the packets must be decoded in 'raw_fifo' */
+ AVCodec *dec;
+
+ int64_t start; /* time when read started */
+ int64_t next_pts; /* synthetic pts for cases where pkt.pts
+ is not defined */
+ int64_t pts; /* current pts */
+ double ts_scale;
+ int is_start; /* is 1 at the start and after a discontinuity */
+ int showed_multi_packet_warning;
+ AVDictionary *opts;
+} InputStream;
+
+typedef struct InputFile {
+ AVFormatContext *ctx;
+ int eof_reached; /* true if eof reached */
+ int ist_index; /* index of first stream in ist_table */
+ int buffer_size; /* current total buffer size */
+ int nb_streams;
+ int64_t ts_offset;
+} InputFile;
typedef struct OutputStream {
int file_index; /* file index */
@@ -293,31 +317,6 @@ typedef struct OutputStream {
int is_past_recording_time;
} OutputStream;
-typedef struct InputStream {
- int file_index;
- AVStream *st;
- int discard; /* true if stream data should be discarded */
- int decoding_needed; /* true if the packets must be decoded in 'raw_fifo' */
- AVCodec *dec;
-
- int64_t start; /* time when read started */
- int64_t next_pts; /* synthetic pts for cases where pkt.pts
- is not defined */
- int64_t pts; /* current pts */
- double ts_scale;
- int is_start; /* is 1 at the start and after a discontinuity */
- int showed_multi_packet_warning;
- AVDictionary *opts;
-} InputStream;
-
-typedef struct InputFile {
- AVFormatContext *ctx;
- int eof_reached; /* true if eof reached */
- int ist_index; /* index of first stream in ist_table */
- int buffer_size; /* current total buffer size */
- int nb_streams;
- int64_t ts_offset;
-} InputFile;
#if HAVE_TERMIOS_H
More information about the ffmpeg-cvslog
mailing list