mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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:
parent
7f8827f28e
commit
30699c103f
@ -658,7 +658,6 @@ typedef struct OutputStream {
|
||||
int inputs_done;
|
||||
|
||||
const char *attachment_filename;
|
||||
int copy_initial_nonkeyframes;
|
||||
|
||||
int keep_pix_fmt;
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user