diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-27 21:17:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-27 21:17:56 +0100 |
commit | 6d13499be04a610b6ce4c445eac768244ee04d64 (patch) | |
tree | 369940f19a4f83b5a7eec7d5cf2f044de6f84339 /ffplay.c | |
parent | e99c4bbdf3ddaf8d68c8eb882eda2c2c36219235 (diff) | |
download | ffmpeg-6d13499be04a610b6ce4c445eac768244ee04d64.tar.gz |
cmdutils: pass AVCodec to filter_codec_opts()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2217,9 +2217,9 @@ 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]); - codec = avcodec_find_decoder(avctx->codec_id); + opts = filter_codec_opts(codec_opts, codec, ic, ic->streams[stream_index]); + switch(avctx->codec_type){ case AVMEDIA_TYPE_AUDIO : if(audio_codec_name ) codec= avcodec_find_decoder_by_name( audio_codec_name); break; case AVMEDIA_TYPE_SUBTITLE: if(subtitle_codec_name) codec= avcodec_find_decoder_by_name(subtitle_codec_name); break; |