You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffmpeg: remove stop_encoding variable and related code, it is dead / unused code
Fixes: CID1396243 Reviewed-by: compn <tempn@mi.rr.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
11
ffmpeg.c
11
ffmpeg.c
@@ -1797,7 +1797,6 @@ static void flush_encoders(void)
|
|||||||
OutputStream *ost = output_streams[i];
|
OutputStream *ost = output_streams[i];
|
||||||
AVCodecContext *enc = ost->enc_ctx;
|
AVCodecContext *enc = ost->enc_ctx;
|
||||||
OutputFile *of = output_files[ost->file_index];
|
OutputFile *of = output_files[ost->file_index];
|
||||||
int stop_encoding = 0;
|
|
||||||
|
|
||||||
if (!ost->encoding_needed)
|
if (!ost->encoding_needed)
|
||||||
continue;
|
continue;
|
||||||
@@ -1816,6 +1815,8 @@ static void flush_encoders(void)
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
const char *desc = NULL;
|
const char *desc = NULL;
|
||||||
|
AVPacket pkt;
|
||||||
|
int pkt_size;
|
||||||
|
|
||||||
switch (enc->codec_type) {
|
switch (enc->codec_type) {
|
||||||
case AVMEDIA_TYPE_AUDIO:
|
case AVMEDIA_TYPE_AUDIO:
|
||||||
@@ -1828,9 +1829,6 @@ static void flush_encoders(void)
|
|||||||
av_assert0(0);
|
av_assert0(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1) {
|
|
||||||
AVPacket pkt;
|
|
||||||
int pkt_size;
|
|
||||||
av_init_packet(&pkt);
|
av_init_packet(&pkt);
|
||||||
pkt.data = NULL;
|
pkt.data = NULL;
|
||||||
pkt.size = 0;
|
pkt.size = 0;
|
||||||
@@ -1848,7 +1846,6 @@ static void flush_encoders(void)
|
|||||||
fprintf(ost->logfile, "%s", enc->stats_out);
|
fprintf(ost->logfile, "%s", enc->stats_out);
|
||||||
}
|
}
|
||||||
if (ret == AVERROR_EOF) {
|
if (ret == AVERROR_EOF) {
|
||||||
stop_encoding = 1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ost->finished & MUXER_FINISHED) {
|
if (ost->finished & MUXER_FINISHED) {
|
||||||
@@ -1861,10 +1858,6 @@ static void flush_encoders(void)
|
|||||||
if (ost->enc_ctx->codec_type == AVMEDIA_TYPE_VIDEO && vstats_filename) {
|
if (ost->enc_ctx->codec_type == AVMEDIA_TYPE_VIDEO && vstats_filename) {
|
||||||
do_video_stats(ost, pkt_size);
|
do_video_stats(ost, pkt_size);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (stop_encoding)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user