summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-07-28 16:47:38 +0200
committerAnton Khirnov <anton@khirnov.net>2011-08-12 18:35:12 +0200
commitd4863fc1a83ceab1d75469b406a2c67e5659b2a0 (patch)
tree6d8779fe01d8bda7e23473fc45da43467b072b1f /avplay.c
parentf60d13663742d1c695680ede83c4d646bc57d380 (diff)
cmdutils: allow precisely specifying a stream for AVOptions.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avplay.c b/avplay.c
index f43cf6faa6..e9b58a817f 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2134,7 +2134,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, 0);
+ opts = filter_codec_opts(codec_opts, avctx->codec_id, ic, ic->streams[stream_index]);
/* prepare audio output */
if (avctx->codec_type == AVMEDIA_TYPE_AUDIO) {