summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-08-06 13:31:12 -0300
committerJames Almer <jamrial@gmail.com>2016-08-06 13:31:12 -0300
commit61da882cea4579658e8d01e24b8cb71c98df2b94 (patch)
tree3678708944f57b1e988f7ca640dbfae77744f42e /ffmpeg.c
parent2ce985c049bccec6ca625ab9944f54f132499d54 (diff)
parent90944ee3ab79081845ea1bd97eea475031ce0842 (diff)
Merge commit '90944ee3ab79081845ea1bd97eea475031ce0842'
* commit '90944ee3ab79081845ea1bd97eea475031ce0842': avconv: refactor selecting an encoder Conflicts: ffmpeg.c ffmpeg_opt.c Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e1d1e635c2..d6282bdfff 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3047,16 +3047,6 @@ static int transcode_init(void)
abort();
}
} else {
- if (!ost->enc)
- ost->enc = avcodec_find_encoder(enc_ctx->codec_id);
- if (!ost->enc) {
- /* should only happen when a default codec is not present. */
- snprintf(error, sizeof(error), "Encoder (codec %s) not found for output stream #%d:%d",
- avcodec_get_name(ost->st->codec->codec_id), ost->file_index, ost->index);
- ret = AVERROR(EINVAL);
- goto dump_format;
- }
-
set_encoder_id(output_files[ost->file_index], ost);
#if CONFIG_LIBMFX