From 90944ee3ab79081845ea1bd97eea475031ce0842 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 23 May 2016 07:38:58 +0200 Subject: avconv: refactor selecting an encoder Fail immediately if automatic encoder selection failed. Always set the stream_copy/encoding_needed flags in one place. --- avconv.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'avconv.c') diff --git a/avconv.c b/avconv.c index 4f8d688895..6470837d59 100644 --- a/avconv.c +++ b/avconv.c @@ -1949,17 +1949,6 @@ static int transcode_init(void) AVCodecContext *enc_ctx = ost->enc_ctx; AVCodecContext *dec_ctx = NULL; - if (!ost->enc) { - /* should only happen when a default codec is not present. */ - snprintf(error, sizeof(error), "Automatic encoder selection " - "failed for output stream #%d:%d. Default encoder for " - "format %s is probably disabled. Please choose an " - "encoder manually.\n", ost->file_index, ost->index, - oc->oformat->name); - ret = AVERROR(EINVAL); - goto dump_format; - } - set_encoder_id(output_files[ost->file_index], ost); if (ist) { -- cgit v1.2.1