X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg.h;h=00f7a2a261f615ffcecb3bfe77aeadec6c35ebc7;hb=13e0109a5f2c452f29da970a9acab06c3ce07833;hp=433baf84fa08c22ba03ede9c800c4d841ca255ce;hpb=390452bab627c8c2ccd316ac71106ca6d7ca190c;p=ffmpeg diff --git a/ffmpeg.h b/ffmpeg.h index 433baf84fa0..00f7a2a261f 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;