aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.h
diff options
context:
space:
mode:
authorMichael Niedermayer2014-01-17 23:52:55 +0100
committerMichael Niedermayer2014-01-17 23:57:02 +0100
commit740e6042a0160e0204a2aa8dca68756ede425e56 (patch)
tree590e24c07583a00bc2690504256c5ba35d295bec /ffmpeg.h
parentd73f8976691f72296d70b7a57b68a690a7ade662 (diff)
ffmpeg: change ost->finished to an enum
Idea-by: ramiro Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.h')
-rw-r--r--ffmpeg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ffmpeg.h b/ffmpeg.h
index 433baf84fa..00f7a2a261 100644
--- a/ffmpeg.h
+++ b/ffmpeg.h
@@ -344,6 +344,11 @@ enum forced_keyframes_const {
extern const char *const forced_keyframes_const_names[];
+typedef enum {
+ ENCODER_FINISHED = 1,
+ MUXER_FINISHED = 2,
+} OSTFinished ;
+
typedef struct OutputStream {
int file_index; /* file index */
int index; /* stream index in the output file */
@@ -397,7 +402,7 @@ typedef struct OutputStream {
AVDictionary *swr_opts;
AVDictionary *resample_opts;
char *apad;
- int finished; /* no more packets should be written for this stream */
+ OSTFinished finished; /* no more packets should be written for this stream */
int unavailable; /* true if the steram is unavailable (possibly temporarily) */
int stream_copy;
const char *attachment_filename;