You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
fftools/ffmpeg: rename transcode_init()
It does no initialization anymore, except for setting transcode_init_done - the bulk of the function is printing the input/output maps. It also cannot fail anymore, so remove the useless return value.
This commit is contained in:
@@ -1493,11 +1493,8 @@ static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eo
|
|||||||
return !eof_reached;
|
return !eof_reached;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int transcode_init(void)
|
static void print_stream_maps(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
/* dump the stream mapping */
|
|
||||||
av_log(NULL, AV_LOG_INFO, "Stream mapping:\n");
|
av_log(NULL, AV_LOG_INFO, "Stream mapping:\n");
|
||||||
for (InputStream *ist = ist_iter(NULL); ist; ist = ist_iter(ist)) {
|
for (InputStream *ist = ist_iter(NULL); ist; ist = ist_iter(ist)) {
|
||||||
for (int j = 0; j < ist->nb_filters; j++) {
|
for (int j = 0; j < ist->nb_filters; j++) {
|
||||||
@@ -1570,13 +1567,6 @@ static int transcode_init(void)
|
|||||||
av_log(NULL, AV_LOG_INFO, " (copy)");
|
av_log(NULL, AV_LOG_INFO, " (copy)");
|
||||||
av_log(NULL, AV_LOG_INFO, "\n");
|
av_log(NULL, AV_LOG_INFO, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
atomic_store(&transcode_init_done, 1);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1854,9 +1844,9 @@ static int transcode(void)
|
|||||||
InputStream *ist;
|
InputStream *ist;
|
||||||
int64_t timer_start;
|
int64_t timer_start;
|
||||||
|
|
||||||
ret = transcode_init();
|
print_stream_maps();
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
atomic_store(&transcode_init_done, 1);
|
||||||
|
|
||||||
if (stdin_interaction) {
|
if (stdin_interaction) {
|
||||||
av_log(NULL, AV_LOG_INFO, "Press [q] to stop, [?] for help\n");
|
av_log(NULL, AV_LOG_INFO, "Press [q] to stop, [?] for help\n");
|
||||||
|
Reference in New Issue
Block a user