From d3ed1c9571c24d33fc485fba01bc2d6ed4de18b1 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sat, 30 Jun 2012 01:28:02 +0300 Subject: cmdutils: Pass the actual chosen encoder to filter_codec_opts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows passing the right options to encoders when there's more than one encoder for a certain codec id. Signed-off-by: Martin Storsjö --- avplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'avplay.c') diff --git a/avplay.c b/avplay.c index 6acb6c10e8..71844c274d 100644 --- a/avplay.c +++ b/avplay.c @@ -2081,7 +2081,7 @@ static int stream_component_open(VideoState *is, int stream_index) return -1; avctx = ic->streams[stream_index]->codec; - opts = filter_codec_opts(codec_opts, avctx->codec_id, ic, ic->streams[stream_index]); + opts = filter_codec_opts(codec_opts, avctx->codec_id, ic, ic->streams[stream_index], NULL); codec = avcodec_find_decoder(avctx->codec_id); avctx->debug_mv = debug_mv; -- cgit v1.2.3