fftools/ffmpeg_mux: make copy_initial_nonkeyframes private to muxing code

It is no longer used outside of ffmpeg_mux*
This commit is contained in:
Anton Khirnov 2023-04-13 14:45:58 +02:00
parent 7f8827f28e
commit 30699c103f
4 changed files with 3 additions and 3 deletions

View File

@ -658,7 +658,6 @@ typedef struct OutputStream {
int inputs_done;
const char *attachment_filename;
int copy_initial_nonkeyframes;
int keep_pix_fmt;

View File

@ -394,7 +394,7 @@ void of_streamcopy(OutputStream *ost, const AVPacket *pkt, int64_t dts)
}
if (!ms->streamcopy_started && !(pkt->flags & AV_PKT_FLAG_KEY) &&
!ost->copy_initial_nonkeyframes)
!ms->copy_initial_nonkeyframes)
return;
if (!ms->streamcopy_started) {

View File

@ -75,6 +75,7 @@ typedef struct MuxStream {
// combined size of all the packets sent to the muxer
uint64_t data_size_mux;
int copy_initial_nonkeyframes;
int copy_prior_start;
int streamcopy_started;
} MuxStream;

View File

@ -1212,7 +1212,7 @@ static OutputStream *ost_add(Muxer *mux, const OptionsContext *o,
ost->last_mux_dts = AV_NOPTS_VALUE;
MATCH_PER_STREAM_OPT(copy_initial_nonkeyframes, i,
ost->copy_initial_nonkeyframes, oc, st);
ms->copy_initial_nonkeyframes, oc, st);
switch (type) {
case AVMEDIA_TYPE_VIDEO: new_stream_video (mux, o, ost); break;