examples/demuxing_decoding: set stream_idx in open_codec_context only if no error...